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:
>>> await client.get_send_quota()
Source code in docs_src/capo_ses/_services/async_ses.py
| async def get_send_quota(
self, *, config_overrides: Optional[AsyncSESClientConfig] = 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:
>>> await client.get_send_quota()
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_ses.types.get_send_quota_response.GetSendQuotaResponse"
]:
import capo_ses._operations.simple_email_service.get_send_quota
(
output,
http_response,
) = await capo_ses._operations.simple_email_service.get_send_quota.async_get_send_quota(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetSendQuota")
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|