deleteConfigurationSetEventDestination method

Future<void> deleteConfigurationSetEventDestination({
  1. required String configurationSetName,
  2. required String eventDestinationName,
})

Deletes an event destination in a configuration set.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException. May throw InternalServiceErrorException.

Parameter configurationSetName : ConfigurationSetName

Parameter eventDestinationName : EventDestinationName

Implementation

Future<void> deleteConfigurationSetEventDestination({
  required String configurationSetName,
  required String eventDestinationName,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  ArgumentError.checkNotNull(eventDestinationName, 'eventDestinationName');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/sms-voice/configuration-sets/${Uri.encodeComponent(configurationSetName)}/event-destinations/${Uri.encodeComponent(eventDestinationName)}',
    exceptionFnMap: _exceptionFns,
  );
}