createConfigurationSetEventDestination method
Create a new event destination in a configuration set.
May throw AlreadyExistsException.
May throw BadRequestException.
May throw InternalServiceErrorException.
May throw LimitExceededException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter configurationSetName :
ConfigurationSetName
Parameter eventDestinationName :
A name that identifies the event destination.
Implementation
Future<void> createConfigurationSetEventDestination({
required String configurationSetName,
EventDestinationDefinition? eventDestination,
String? eventDestinationName,
}) async {
final $payload = <String, dynamic>{
if (eventDestination != null) 'EventDestination': eventDestination,
if (eventDestinationName != null)
'EventDestinationName': eventDestinationName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/v1/sms-voice/configuration-sets/${Uri.encodeComponent(configurationSetName)}/event-destinations',
exceptionFnMap: _exceptionFns,
);
}