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

Module: Aws::SavingsPlans

Defined in:
(unknown)

Overview

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

Aws::SavingsPlans::Client

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

savingsplans = Aws::SavingsPlans::Client.new(region: 'us-east-1')
savingsplans.operation_names
#=> [:create_savings_plan, :delete_queued_savings_plan, :describe_savings_plan_rates, :describe_savings_plans, ...]

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

resp = savingsplans.create_savings_plan(params)

See Client for more information.

Aws::SavingsPlans::Errors

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

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

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client