Skip to content

describe_global_settings

describe_global_settings(
    *, config_overrides: Optional[BackupClientConfig] = None
) -> DescribeGlobalSettingsOutput

Describes whether the Amazon Web Services account has enabled different cross-account management options, including cross-account backup, multi-party approval, and delegated administrator. Returns an error if the account is not a member of an Organizations organization. Example: describe-global-settings --region us-west-2

Raises:

Source code in docs_src/capo_backup/_services/backup.py
def describe_global_settings(
    self, *, config_overrides: Optional[BackupClientConfig] = None
) -> (
    "capo_backup.types.describe_global_settings_output.DescribeGlobalSettingsOutput"
):
    """<p>Describes whether the Amazon Web Services account has enabled different cross-account management options, including cross-account backup, multi-party approval, and delegated administrator. Returns an error if the account is not a member of an Organizations organization. Example: <code>describe-global-settings --region us-west-2</code> </p>

    Raises:
        capo_backup.errors.invalid_request_exception.InvalidRequestException: <p>Indicates that something is wrong with the input to the request. For example, a parameter is of the wrong type.</p>
        capo_backup.errors.service_unavailable_exception.ServiceUnavailableException: <p>The request failed due to a temporary failure of the server.</p>
        capo_backup.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_backup.types.describe_global_settings_input.DescribeGlobalSettingsInput]",
    ) -> OperationResponse[
        "capo_backup.types.describe_global_settings_output.DescribeGlobalSettingsOutput"
    ]:
        import capo_backup._operations.cryo_controller_user_manager.describe_global_settings

        output, http_response = (
            capo_backup._operations.cryo_controller_user_manager.describe_global_settings.describe_global_settings(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeGlobalSettings")
    )
    input_: capo_backup.types.describe_global_settings_input.DescribeGlobalSettingsInput = {}

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