createConfigurationSetEventDestination method
Future<void>
createConfigurationSetEventDestination({
- required String configurationSetName,
- EventDestinationDefinition? eventDestination,
- String? eventDestinationName,
Create a new event destination in a configuration set.
May throw BadRequestException. May throw LimitExceededException. May throw InternalServiceErrorException. May throw NotFoundException. May throw TooManyRequestsException. May throw AlreadyExistsException.
Parameter configurationSetName
:
ConfigurationSetName
Parameter eventDestinationName
:
A name that identifies the event destination.
Implementation
Future<void> createConfigurationSetEventDestination({
required String configurationSetName,
EventDestinationDefinition? eventDestination,
String? eventDestinationName,
}) async {
ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
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,
);
}