Skip to content

describe_region_settings

describe_region_settings(
    *, config_overrides: Optional[BackupClientConfig] = None
) -> DescribeRegionSettingsOutput

Returns the current service opt-in settings for the Region. If service opt-in is enabled for a service, Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, Backup does not try to protect that service's resources in this Region.

Raises:

Source code in docs_src/capo_backup/_services/backup.py
def describe_region_settings(
    self, *, config_overrides: Optional[BackupClientConfig] = None
) -> (
    "capo_backup.types.describe_region_settings_output.DescribeRegionSettingsOutput"
):
    """<p>Returns the current service opt-in settings for the Region. If service opt-in is enabled for a service, Backup tries to protect that service's resources in this Region, when the resource is included in an on-demand backup or scheduled backup plan. Otherwise, Backup does not try to protect that service's resources in this Region.</p>

    Raises:
        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_region_settings_input.DescribeRegionSettingsInput]",
    ) -> OperationResponse[
        "capo_backup.types.describe_region_settings_output.DescribeRegionSettingsOutput"
    ]:
        import capo_backup._operations.cryo_controller_user_manager.describe_region_settings

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeRegionSettings")
    )
    input_: capo_backup.types.describe_region_settings_input.DescribeRegionSettingsInput = {}

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