putConfigurationSetSendingOptions method

Future<void> putConfigurationSetSendingOptions({
  1. required String configurationSetName,
  2. bool? sendingEnabled,
})

Enable or disable email sending for messages that use a particular configuration set in a specific AWS Region.

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

Parameter configurationSetName : The name of the configuration set that you want to enable or disable email sending for.

Parameter sendingEnabled : If true, email sending is enabled for the configuration set. If false, email sending is disabled for the configuration set.

Implementation

Future<void> putConfigurationSetSendingOptions({
  required String configurationSetName,
  bool? sendingEnabled,
}) async {
  ArgumentError.checkNotNull(configurationSetName, 'configurationSetName');
  final $payload = <String, dynamic>{
    if (sendingEnabled != null) 'SendingEnabled': sendingEnabled,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/v2/email/configuration-sets/${Uri.encodeComponent(configurationSetName)}/sending',
    exceptionFnMap: _exceptionFns,
  );
}