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

Module: Aws::SecretsManager

Defined in:
(unknown)

Overview

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

Aws::SecretsManager::Client

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

secretsmanager = Aws::SecretsManager::Client.new(region: 'us-east-1')
secretsmanager.operation_names
#=> [:cancel_rotate_secret, :create_secret, :delete_resource_policy, :delete_secret, ...]

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

resp = secretsmanager.cancel_rotate_secret(params)

See Client for more information.

Aws::SecretsManager::Errors

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

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

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client