{ "version":"2.0", "metadata":{ "apiVersion":"2017-10-15", "endpointPrefix":"api.pricing", "jsonVersion":"1.1", "protocol":"json", "serviceAbbreviation":"AWS Pricing", "serviceFullName":"AWS Price List Service", "serviceId":"Pricing", "signatureVersion":"v4", "signingName":"pricing", "targetPrefix":"AWSPriceListService", "uid":"pricing-2017-10-15" }, "operations":{ "DescribeServices":{ "name":"DescribeServices", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"DescribeServicesRequest"}, "output":{"shape":"DescribeServicesResponse"}, "errors":[ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"} ], "documentation":"

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.

" }, "GetAttributeValues":{ "name":"GetAttributeValues", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetAttributeValuesRequest"}, "output":{"shape":"GetAttributeValuesResponse"}, "errors":[ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"} ], "documentation":"

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.

" }, "GetProducts":{ "name":"GetProducts", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"GetProductsRequest"}, "output":{"shape":"GetProductsResponse"}, "errors":[ {"shape":"InternalErrorException"}, {"shape":"InvalidParameterException"}, {"shape":"NotFoundException"}, {"shape":"InvalidNextTokenException"}, {"shape":"ExpiredNextTokenException"} ], "documentation":"

Returns a list of all products that match the filter criteria.

" } }, "shapes":{ "AttributeNameList":{ "type":"list", "member":{"shape":"String"} }, "AttributeValue":{ "type":"structure", "members":{ "Value":{ "shape":"String", "documentation":"

The specific value of an attributeName.

" } }, "documentation":"

The values of a given attribute, such as Throughput Optimized HDD or Provisioned IOPS for the Amazon EC2 volumeType attribute.

" }, "AttributeValueList":{ "type":"list", "member":{"shape":"AttributeValue"} }, "BoxedInteger":{ "type":"integer", "max":100, "min":1 }, "DescribeServicesRequest":{ "type":"structure", "members":{ "ServiceCode":{ "shape":"String", "documentation":"

The code for the service whose information you want to retrieve, such as AmazonEC2. You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank.

" }, "FormatVersion":{ "shape":"String", "documentation":"

The format version that you want the response to be in.

Valid values are: aws_v1

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token that indicates the next set of results that you want to retrieve.

" }, "MaxResults":{ "shape":"BoxedInteger", "documentation":"

The maximum number of results that you want returned in the response.

", "box":true } } }, "DescribeServicesResponse":{ "type":"structure", "members":{ "Services":{ "shape":"ServiceList", "documentation":"

The service metadata for the service or services in the response.

" }, "FormatVersion":{ "shape":"String", "documentation":"

The format version of the response. For example, aws_v1.

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token for the next set of retreivable results.

" } } }, "ExpiredNextTokenException":{ "type":"structure", "members":{ "Message":{"shape":"errorMessage"} }, "documentation":"

The pagination token expired. Try again without a pagination token.

", "exception":true }, "Filter":{ "type":"structure", "required":[ "Type", "Field", "Value" ], "members":{ "Type":{ "shape":"FilterType", "documentation":"

The type of filter that you want to use.

Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given filter field and the given value.

" }, "Field":{ "shape":"String", "documentation":"

The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.

Valid values include: ServiceCode, and all attribute names

For example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes.

" }, "Value":{ "shape":"String", "documentation":"

The service code or attribute value that you want to filter by. If you are filtering by service code this is the actual service code, such as AmazonEC2. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as a Provisioned IOPS volume.

" } }, "documentation":"

The constraints that you want all returned products to match.

" }, "FilterType":{ "type":"string", "enum":["TERM_MATCH"] }, "Filters":{ "type":"list", "member":{"shape":"Filter"} }, "GetAttributeValuesRequest":{ "type":"structure", "required":[ "ServiceCode", "AttributeName" ], "members":{ "ServiceCode":{ "shape":"String", "documentation":"

The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use AmazonEC2.

" }, "AttributeName":{ "shape":"String", "documentation":"

The name of the attribute that you want to retrieve the values for, such as volumeType.

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token that indicates the next set of results that you want to retrieve.

" }, "MaxResults":{ "shape":"BoxedInteger", "documentation":"

The maximum number of results to return in response.

", "box":true } } }, "GetAttributeValuesResponse":{ "type":"structure", "members":{ "AttributeValues":{ "shape":"AttributeValueList", "documentation":"

The list of values for an attribute. For example, Throughput Optimized HDD and Provisioned IOPS are two available values for the AmazonEC2 volumeType.

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token that indicates the next set of results to retrieve.

" } } }, "GetProductsRequest":{ "type":"structure", "members":{ "ServiceCode":{ "shape":"String", "documentation":"

The code for the service whose products you want to retrieve.

" }, "Filters":{ "shape":"Filters", "documentation":"

The list of filters that limit the returned products. only products that match all filters are returned.

" }, "FormatVersion":{ "shape":"String", "documentation":"

The format version that you want the response to be in.

Valid values are: aws_v1

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token that indicates the next set of results that you want to retrieve.

" }, "MaxResults":{ "shape":"BoxedInteger", "documentation":"

The maximum number of results to return in the response.

", "box":true } } }, "GetProductsResponse":{ "type":"structure", "members":{ "FormatVersion":{ "shape":"String", "documentation":"

The format version of the response. For example, aws_v1.

" }, "PriceList":{ "shape":"PriceList", "documentation":"

The list of products that match your filters. The list contains both the product metadata and the price information.

" }, "NextToken":{ "shape":"String", "documentation":"

The pagination token that indicates the next set of results to retrieve.

" } } }, "InternalErrorException":{ "type":"structure", "members":{ "Message":{"shape":"errorMessage"} }, "documentation":"

An error on the server occurred during the processing of your request. Try again later.

", "exception":true }, "InvalidNextTokenException":{ "type":"structure", "members":{ "Message":{"shape":"errorMessage"} }, "documentation":"

The pagination token is invalid. Try again without a pagination token.

", "exception":true }, "InvalidParameterException":{ "type":"structure", "members":{ "Message":{"shape":"errorMessage"} }, "documentation":"

One or more parameters had an invalid value.

", "exception":true }, "NotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"errorMessage"} }, "documentation":"

The requested resource can't be found.

", "exception":true }, "PriceList":{ "type":"list", "member":{ "shape":"PriceListItemJSON", "jsonvalue":true } }, "PriceListItemJSON":{"type":"string"}, "Service":{ "type":"structure", "members":{ "ServiceCode":{ "shape":"String", "documentation":"

The code for the AWS service.

" }, "AttributeNames":{ "shape":"AttributeNameList", "documentation":"

The attributes that are available for this service.

" } }, "documentation":"

The metadata for a service, such as the service code and available attribute names.

" }, "ServiceList":{ "type":"list", "member":{"shape":"Service"} }, "String":{"type":"string"}, "errorMessage":{"type":"string"} }, "documentation":"

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 Location, Storage Class, and Operating System, 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 GetServices without a service code to retrieve the service codes for all AWS services, then GetServices with a service code to retreive the attribute names for that service. After you have the service code and attribute names, you can use GetAttributeValues to see what values are available for an attribute. With the service code and an attribute name and value, you can use GetProducts to find specific products that you're interested in, such as an AmazonEC2 instance, with a Provisioned IOPS volumeType.

Service Endpoint

AWS Price List Service API provides the following two endpoints:

" }