Skip to content

deactivate_organizations_access async

deactivate_organizations_access(
    *, config_overrides: Optional[AsyncCloudFormationClientConfig] = None
) -> DeactivateOrganizationsAccessOutput

Deactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization.

Raises:

Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def deactivate_organizations_access(
    self, *, config_overrides: Optional[AsyncCloudFormationClientConfig] = None
) -> "capo_cloudformation.types.deactivate_organizations_access_output.DeactivateOrganizationsAccessOutput":
    """<p>Deactivates trusted access with Organizations. If trusted access is deactivated, the management account does not have permissions to create and manage service-managed StackSets for your organization.</p>

    Raises:
        capo_cloudformation.errors.invalid_operation_exception.InvalidOperationException: <p>The specified operation isn't valid.</p>
        capo_cloudformation.errors.operation_not_found_exception.OperationNotFoundException: <p>The specified ID refers to an operation that doesn't exist.</p>
        capo_cloudformation.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cloudformation.types.deactivate_organizations_access_input.DeactivateOrganizationsAccessInput]",
    ) -> AsyncOperationResponse[
        "capo_cloudformation.types.deactivate_organizations_access_output.DeactivateOrganizationsAccessOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.deactivate_organizations_access

        (
            output,
            http_response,
        ) = await capo_cloudformation._operations.cloud_formation.deactivate_organizations_access.async_deactivate_organizations_access(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeactivateOrganizationsAccess")
    )
    input_: capo_cloudformation.types.deactivate_organizations_access_input.DeactivateOrganizationsAccessInput = {}

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