deleteProfile method
Deletes the profile that's specified in the ProfileId
parameter.
May throw InternalServiceError.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
Parameter profileId :
The identifier of the profile that you are deleting.
Implementation
Future<void> deleteProfile({
required String profileId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'TransferService.DeleteProfile'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ProfileId': profileId,
},
);
}