You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Module: Aws::Backup

Defined in:
(unknown)

Overview

This module provides a client for making API requests to AWS Backup.

Aws::Backup::Client

The Client class provides one-to-one mapping for each API operation.

backup = Aws::Backup::Client.new(region: 'us-east-1')
backup.operation_names
#=> [:create_backup_plan, :create_backup_selection, :create_backup_vault, :delete_backup_plan, ...]

Each API operation method accepts a hash of request parameters and returns a response object.

resp = backup.create_backup_plan(params)

See Client for more information.

Aws::Backup::Errors

Errors returned from AWS Backup are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::Backup::Errors::ServiceError
  # rescues all errors returned by AWS Backup
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client