Skip to content

describe_health_service_status_for_organization

describe_health_service_status_for_organization(
    *, config_overrides: Optional[HealthClientConfig] = None
) -> DescribeHealthServiceStatusForOrganizationResponse

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/health.py
def describe_health_service_status_for_organization(
    self, *, config_overrides: Optional[HealthClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[None]",
    ) -> OperationResponse[
        "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 = (
            capo_health._operations.aws_health_20160804.describe_health_service_status_for_organization.describe_health_service_status_for_organization(
                req.options
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DescribeHealthServiceStatusForOrganization"),
    )

    response = execute_pipeline(
        OperationRequest(input=None, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output