deleteVolume method
Deletes a specified volume.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter volumeId :
Identifier of the volume to delete.
Implementation
Future<void> deleteVolume({
required String volumeId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'EUCMIFrontendAPIService.DeleteVolume'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'VolumeId': volumeId,
},
);
}