deleteRegistrationAttachment method
Future<DeleteRegistrationAttachmentResult>
deleteRegistrationAttachment({
- required String registrationAttachmentId,
Permanently delete the specified registration attachment.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter registrationAttachmentId :
The unique identifier for the registration attachment.
Implementation
Future<DeleteRegistrationAttachmentResult> deleteRegistrationAttachment({
required String registrationAttachmentId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.DeleteRegistrationAttachment'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'RegistrationAttachmentId': registrationAttachmentId,
},
);
return DeleteRegistrationAttachmentResult.fromJson(jsonResponse.body);
}