This operation provides status information on enabling or disabling Health to work with your organization. To call this operation, you must use the organization's management account.
Raises:
Source code in docs_src/capo_health/_services/async_health.py
| async def describe_health_service_status_for_organization(
self, *, config_overrides: Optional[AsyncHealthClientConfig] = None
) -> "capo_health.types.describe_health_service_status_for_organization_response.DescribeHealthServiceStatusForOrganizationResponse":
"""<p>This operation provides status information on enabling or disabling Health to work with your organization. To call this operation, you must use the organization's management account.</p>
Raises:
capo_health.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[None]",
) -> AsyncOperationResponse[
"capo_health.types.describe_health_service_status_for_organization_response.DescribeHealthServiceStatusForOrganizationResponse"
]:
import capo_health._operations.aws_health_20160804.describe_health_service_status_for_organization
(
output,
http_response,
) = await capo_health._operations.aws_health_20160804.describe_health_service_status_for_organization.async_describe_health_service_status_for_organization(
req.options
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribeHealthServiceStatusForOrganization"),
)
response = await aexecute_pipeline(
AsyncOperationRequest(input=None, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|