Skip to content

activate_organizations_access

activate_organizations_access(
    *, config_overrides: Optional[CloudFormationClientConfig] = 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/cloud_formation.py
def activate_organizations_access(
    self, *, config_overrides: Optional[CloudFormationClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_cloudformation.types.activate_organizations_access_input.ActivateOrganizationsAccessInput]",
    ) -> OperationResponse[
        "capo_cloudformation.types.activate_organizations_access_output.ActivateOrganizationsAccessOutput"
    ]:
        import capo_cloudformation._operations.cloud_formation.activate_organizations_access

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

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

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