Skip to content

get_account_sending_enabled

get_account_sending_enabled(
    *, config_overrides: Optional[SESClientConfig] = None
) -> GetAccountSendingEnabledResponse

Returns the email sending status of the Amazon SES account for the current Region.

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

Raises:

Examples:

GetAccountSendingEnabled The following example returns if sending status for an account is enabled. (true / false):

>>> client.get_account_sending_enabled()
Source code in docs_src/capo_ses/_services/ses.py
def get_account_sending_enabled(
    self, *, config_overrides: Optional[SESClientConfig] = None
) -> "capo_ses.types.get_account_sending_enabled_response.GetAccountSendingEnabledResponse":
    """<p>Returns the email sending status of the Amazon SES account for the current Region.</p> <p>You can execute this operation no more than once per second.</p>

    Raises:
        capo_ses.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        GetAccountSendingEnabled
        The following example returns if sending status for an account is enabled. (true / false):

        >>> client.get_account_sending_enabled()
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "capo_ses.types.get_account_sending_enabled_response.GetAccountSendingEnabledResponse"
    ]:
        import capo_ses._operations.simple_email_service.get_account_sending_enabled

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccountSendingEnabled")
    )

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