detachAndDeleteS3AccessPoint method
Detaches an S3 access point from an Amazon FSx volume and deletes the S3 access point.
The requester requires the following permission to perform this action:
-
fsx:DetachAndDeleteS3AccessPoint -
s3:DeleteAccessPoint
May throw BadRequest.
May throw IncompatibleParameterError.
May throw InternalServerError.
May throw S3AccessPointAttachmentNotFound.
May throw UnsupportedOperation.
Parameter name :
The name of the S3 access point attachment that you want to delete.
Implementation
Future<DetachAndDeleteS3AccessPointResponse> detachAndDeleteS3AccessPoint({
required String name,
String? clientRequestToken,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'AWSSimbaAPIService_v20180301.DetachAndDeleteS3AccessPoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
'ClientRequestToken':
clientRequestToken ?? _s.generateIdempotencyToken(),
},
);
return DetachAndDeleteS3AccessPointResponse.fromJson(jsonResponse.body);
}