deleteNotifyConfiguration method
Future<DeleteNotifyConfigurationResult>
deleteNotifyConfiguration({
- required String notifyConfigurationId,
Deletes an existing notify configuration.
If deletion protection is enabled, an error is returned.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter notifyConfigurationId :
The identifier of the notify configuration to delete. The
NotifyConfigurationId can be found using the
DescribeNotifyConfigurations operation.
Implementation
Future<DeleteNotifyConfigurationResult> deleteNotifyConfiguration({
required String notifyConfigurationId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.DeleteNotifyConfiguration'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'NotifyConfigurationId': notifyConfigurationId,
},
);
return DeleteNotifyConfigurationResult.fromJson(jsonResponse.body);
}