You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Module: Aws::Pricing
- Defined in:
- (unknown)
Overview
This module provides a client for making API requests to AWS Price List Service.
Aws::Pricing::Client
The Client class provides one-to-one mapping for each API operation.
pricing = Aws::Pricing::Client.new(region: 'us-east-1')
pricing.operation_names
#=> [:describe_services, :get_attribute_values, :get_products, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = pricing.describe_services(params)
See Client for more information.
Aws::Pricing::Errors
Errors returned from AWS Price List Service are defined in the Errors module and extend Errors::ServiceError.
begin
# do stuff
rescue Aws::Pricing::Errors::ServiceError
# rescues all errors returned by AWS Price List Service
end
See Errors for more information.