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_price_list_file_url(params = {}) ⇒ Types::GetPriceListFileUrlResponse
This feature is in preview release and is subject to change.
-
#get_products(params = {}) ⇒ Types::GetProductsResponse
Returns a list of all products that match the filter criteria.
-
#list_price_lists(params = {}) ⇒ Types::ListPriceListsResponse
This feature is in preview release and is subject to change.
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.
451 452 453 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 451 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.
542 543 544 545 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 542 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. Attributes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the Billing and Cost Management User Guide.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
623 624 625 626 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 623 def get_attribute_values(params = {}, = {}) req = build_request(:get_attribute_values, params) req.send_request() end |
#get_price_list_file_url(params = {}) ⇒ Types::GetPriceListFileUrlResponse
This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10).
This returns the URL that you can retrieve your Price List file from.
This URL is based on the PriceListArn
and FileFormat
that you
retrieve from the ListPriceLists response.
678 679 680 681 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 678 def get_price_list_file_url(params = {}, = {}) req = build_request(:get_price_list_file_url, 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.
739 740 741 742 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 739 def get_products(params = {}, = {}) req = build_request(:get_products, params) req.send_request() end |
#list_price_lists(params = {}) ⇒ Types::ListPriceListsResponse
This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the Amazon Web Services Service Terms (Section 1.10).
This returns a list of Price List references that the requester if
authorized to view, given a ServiceCode
, CurrencyCode
, and an
EffectiveDate
. Use without a RegionCode
filter to list Price List
references from all available Amazon Web Services Regions. Use with a
RegionCode
filter to get the Price List reference that's specific
to a specific Amazon Web Services Region. You can use the
PriceListArn
from the response to get your preferred Price List
files through the GetPriceListFileUrl API.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
837 838 839 840 |
# File 'gems/aws-sdk-pricing/lib/aws-sdk-pricing/client.rb', line 837 def list_price_lists(params = {}, = {}) req = build_request(:list_price_lists, params) req.send_request() end |