deletePublicAccessBlock method
Removes the PublicAccessBlock
configuration for an AWS
account. For more information, see
Using Amazon S3 block public access.
Related actions include:
Parameter accountId
:
The account ID for the AWS account whose PublicAccessBlock
configuration you want to remove.
Implementation
Future<void> deletePublicAccessBlock({
required String accountId,
}) async {
ArgumentError.checkNotNull(accountId, 'accountId');
_s.validateStringLength(
'accountId',
accountId,
0,
64,
isRequired: true,
);
final headers = <String, String>{
'x-amz-account-id': accountId.toString(),
};
await _protocol.send(
method: 'DELETE',
requestUri: '/v20180820/configuration/publicAccessBlock',
headers: headers,
exceptionFnMap: _exceptionFns,
);
}