PricingClient Class

(QtAws::Pricing::PricingClient)

The PricingClient class provides access to the AWS Price List Service ( Pricing) service. More...

Header: #include <PricingClient>
Inherits: QtAws::Core::AwsAbstractClient

Public Functions

PricingClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)
PricingClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)

Public Slots

DescribeServicesResponse *describeServices(const DescribeServicesRequest &request)
GetAttributeValuesResponse *getAttributeValues(const GetAttributeValuesRequest &request)
GetProductsResponse *getProducts(const GetProductsRequest &request)

Additional Inherited Members

Detailed Description

The PricingClient class provides access to the AWS Price List Service ( Pricing) service.

AWS Price List Service API (AWS Price List Service) is a centralized and convenient way to programmatically query Amazon Web Services for services, products, and pricing information. The AWS Price List Service uses standardized product attributes such as <code>Location</code>, <code>Storage Class</code>, and <code>Operating System</code>, and provides prices at the SKU level. You can use the AWS Price List Service to build cost control and scenario planning tools, reconcile billing data, forecast future spend for budgeting purposes, and provide cost benefit analysis that compare your internal workloads with

AWS>

Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then <code>GetServices</code> with a service code to retreive the attribute names for that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code> to see what values are available for an attribute. With the service code and an attribute name and value, you can use <code>GetProducts</code> to find specific products that you're interested in, such as an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>

<code>volumeType</code>>

Service

Endpoin>

AWS Price List Service API provides the following two

endpoints> <ul> <li>

https://api.pricing.us-east-1.amazonaws.co> </li> <li>

Member Function Documentation

PricingClient::PricingClient(const QtAws::Core::AwsRegion::Region region = QtAws::Core::AwsRegion::InvalidRegion, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)

Constructs a PricingClient object.

The new client object will region, credentials, and manager for network operations.

The new object will be owned by parent, if set.

PricingClient::PricingClient(const QUrl &endpoint, QtAws::Core::AwsAbstractCredentials *credentials = NULL, QNetworkAccessManager * const manager = NULL, QObject * const parent = 0)

This function overloads PricingClient().

This overload allows the caller to specify the specific endpoint to send requests to. Typically, it is easier to use the alternative constructor, which allows the caller to specify an AWS region instead, in which case this client will determine the correct endpoint for the given region automatically (via AwsEndpoint::getEndpoint).

See also QtAws::Core::AwsEndpoint::getEndpoint.

[slot] DescribeServicesResponse *PricingClient::describeServices(const DescribeServicesRequest &request)

Sends request to the PricingClient service, and returns a pointer to an DescribeServicesResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

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 <code>AmazonEC2</code>, 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 <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>, <code>locationType</code>, and

[slot] GetAttributeValuesResponse *PricingClient::getAttributeValues(const GetAttributeValuesRequest &request)

Sends request to the PricingClient service, and returns a pointer to an GetAttributeValuesResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

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 <a href="http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a> in the <a href="http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">AWS Billing and Cost Management User

[slot] GetProductsResponse *PricingClient::getProducts(const GetProductsRequest &request)

Sends request to the PricingClient service, and returns a pointer to an GetProductsResponse object to track the result.

Note: The caller is to take responsbility for the resulting pointer.

Returns a list of all products that match the filter

© 2018 Paul Colby Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.