Get information about a specific tenant, including the tenant's name, ID, ARN, creation timestamp, tags, sending status, and suppression attributes.
Parameters:
-
tenant_name
(TenantName)
–
The name of the tenant to retrieve information about.
Raises:
Source code in docs_src/capo_sesv2/_services/async_se_sv2.py
| async def get_tenant(
self,
tenant_name: "capo_sesv2.types.tenant_name.TenantName",
*,
config_overrides: Optional[AsyncSESv2ClientConfig] = None,
) -> "capo_sesv2.types.get_tenant_response.GetTenantResponse":
"""<p>Get information about a specific tenant, including the tenant's name, ID, ARN, creation timestamp, tags, sending status, and suppression attributes.</p>
Args:
tenant_name: <p>The name of the tenant to retrieve information about.</p>
Raises:
capo_sesv2.errors.bad_request_exception.BadRequestException: <p>The input you provided is invalid.</p>
capo_sesv2.errors.not_found_exception.NotFoundException: <p>The resource you attempted to access doesn't exist.</p>
capo_sesv2.errors.too_many_requests_exception.TooManyRequestsException: <p>Too many requests have been made to the operation.</p>
capo_sesv2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sesv2.types.get_tenant_request.GetTenantRequest]",
) -> AsyncOperationResponse[
"capo_sesv2.types.get_tenant_response.GetTenantResponse"
]:
import capo_sesv2._operations.simple_email_service_v2.get_tenant
(
output,
http_response,
) = await capo_sesv2._operations.simple_email_service_v2.get_tenant.async_get_tenant(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetTenant")
)
input_: capo_sesv2.types.get_tenant_request.GetTenantRequest = {
"tenant_name": tenant_name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|