Provides more information regarding a given organization based on its identifier.
Parameters:
-
organization_id
(OrganizationId)
–
The identifier for the organization to be described.
Raises:
Source code in docs_src/capo_workmail/_services/async_work_mail.py
| async def describe_organization(
self,
organization_id: "capo_workmail.types.organization_id.OrganizationId",
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
) -> "capo_workmail.types.describe_organization_response.DescribeOrganizationResponse":
"""<p>Provides more information regarding a given organization based on its identifier.</p>
Args:
organization_id: <p>The identifier for the organization to be described.</p>
Raises:
capo_workmail.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more of the input parameters don't match the service's restrictions.</p>
capo_workmail.errors.organization_not_found_exception.OrganizationNotFoundException: <p>An operation received a valid organization identifier that either doesn't belong or exist in the system.</p>
capo_workmail.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_workmail.types.describe_organization_request.DescribeOrganizationRequest]",
) -> AsyncOperationResponse[
"capo_workmail.types.describe_organization_response.DescribeOrganizationResponse"
]:
import capo_workmail._operations.work_mail_service.describe_organization
(
output,
http_response,
) = await capo_workmail._operations.work_mail_service.describe_organization.async_describe_organization(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeOrganization")
)
input_: capo_workmail.types.describe_organization_request.DescribeOrganizationRequest = {
"organization_id": organization_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|