putConfigurationSetDeliveryOptions method

Future<void> putConfigurationSetDeliveryOptions({
  1. required String configurationSetName,
  2. DeliveryOptions? deliveryOptions,
})

Adds or updates the delivery options for a configuration set.

May throw ConfigurationSetDoesNotExistException. May throw InvalidDeliveryOptionsException.

Parameter configurationSetName : The name of the configuration set that you want to specify the delivery options for.

Parameter deliveryOptions : Specifies whether messages that use the configuration set are required to use Transport Layer Security (TLS).

Implementation

Future<void> putConfigurationSetDeliveryOptions({
  required String configurationSetName,
  DeliveryOptions? deliveryOptions,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  final $request = <String, dynamic>{};
  $request['ConfigurationSetName'] = configurationSetName;
  deliveryOptions?.also((arg) => $request['DeliveryOptions'] = arg);
  await _protocol.send(
    $request,
    action: 'PutConfigurationSetDeliveryOptions',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['PutConfigurationSetDeliveryOptionsRequest'],
    shapes: shapes,
    resultWrapper: 'PutConfigurationSetDeliveryOptionsResult',
  );
}