AWS Price List Service (version v1.*.*)

describe_services

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.

Parameters

$body

Type: object

{
  "ServiceCode" : "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" : "The format version that you want the response to be in. \nValid values are: aws_v1 "
}

get_attribute_values

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.

Parameters

$body

Type: object

{
  "ServiceCode" : "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" : "The name of the attribute that you want to retrieve the values for, such as volumeType."
}

get_products

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

Parameters

$body

Type: object

{
  "Filters" : [ {
    "Field" : "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. \nValid values include: ServiceCode, and all attribute names \nFor example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes.",
    "Type" : "The type of filter that you want to use. \nValid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given filter field and the given value.",
    "Value" : "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."
  } ],
  "ServiceCode" : "The code for the service whose products you want to retrieve. ",
  "FormatVersion" : "The format version that you want the response to be in. \nValid values are: aws_v1 "
}