createConfigurationSetTrackingOptions method

Future<void> createConfigurationSetTrackingOptions({
  1. required String configurationSetName,
  2. required TrackingOptions trackingOptions,
})

Creates an association between a configuration set and a custom domain for open and click event tracking.

By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the Amazon SES Developer Guide.

May throw ConfigurationSetDoesNotExistException. May throw TrackingOptionsAlreadyExistsException. May throw InvalidTrackingOptionsException.

Parameter configurationSetName : The name of the configuration set that the tracking options should be associated with.

Implementation

Future<void> createConfigurationSetTrackingOptions({
  required String configurationSetName,
  required TrackingOptions trackingOptions,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  ArgumentError.checkNotNull(trackingOptions, 'trackingOptions');
  final $request = <String, dynamic>{};
  $request['ConfigurationSetName'] = configurationSetName;
  $request['TrackingOptions'] = trackingOptions;
  await _protocol.send(
    $request,
    action: 'CreateConfigurationSetTrackingOptions',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['CreateConfigurationSetTrackingOptionsRequest'],
    shapes: shapes,
    resultWrapper: 'CreateConfigurationSetTrackingOptionsResult',
  );
}