updateConfigurationSetEventDestination method

Future<void> updateConfigurationSetEventDestination({
  1. required String configurationSetName,
  2. required String eventDestinationName,
  3. EventDestinationDefinition? eventDestination,
})

Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.

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

Parameter configurationSetName : ConfigurationSetName

Parameter eventDestinationName : EventDestinationName

Implementation

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