deleteConfigurationSet method
Future<DeleteConfigurationSetResult>
deleteConfigurationSet({
- required String configurationSetName,
Deletes an existing configuration set.
A configuration set is a set of rules that you apply to voice and SMS messages that you send. In a configuration set, you can specify a destination for specific types of events related to voice and SMS messages.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter configurationSetName :
The name of the configuration set or the configuration set ARN that you
want to delete. The ConfigurationSetName and ConfigurationSetArn can be
found using the DescribeConfigurationSets action.
Implementation
Future<DeleteConfigurationSetResult> deleteConfigurationSet({
required String configurationSetName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'PinpointSMSVoiceV2.DeleteConfigurationSet'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigurationSetName': configurationSetName,
},
);
return DeleteConfigurationSetResult.fromJson(jsonResponse.body);
}