disassociateDRTLogBucket method
Removes the DDoS Response Team's (DRT) access to the specified Amazon S3 bucket containing your AWS WAF logs.
To make a DisassociateDRTLogBucket
request, you must be
subscribed to the Business
Support plan or the Enterprise
Support plan. However, if you are not subscribed to one of these
support plans, but had been previously and had granted the DRT access to
your account, you can submit a DisassociateDRTLogBucket
request to remove this access.
May throw InternalErrorException. May throw InvalidOperationException. May throw NoAssociatedRoleException. May throw AccessDeniedForDependencyException. May throw OptimisticLockException. May throw ResourceNotFoundException.
Parameter logBucket
:
The Amazon S3 bucket that contains your AWS WAF logs.
Implementation
Future<void> disassociateDRTLogBucket({
required String logBucket,
}) async {
ArgumentError.checkNotNull(logBucket, 'logBucket');
_s.validateStringLength(
'logBucket',
logBucket,
3,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSShield_20160616.DisassociateDRTLogBucket'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LogBucket': logBucket,
},
);
}