Skip to content

describe_configuration_set async

describe_configuration_set(
    configuration_set_name: ConfigurationSetName,
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
    configuration_set_attribute_names: Optional[ConfigurationSetAttributeList] = None,
) -> DescribeConfigurationSetResponse

Returns the details of the specified configuration set. For information about using configuration sets, see the Amazon SES Developer Guide.

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

Parameters:

Raises:

Source code in docs_src/capo_ses/_services/async_ses.py
async def describe_configuration_set(
    self,
    configuration_set_name: "capo_ses.types.configuration_set_name.ConfigurationSetName",
    *,
    config_overrides: Optional[AsyncSESClientConfig] = None,
    configuration_set_attribute_names: Optional[
        "capo_ses.types.configuration_set_attribute_list.ConfigurationSetAttributeList"
    ] = None,
) -> "capo_ses.types.describe_configuration_set_response.DescribeConfigurationSetResponse":
    """<p>Returns the details of the specified configuration set. 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_name: <p>The name of the configuration set to describe.</p>
        configuration_set_attribute_names: <p>A list of configuration set attributes to return.</p>

    Raises:
        capo_ses.errors.configuration_set_does_not_exist_exception.ConfigurationSetDoesNotExistException: <p>Indicates that the configuration set does not exist.</p>
        capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ses.types.describe_configuration_set_request.DescribeConfigurationSetRequest]",
    ) -> AsyncOperationResponse[
        "capo_ses.types.describe_configuration_set_response.DescribeConfigurationSetResponse"
    ]:
        import capo_ses._operations.simple_email_service.describe_configuration_set

        (
            output,
            http_response,
        ) = await capo_ses._operations.simple_email_service.describe_configuration_set.async_describe_configuration_set(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeConfigurationSet")
    )
    input_: capo_ses.types.describe_configuration_set_request.DescribeConfigurationSetRequest = {
        "configuration_set_name": configuration_set_name
    }
    if configuration_set_attribute_names is not None:
        input_["configuration_set_attribute_names"] = (
            configuration_set_attribute_names
        )

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output