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