Skip to content

get_send_quota

get_send_quota(
    *, config_overrides: Optional[SESClientConfig] = None
) -> GetSendQuotaResponse

Provides the sending limits for the Amazon SES account.

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

Raises:

Examples:

GetSendQuota The following example returns the Amazon SES sending limits for an AWS account:

>>> client.get_send_quota()
Source code in docs_src/capo_ses/_services/ses.py
def get_send_quota(
    self, *, config_overrides: Optional[SESClientConfig] = None
) -> "capo_ses.types.get_send_quota_response.GetSendQuotaResponse":
    """<p>Provides the sending limits for the Amazon SES account. </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:
        GetSendQuota
        The following example returns the Amazon SES sending limits for an AWS account:

        >>> client.get_send_quota()
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "capo_ses.types.get_send_quota_response.GetSendQuotaResponse"
    ]:
        import capo_ses._operations.simple_email_service.get_send_quota

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

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

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