updateConfigurationSetEventDestination method

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

Update the configuration of an event destination for a configuration set.

In Amazon Pinpoint, events include message sends, deliveries, opens, clicks, bounces, and complaints. Event destinations are places that you can send information about these events to. For example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage.

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

Parameter configurationSetName : The name of the configuration set that contains the event destination that you want to modify.

Parameter eventDestination : An object that defines the event destination.

Parameter eventDestinationName : The name of the event destination that you want to modify.

Implementation

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