Class: Aws::Pricing::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Pricing::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-pricing/client.rb
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
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.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(*args) ⇒ Client
Returns a new instance of Client.
163 164 165 |
# File 'lib/aws-sdk-pricing/client.rb', line 163 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
450 451 452 |
# File 'lib/aws-sdk-pricing/client.rb', line 450 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
453 454 455 |
# File 'lib/aws-sdk-pricing/client.rb', line 453 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
428 429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/aws-sdk-pricing/client.rb', line 428 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-pricing' context[:gem_version] = '1.1.0' Seahorse::Client::Request.new(handlers, context) end |
#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`.
250 251 252 253 |
# File 'lib/aws-sdk-pricing/client.rb', line 250 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].
[1]: docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs [2]: docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html
329 330 331 332 |
# File 'lib/aws-sdk-pricing/client.rb', line 329 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.
419 420 421 422 |
# File 'lib/aws-sdk-pricing/client.rb', line 419 def get_products(params = {}, = {}) req = build_request(:get_products, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
443 444 445 |
# File 'lib/aws-sdk-pricing/client.rb', line 443 def waiter_names [] end |