Skip to content

describe_organization_configuration async

describe_organization_configuration(
    graph_arn: GraphArn,
    *,
    config_overrides: Optional[AsyncDetectiveClientConfig] = None,
) -> DescribeOrganizationConfigurationResponse

Returns information about the configuration for the organization behavior graph. Currently indicates whether to automatically enable new organization accounts as member accounts.

Can only be called by the Detective administrator account for the organization.

Parameters:

  • graph_arn (GraphArn) –

    The ARN of the organization behavior graph.

Raises:

Source code in docs_src/capo_detective/_services/async_detective.py
async def describe_organization_configuration(
    self,
    graph_arn: "capo_detective.types.graph_arn.GraphArn",
    *,
    config_overrides: Optional[AsyncDetectiveClientConfig] = None,
) -> "capo_detective.types.describe_organization_configuration_response.DescribeOrganizationConfigurationResponse":
    """<p>Returns information about the configuration for the organization behavior graph. Currently indicates whether to automatically enable new organization accounts as member accounts.</p> <p>Can only be called by the Detective administrator account for the organization. </p>

    Args:
        graph_arn: <p>The ARN of the organization behavior graph.</p>

    Raises:
        capo_detective.errors.access_denied_exception.AccessDeniedException: <p>The request issuer does not have permission to access this resource or perform this operation.</p>
        capo_detective.errors.internal_server_exception.InternalServerException: <p>The request was valid but failed because of a problem with the service.</p>
        capo_detective.errors.too_many_requests_exception.TooManyRequestsException: <p>The request cannot be completed because too many other requests are occurring at the same time.</p>
        capo_detective.errors.validation_exception.ValidationException: <p>The request parameters are invalid.</p>
        capo_detective.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_detective.types.describe_organization_configuration_request.DescribeOrganizationConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_detective.types.describe_organization_configuration_response.DescribeOrganizationConfigurationResponse"
    ]:
        import capo_detective._operations.amazon_detective.describe_organization_configuration

        (
            output,
            http_response,
        ) = await capo_detective._operations.amazon_detective.describe_organization_configuration.async_describe_organization_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeOrganizationConfiguration")
    )
    input_: capo_detective.types.describe_organization_configuration_request.DescribeOrganizationConfigurationRequest = {
        "graph_arn": graph_arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output