Module: Aws::SavingsPlans

Defined in:
lib/aws-sdk-savingsplans/endpoint_parameters.rb,
lib/aws-sdk-savingsplans/plugins/endpoints.rb,
lib/aws-sdk-savingsplans/endpoint_provider.rb,
lib/aws-sdk-savingsplans/client_api.rb,
lib/aws-sdk-savingsplans/endpoints.rb,
lib/aws-sdk-savingsplans/resource.rb,
lib/aws-sdk-savingsplans/errors.rb,
lib/aws-sdk-savingsplans/client.rb,
lib/aws-sdk-savingsplans/types.rb,
lib/aws-sdk-savingsplans.rb

Overview

This module provides support for AWS Savings Plans. This module is available in the ‘aws-sdk-savingsplans` gem.

# Client

The Client class provides one method for each API operation. Operation methods each accept a hash of request parameters and return a response structure.

savings_plans = Aws::SavingsPlans::Client.new
resp = savings_plans.create_savings_plan(params)

See Client for more information.

# Errors

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

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

See Errors for more information.

Defined Under Namespace

Modules: ClientApi, Endpoints, Errors, Plugins, Types Classes: Client, EndpointParameters, EndpointProvider, Resource

service collapse

GEM_VERSION =
'1.52.0'