Class: Aws::Pricing::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Pricing::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb
Overview
An API client for Pricing. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::Pricing::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#describe_services(params = {}) ⇒ Types::DescribeServicesResponse
Returns the metadata for one service or a list of the metadata for all services.
-
#get_attribute_values(params = {}) ⇒ Types::GetAttributeValuesResponse
Returns a list of attribute values.
-
#get_products(params = {}) ⇒ Types::GetProductsResponse
Returns a list of all products that match the filter criteria.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
334 335 336 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 334 def initialize(*args) super end |
Instance Method Details
#describe_services(params = {}) ⇒ Types::DescribeServicesResponse
Returns the metadata for one service or a list of the metadata for all
services. Use this without a service code to get the service codes for
all services. Use it with a service code, such as AmazonEC2
, to get
information specific to that service, such as the attribute names
available for that service. For example, some of the attribute names
available for EC2 are volumeType
, maxIopsVolume
, operation
,
locationType
, and instanceCapacity10xlarge
.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
423 424 425 426 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 423 def describe_services(params = {}, = {}) req = build_request(:describe_services, params) req.send_request() end |
#get_attribute_values(params = {}) ⇒ Types::GetAttributeValuesResponse
Returns a list of attribute values. Attibutes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the AWS Billing and Cost Management User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
504 505 506 507 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 504 def get_attribute_values(params = {}, = {}) req = build_request(:get_attribute_values, params) req.send_request() end |
#get_products(params = {}) ⇒ Types::GetProductsResponse
Returns a list of all products that match the filter criteria.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
596 597 598 599 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 596 def get_products(params = {}, = {}) req = build_request(:get_products, params) req.send_request() end |