Skip to content

create_configuration_set

create_configuration_set(
    configuration_set: ConfigurationSet,
    *,
    config_overrides: Optional[SESClientConfig] = None,
) -> CreateConfigurationSetResponse

Creates a configuration set.

Configuration sets enable you to publish email sending events. For information about using configuration sets, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Parameters:

  • configuration_set (ConfigurationSet) –

    A data structure that contains the name of the configuration set.

Raises:

Source code in docs_src/capo_ses/_services/ses.py
def create_configuration_set(
    self,
    configuration_set: "capo_ses.types.configuration_set.ConfigurationSet",
    *,
    config_overrides: Optional[SESClientConfig] = None,
) -> "capo_ses.types.create_configuration_set_response.CreateConfigurationSetResponse":
    """<p>Creates a configuration set.</p> <p>Configuration sets enable you to publish email sending events. For information about using configuration sets, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/monitor-sending-activity.html">Amazon SES Developer Guide</a>.</p> <p>You can execute this operation no more than once per second.</p>

    Args:
        configuration_set: <p>A data structure that contains the name of the configuration set.</p>

    Raises:
        capo_ses.errors.configuration_set_already_exists_exception.ConfigurationSetAlreadyExistsException: <p>Indicates that the configuration set could not be created because of a naming conflict.</p>
        capo_ses.errors.invalid_configuration_set_exception.InvalidConfigurationSetException: <p>Indicates that the configuration set is invalid. See the error message for details.</p>
        capo_ses.errors.limit_exceeded_exception.LimitExceededException: <p>Indicates that a resource could not be created because of service limits. For a list of Amazon SES limits, see the <a href="https://docs.aws.amazon.com/ses/latest/DeveloperGuide/limits.html">Amazon SES Developer Guide</a>.</p>
        capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ses.types.create_configuration_set_request.CreateConfigurationSetRequest]",
    ) -> OperationResponse[
        "capo_ses.types.create_configuration_set_response.CreateConfigurationSetResponse"
    ]:
        import capo_ses._operations.simple_email_service.create_configuration_set

        output, http_response = (
            capo_ses._operations.simple_email_service.create_configuration_set.create_configuration_set(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateConfigurationSet")
    )
    input_: capo_ses.types.create_configuration_set_request.CreateConfigurationSetRequest = {
        "configuration_set": configuration_set
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output