Skip to content

activate_organizations_access async

activate_organizations_access(
    *, config_overrides: Optional[AsyncCloudFormationClientConfig] = None
) -> ActivateOrganizationsAccessOutput

Activate trusted access with Organizations. With trusted access between StackSets and Organizations activated, the management account has permissions to create and manage StackSets for your organization.

Raises:

Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def activate_organizations_access(
    self, *, config_overrides: Optional[AsyncCloudFormationClientConfig] = None
) -> "capo_cloudformation.types.activate_organizations_access_output.ActivateOrganizationsAccessOutput":
    """<p>Activate trusted access with Organizations. With trusted access between StackSets and Organizations activated, the management account has permissions to create and manage 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.activate_organizations_access_input.ActivateOrganizationsAccessInput]",
    ) -> AsyncOperationResponse[
        "capo_cloudformation.types.activate_organizations_access_output.ActivateOrganizationsAccessOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.activate_organizations_access

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ActivateOrganizationsAccess")
    )
    input_: capo_cloudformation.types.activate_organizations_access_input.ActivateOrganizationsAccessInput = {}

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