

# Reading the price list files
<a name="bulk-api-reading-price-list-files"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

Use this section to understand how to read your price list files. This covers the service index file, the service version index file, the Region index file, and the price list files for both AWS services and Savings Plans use cases.

## Reading the service index file
<a name="reading-service-index-files"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

After you have the service index file, you can use it to find an service price list file.

The service index file is available as a JSON file. To read the file, you can use a text application or a program that parses the JSON.

The service index file has two main sections:
+  Metadata about the service index file
+  Either a list of the services that AWS offers or via AWS Marketplace. 

The information about the service index file includes the URL where you can download the prices and a URL for the service Region index file for that service.

### Example: Service index file
<a name="service-index-file-example"></a>

The service index file looks like the following.

```
{
   "formatVersion":"The version number for the offer index format",
   "disclaimer":"The disclaimers for this offer index",
   "publicationDate":"The publication date of this offer index",
   "offers":{
      "firstService":{
         "offerCode":"The service that this price list is for",
         "currentVersionUrl":"The URL for this offer file",
         "currentRegionIndexUrl":"The URL for the regional offer index file",
         "savingsPlanVersionIndexUrl":"The URL for the Savings Plan index file (if applicable)"
      },
      "secondService":{
         "offerCode": ...,
         "currentVersionUrl": ...,
         "currentRegionIndexUrl": ...,
         "savingsPlanVersionIndexUrl":...
      },
      ...
   },
}
```

### Service index file definitions
<a name="offer-index-termdef-version-2"></a>

The following list defines the terms that are used in the service index file:

**FormatVersion**  
An attribute that tracks which format version the service version index file is in. The `formatVersion` of the file is updated when the structure is changed. For example, the version will change from `v1` to `v2`. 

**Disclaimer**  
Any disclaimers that apply to the service version index file.

**PublicationDate**  
The date and time in UTC format when a service version index file was published. For example, this might look like `2015-04-09T02:22:05Z` and `2015-09-10T18:21:05Z`.

**Offers**  
A list of available service price list files.

**Offers:OfferCode**  
A unique code for the product of an AWS service. For example, this might be `AmazonEC2` or `AmazonS3`. The `OfferCode` is used as the lookup key for the index.

**Offers:CurrentVersionUrl**  
The URL where you can download the most up-to-date service price list file.

**Offers:currentRegionIndexUrl**  
A list of available service price list files by Region.

**Offers:savingsPlanVersionIndexUrl**  
The list of applicable Savings Plan offers.

# Reading the service version index file
<a name="using-the-aws-price-list-bulk-api-reading-price-list-files-reading-service-version-index-file"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

The service version index file is available in JSON format. To read the file, you can use a text program or an application that parses the JSON.

The service version index file consists of two main sections:
+ Metadata about the service version index file
+ List of all versions of price list files available for an AWS service

The information about a service version includes the URL that you can use to download the prices for that service for the specified time period.

**Topics**
+ [Service version index file for an AWS service](service-version-index-file-for-aws-service.md)
+ [Service version index file for Savings Plan](service-version-index-file-for-savings-plans.md)

# Service version index file for an AWS service
<a name="service-version-index-file-for-aws-service"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

To understand the service version index file, see the following references:

**Topics**
+ [Example: Service version index file for a service](#example-service-version-index-file-service)
+ [Service version index file definitions](#service-version-index-definitions-sps)

## Example: Service version index file for a service
<a name="example-service-version-index-file-service"></a>

The service version index file looks like the following.

```
{
   "formatVersion":"The version number for the service version index format",
   "disclaimer":"The disclaimers for this service version index",
   "publicationDate":"The publication date of this service version index",
   "offerCode": "The service code/Savings Plan code",
   "currentVersion": "The latest version of the service"
   "versions":{
      "firstVersion":{
         "versionEffectiveBeginDate":"The date starting which this version is effective",
         "versionEffectiveEndDate":"The date until which this version is effective",
         "offerVersionUrl":"The relative URL for the service price list file of this version"
      },
      "secondVersion":{
         "versionEffectiveBeginDate": ...,
         "versionEffectiveEndDate": ...,
         "offerVersionUrl": ...
      },
      ...
   },
}
```

## Service version index file definitions
<a name="service-version-index-definitions-sps"></a>

The following list defines the terms in the service version index file.

**formatVersion**  
An attribute that tracks which format version the service version index file is in. The `formatVersion` of the file is updated when the structure is changed. For example, the version will change from `v1` to `v2`.

**disclaimer**  
Any disclaimers that apply to the service version index file.

**publicationDate**  
The date and time in UTC format when a service version index file was published. For example, `2023-03-28T23:47:21Z`.

**offerCode**  
A unique code for the product of an AWS service. For example, `AmazonRDS` or `AmazonS3`.

**currentVersion**  
The latest version number of the AWS service. For example, `20230328234721`.

**versions**  
The list of available versions for this AWS service.

**versions:version**  
A unique code for the version of a price list for an AWS service. This is used as the lookup key in the versions list. For example, `20230328234721`,

**versions:version:versionEffectiveBeginDate**  
The start date and time in UTC format, which this version is effective. For example, `2023-03-28T23:47:21Z`.

**versions:version:versionEffectiveEndDate**  
The end date and time in UTC format, which this version is effective. For example, `2023-03-28T23:47:21Z`. If this property isn't set, this means that this version is the currently active version.

**versions:version:offerVersionUrl**  
The relative URL for the service price list files of the version. For example, `/offers/v1.0/aws/AmazonRDS/20230328234721/index.json`.

# Service version index file for Savings Plan
<a name="service-version-index-file-for-savings-plans"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

To understand the service version index file for Savings Plan, see the following references:

**Contents**
+ [Example: Service version index file for Savings Plan](#service-version-index-file-savings-plans-example)
+ [Service version index definitions](#service-version-index-definitions)

## Example: Service version index file for Savings Plan
<a name="service-version-index-file-savings-plans-example"></a>

The service version index file for a Savings Plan looks like the following.

```
{
   "disclaimer":"The disclaimers for this service version index",
   "publicationDate":"The publication date of this service version index",
   "currentOfferVersionUrl" "The relative URL of region index file for latest version number of the service"
   "versions":[
      {
         "publicationDate":"The publication date of this version of service from which this version was effective",
         "offerVersionUrl":"The relative URL for the service region index file of this version"
      },
      {
         "publicationDate": ...,
         "offerVersionUrl": ...
      },
      ...
   ],
}
```

## Service version index definitions
<a name="service-version-index-definitions"></a>

The following list defines the terms in the service version index file.

**disclaimer**  
Any disclaimers that apply to the service version index file.

**publicationDate**  
The date and time in UTC format when a service version index file was published. For example, `2023-03-28T23:47:21Z`.

**currentOfferVersionUrl**  
The relative URL of the regional index file for latest version number of the service. For example, `/savingsPlan/v1.0/aws/AWSComputeSavingsPlan/current/region_index.json`.

**versions**  
The list of available version for this AWS service.

**versions:version:publicationDate**  
The date and time in UTC format when an service version index file was published. For example, `2023-04-07T14:57:05Z`

**versions:version:offerVersionUrl**  
The relative URL for the service regional index file of this version. For example, `/savingsPlan/v1.0/aws/AWSComputeSavingsPlan/20230407145705/region_index.json`.

# Reading the service Region index file
<a name="reading-service-region-index-files"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

The service Region index file is available in JSON format. To read the file, you can use a text program or an application that parses the JSON.

The service Region index file consists of two main sections: 
+ Metadata about the service Region index file
+  List of all AWS Regions in which AWS services, Savings Plan or a service representing limited AWS Marketplace offerings are available. 

The information about a service Region includes the URL where you can download the prices for that service for the specified time period and Region.

**Topics**
+ [Service Region index file for AWS services](service-region-index-file-for-service.md)
+ [Service Region index file for Savings Plan](service-region-index-files-for-savings-plan.md)

# Service Region index file for AWS services
<a name="service-region-index-file-for-service"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

To understand the service version index file for AWS services, see the following references:

**Contents**
+ [Example: Service Region index file for an AWS service](#service-region-index-file-for-service)
+ [Service Region index definitions](#service-region-index-definitions-services)

## Example: Service Region index file for an AWS service
<a name="service-region-index-file-for-service"></a>

The service Region index file for an AWS service looks like the following.

```
{
   "formatVersion":"The version number for the service region index format",
   "disclaimer":"The disclaimers for this service region index",
   "publicationDate":"The publication date of this service region index",
   "regions":{
      "firstRegion":{
         "regionCode":"A unique identifier that identifies this region",
         "currentVersionUrl":"The relative URL for the service regional price list file of this version"
      },
      "secondRegion":{
         "regionCode": ...,
         "currentVersionUrl": ...
      },
      ...
   }
}
```

## Service Region index definitions
<a name="service-region-index-definitions-services"></a>

The following list defines the terms in the service Region index file.

**formatVersion**  
An attribute that tracks which format version the service Region index file is in. The `formatVersion` of the file is updated when the structure is changed. For example, the version will change from `v1` to `v2`.

**disclaimer**  
Any disclaimers that apply to the service Region index file.

**publicationDate**  
The date and time in UTC format when a service Region index file was published. For example, `2023-03-28T23:47:21Z`.

**regions**  
The list of available AWS Region for the AWS service.

**regions:regionCode**  
A unique code for the Region in which this AWS service is offered. This is used as the lookup key in the Regions list. For example, `us-east-2` is the US East (Ohio) Region.

**regions:regionCode:currentVersionUrl**  
The relative URL for the service Region index file of this version. For example, `/offers/v1.0/aws/AmazonRDS/20230328234721/us-east-2/index.json`.

# Service Region index file for Savings Plan
<a name="service-region-index-files-for-savings-plan"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

To understand the service Region index file for Savings Plan, see the following references:

**Topics**
+ [Example: Service Region index file for Savings Plan](#service-region-index-file-for-savings-plans)
+ [Service Region index definitions](#service-region-index-file-definitions)

## Example: Service Region index file for Savings Plan
<a name="service-region-index-file-for-savings-plans"></a>

The service Region index file for Savings Plan looks like the following.

```
{
   "disclaimer":"The disclaimers for this service version index",
   "publicationDate":"The publication date of this service region index",
   "regions":[
      {
         "regionCode":"A unique identifier that identifies this region",
         "versionUrl":"The relative URL for the service regional price list file of this version"
      },
      {
         "regionCode": ...,
         "versionUrl": ...
      },
      ...
   ]
}
```

## Service Region index definitions
<a name="service-region-index-file-definitions"></a>

The following list defines the terms in the service Region index file.

**disclaimer**  
Any disclaimers that apply to the service Region index file.

**publicationDate**  
The date and time in UTC format when a service Region index file was published. For example, `2023-03-28T23:47:21Z`.

**regions**  
The list of available AWS Region for the AWS service.

**regions:regionCode**  
A unique code for the Region in which this AWS service is offered. This is used as the lookup key in the Regions list. For example, `us-east-2` is the (US East (Ohio) Region.

**regions:versionUrl**  
The relative URL for the service Region index file of this version. For example, `/savingsPlan/v1.0/aws/AWSComputeSavingsPlan/20230407145705/us-east-2/index.json`.

# Reading the service price list files
<a name="reading-service-price-list-files"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

The service price list file lists the products and prices for a single AWS service or Savings Plan in *all AWS Regions* or a single AWS service or Savings Plan in a *specific Region*. 

Service price list files are available in CSV or JSON format. 

To read the file, you can use a spreadsheet program to read and sort the CSV file or an application that parses the JSON file.

**Note**  
In the CSV file, the product and pricing details are combined into one section. In the JSON file, the product details and pricing details are in separate sections.

**Topics**
+ [Reading the service price list file for an AWS service](reading-service-price-list-file-for-services.md)
+ [Reading the service price list file for a Savings Plan](reading-service-price-list-file-for-savings-plans.md)

# Reading the service price list file for an AWS service
<a name="reading-service-price-list-file-for-services"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

The service price list files for an AWS service includes the following types of information:
+ Service price list file details – Metadata about the service price list files, such as format version and publication date
+ Product details – Product metadata that lists the products in a service price list file, along with product information
+ Pricing details (terms) – Prices for all products in this service price list file

**Contents**
+ [CSV file](#reading-service-price-list-file-csv)
+ [JSON file](#reading-service-price-list-file-json)
+ [Term definitions](#term-definitions)
  + [OnDemand and Reserved term definition](#on-demand-reserved-term-definition)
  + [FlatRate term](#flat-rate-term)
+ [Service price list definitions](#service-price-list-files-details)
+ [Product details (products) definitions](#product-details-terms)
+ [Product details (terms) definitions](#product-details-metadata)
+ [OnDemand and Reserved definitions](#ondemand-reserved-definitions)
+ [FlatRate definitions](#flatrate-definitions)

## CSV file
<a name="reading-service-price-list-file-csv"></a>

The first five rows of the CSV file contain the metadata for the price list file. The sixth row has the column names for the products and their attributes, such as `SKU`, `OfferTermCode`, `RateCode`, `TermType`, and more. 

The number of columns depends on the service. The first few columns contain the pricing details, and other columns contain the product details for a service.

## JSON file
<a name="reading-service-price-list-file-json"></a>

The product details and pricing details are in separate sections. The same product can be offered under multiple terms, and the same term can apply to multiple products. For example, an Amazon Elastic Compute Cloud (Amazon EC2) instance is available for an `Hourly` or `Reserved` term. You can use the SKU of a product to identify the terms that are available for that product.

**Example: General JSON structure**  

```
{
   "formatVersion":"The version of the file format",
   "disclaimer":"The disclaimers for the price list file",
   "offerCode":"The code for the service", 
   "version":"The version of the price list file",
   "publicationDate":"The publication date of the price list file", 
   "products": {  
      "sku": {
         "sku":"The SKU of the product",
         "productFamily":"The product family of the product", 
         "attributes": {
            "attributeName":"attributeValue" 
         }    
      }  
   }, 
   "terms": TermDefinitions
}
```

## Term definitions
<a name="term-definitions"></a>

Different term types have different structures within the terms object.

### OnDemand and Reserved term definition
<a name="on-demand-reserved-term-definition"></a>

```
{
   "OnDemand|Reserved": {
      "sku": {
         "sku.offerTermCode": {      
            "offerTermCode":"The term code of the product", 
            "sku":"The SKU of the product",
            "effectiveDate":"The effective date of the pricing details", 
            "termAttributesType":"The attribute type of the terms", 
            "termAttributes": { 
               "attributeName":"attributeValue" 
            }, 
            "priceDimensions": {       
               "rateCode": {     
                  "rateCode":"The rate code of the price", 
                  "description":"The description of the term", 
                  "unit":"The usage measurement unit for the price", 
                  "startingRange":"The start range for the term", 
                  "endingRange":"The end range for the term", 
                  "pricePerUnit": {       
                     "currencyCode":"currencyRate"
                  }            
               }          
            }        
         }      
      }    
   }
}
```

### FlatRate term
<a name="flat-rate-term"></a>

```
{
   "FlatRate": {
      "plans": [{
         "planCode": "Plan identifier (for example, Free, Pro, Business)",
         "sku": "The SKU associated with this plan",
         "features": [{
            "featureCode": "Unique feature identifier",
            "featureName": "Human-readable feature name",
            "usageQuota": {
               "value": "Usage limit (for quantitative features)",
               "unit": "Unit of measurement (for example, requests, GB)"
            }
         }],
         "subscriptionPrice": {
            "rateCode": "The rate code of the price",
            "description": "The description of the term",
            "pricePerUnit": {
               "currencyCode": "currencyRate"
            }
         }
      }]
   }
}
```

## Service price list definitions
<a name="service-price-list-files-details"></a>

The following list defines the terms in the service price list files.

**formatVersion**  
An attribute that tracks which format version the service price list file is in. The `formatVersion` of the file is updated when the structure is changed. For example, the version will change from `v1` to `v2`.

**disclaimer**  
Any disclaimers that apply to the service price list file.

**offerCode**  
A unique code for the product of an AWS service. For example, `AmazonEC2` for Amazon EC2 or `AmazonS3` for Amazon S3.

**version**  
An attribute that tracks the version of the service price list file. Each time a new file is published, it contains a new version number. For example, `20150409022205` and `20150910182105`.

**publicationDate**  
The date and time in UTC format when a service price list file was published. For example, `2015-04-09T02:22:05Z` and `2015-09-10T18:21:05Z`.

## Product details (products) definitions
<a name="product-details-terms"></a>

This section provides information about products in a service price list file for an AWS service. Products are indexed by SKU.

**products:sku**  
A unique code for a product. Use the `SKU` code to correlate product details and pricing.   
For example, a product with a SKU of `HCNSHWWAJSGVAHMH` is available only for a price that also lists `HCNSHWWAJSGVAHMH` as a SKU.

**products:sku:productFamily**  
The category for the type of product. For example, `compute` for Amazon EC2 or `storage` for Amazon S3.

**products:sku:attributes**  
A list of all of the product attributes.

**products:sku:attributes:Attribute Name**  
The name of a product attribute. For example, `Instance Type`, `Processor`, or `OS`.

**products:sku:attributes:Attribute Value**  
The value of a product attribute. For example, `m1.small` (instance type), `xen` (type of processor), or `Linux` (type of OS).

## Product details (terms) definitions
<a name="product-details-metadata"></a>

This section provides information about the prices for products in a service price list file for an AWS service. Prices are indexed by the terms.

**terms:termType**  
The specific type of term that a term definition describes. The valid term types are `Reserved`, `OnDemand`, and `FlatRate`.

## OnDemand and Reserved definitions
<a name="ondemand-reserved-definitions"></a>

In this section, `termType` refers to `OnDemand` or `Reserved`.

**terms:termType:SKU**  
A unique code for a product. Use the `SKU` code to correlate product details and pricing.   
For example, a product with a SKU of `HCNSHWWAJSGVAHMH` is available only for a price that also lists `HCNSHWWAJSGVAHMH` as a SKU.

**terms:termType:sku:Offer Term Code**  
A unique code for a specific type of term. For example, `KCAKZHGHG`.   
Product and price combinations are referenced by the SKU code followed by the term code, separated by a period. For example, `U7ADXS4BEK5XXHRU.KCAKZHGHG`.

**terms:termType:sku:Effective Date**  
The date that an service price list file goes into effect. For example, if a term has an `EffectiveDate` of November 1, 2017, the price isn't valid before that date.

**terms:termType:sku:Term Attributes Type**  
A unique code for identifying what product and product offering are covered by a term. For example, an `EC2-Reserved` attribute type means that a term is available for Amazon EC2 reserved hosts.

**terms:termType:sku:Term Attributes**  
A list of all of the attributes that are applicable to a term type. The format appears as `attribute-name: attribute-value`. For example, this can be the length of term and the type of purchase covered by the term.

**terms:termType:sku:Term Attributes:Attribute Name**  
The name of a `TermAttribute`. You can use it to look up specific attributes. For example, you can look up terms by `length` or `PurchaseOption`.

**terms:termType:sku:Term Attributes:Attribute Value**  
The value of a `TermAttribute`. For example, terms can have a length of one year and a purchase option of `All Upfront`.

**terms:termType:sku:Price Dimensions**  
The pricing details for the price list file, such as how usage is measured, the currency that you can use to pay with, and the pricing tier limitations.

**terms:termType:sku:Price Dimensions:Rate Code**  
A unique code for a product, offer, and pricing-tier combination. Product and term combinations can have multiple price dimensions, such as free tier, low use tier, and high use tier.

**terms:termType:sku:Price Dimensions:Rate Code:Description**  
The description for a price or rate.

**terms:termType:sku:Price Dimensions:Rate Code:Unit**  
The type of unit that each service uses to measure usage for billing. For example, Amazon EC2 uses hours, and Amazon S3 uses GB.

**terms:termType:sku:Price Dimensions:Rate Code:Starting Range**  
The lower limit of the price tier covered by this price. For example, 0 GB or 1,001 API operation calls.

**terms:termType:sku:Price Dimensions:Rate Code:Ending Range**  
The upper limit of the price tier covered by this price. For example, 1,000 GB or 10,000 API operation calls.

**terms:termType:sku:Price Dimensions:Rate Code:Price Per Unit**  
A calculation of how much a single measured unit for a service costs.

**terms:termType:sku:Price Dimensions:Rate Code:Price Per Unit:Currency Code**  
A code that indicates the currency for prices for a specific product.

**terms:termType:sku:Price Dimensions:Rate Code:Price Per Unit:Currency Rate**  
The rate for a product in various supported currencies. For example, \$11.2536 per unit.

## FlatRate definitions
<a name="flatrate-definitions"></a>

In this section, `termType` refers to `FlatRate`.

**terms:termType:plans**  
An array of flat-rate pricing plans available. Each plan represents a complete pricing tier with bundled features and fixed subscription cost.

**terms:termType:plans:planCode**  
A unique identifier for the flat-rate plan (for examle, "Free", "Pro").

**terms:termType:plans:sku**  
The SKU associated with this specific plan. Links the plan to the corresponding product in the products section.

**terms:termType:plans:features**  
An array of features included in the flat-rate plan.

**terms:termType:plans:features:featureCode**  
A unique identifier for the feature (for example, "Requests", "DataTransfer", "S3Storage").

**terms:termType:plans:features:featureName**  
Human-readable name of the feature (for example, "Requests", "Data Transfer").

**terms:termType:plans:features:usageQuota**  
Usage limits for quantitative features. This object is optional and only present for features that have measurable limits.

**terms:termType:plans:features:usageQuota:value**  
The numeric limit for the feature (for example, "1000000" for 1 million requests, "100" for 100 GB).

**terms:termType:plans:features:usageQuota:unit**  
The unit of measurement for the usage limit (for example, "requests", "GB").

**terms:termType:plans:subscriptionPrice**  
The subscription pricing details for the flat-rate plan.

**terms:termType:plans:subscriptionPrice:rateCode**  
A unique code for a product, offer, and pricing-tier combination.

**terms:termType:plans:subscriptionPrice:Description**  
The description for a price or rate.

**terms:termType:plans:subscriptionPrice:Price Per Unit**  
A calculation of how much a single measured unit for a service costs.

**terms:termType:plans:subscriptionPrice:Price Per Unit:Currency Code**  
A code that indicates the currency for prices for a specific product.

**terms:termType:plans:subscriptionPrice:Price Per Unit:Currency Rate**  
The rate for a product in various supported currencies (for example, \$11.2536 per unit).

# Reading the service price list file for a Savings Plan
<a name="reading-service-price-list-file-for-savings-plans"></a>


|  | 
| --- |
| To provide feedback about AWS Price List, complete this [short survey](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA). Your responses will be anonymous. **Note:** This survey is in English only. | 

The service price list files for an AWS service includes the following types of information:
+ Service price list file details – Metadata about the service price list file, such as the version, AWS Region, and publication date
+ Product details – Product metadata that lists the products in a service price list file along with product information
+ Pricing details (terms) – Prices for all products in the service price list file

**Contents**
+ [CSV file](#service-price-list-file-for-saving-plans-csv)
+ [JSON file](#service-price-list-file-for-saving-plans-json)
+ [Service price list definitions](#service-price-list-file-definitions-savings-plan)
+ [Product details (products) definitions](#service-price-list-file-definitions-products-savings-plan)
+ [Pricing details (terms) definitions](#service-price-list-file-definitions-terms-savings-plan)

## CSV file
<a name="service-price-list-file-for-saving-plans-csv"></a>

The first five rows of the CSV file are the metadata for the price list file. The sixth row has the column names for the products and their attributes, such as `SKU`, `RateCode`, and more. 

The number of columns varies depends on the Savings Plan. The first few columns contain the pricing details, while other columns contain the product details for a Savings Plan.

## JSON file
<a name="service-price-list-file-for-saving-plans-json"></a>

The product details and pricing details are in separate sections. A JSON service price list file looks like the following example.

```
{
   "version" : "The version of the price list file",
   "publicationDate" : "The publication date of the price list file",
   "regionCode" : "Region for which price list file is valid for",
   "products" : [  
      {
         "sku" : "The SKU of the product",
         "productFamily" : "The product family of the product", 
         "serviceCode" : "Savings plan code",
         "attributes" : {
            "attributeName":"attributeValue", 
         }    
      },
      ...  
   ], 
   "terms" : {
      "savingsPlan" : [
         {
            "sku" : "The SKU of the product",
            "description" : "Description of the product",
            "effectiveDate" : "The effective date of the pricing details",
            "leaseContractLength" : {
                "duration" : "Length of the lease contract - it is a number",
                "unit" : "Unit of the duration"
            },
            "rates" : [
                {
                    "discountedSku" : "The SKU of the discounted on demand product",
                    "discountedUsageType" : "Usage type of the discounted product",
                    "discountedOperation" : "Operation of the discounted product",
                    "discountedServiceCode" : "Service code of the discounted product",
                    "rateCode" : "The rate code of this price detail",
                    "unit" : "Unit used to measure usage of the product",
                    "discountedRate" : {
                        "price" : "Price of the product",
                        "currency" : "Currency of the price"
                    }
                },
                ...
            ]
        },
        ...   
      ]  
   }
}
```

## Service price list definitions
<a name="service-price-list-file-definitions-savings-plan"></a>

The following list defines the terms in the service price list files.

**regionCode**  
The Region code of the Region for which the price list is valid for.

**version**  
An attribute that tracks the version of the price list file. Each time a new file is published, it contains a new version number. For example, `20150409022205` and `20150910182105`.

**publicationDate**  
The date and time in UTC format when a service price list file was published. For example, `2015-04-09T02:22:05Z` and `2015-09-10T18:21:05Z`.

## Product details (products) definitions
<a name="service-price-list-file-definitions-products-savings-plan"></a>

This section provides information about products in a price list file for a Savings Plan. Products are indexed by SKU.

**products:product:sku**  
A unique code for a product. Use the `SKU` code to correlate product details and pricing.   
For example, a product with a SKU of `HCNSHWWAJSGVAHMH` is available only for a price that also lists `HCNSHWWAJSGVAHMH` as a SKU.

**products:product:productFamily**  
The category for the type of product. For example, `EC2InstanceSavingsPlans` for Compute Savings Plans.

**products:product:serviceCode**  
The service code of the Savings Plan. For example, `ComputeSavingsPlans`.

**products:product:attributes**  
A list of all product attributes.

**products:product:attributes:attributeName**  
The name of a product attribute. For example, `Instance Type`, `Location Type`, or `Purchase Option`.

**products:product:attributes:attributeValue**  
The value of a product attribute. For example, `m1.small` (instance type), AWS Local Zone (type of location), or `No Upfront` (type of purchase option).

## Pricing details (terms) definitions
<a name="service-price-list-file-definitions-terms-savings-plan"></a>

This section provides information about the prices for products in a price list file for a Savings Plan. 

 Prices are indexed first by the terms (`savingsPlan`).

**terms:termType**  
The specific type of term that a term definition describes. The valid term type is `savingsPlan`.

**terms:termType:sku**  
A unique code for a product. Use the `SKU` code to correlate product details and pricing.   
For example, a product with a SKU of `T496KPMD8YQ8RZNC` is available only for a price that also lists `496KPMD8YQ8RZNC` as a SKU.

**terms:termType:sku:description**  
The description of the product.

**terms:termType:sku:effectiveDate**  
The date that an service price list file goes into effect. For example, if a term has an `EffectiveDate` of November 1, 2017, the price isn't valid before that date.

**terms:termType:sku:leaseContractLength:duration**  
The length of the lease contract. This value is a number. For example, 1 or 3.

**terms:termType:sku:rates**  
A list all of the discounted rates that are applicable to a Savings Plan product. One Savings Plan product is a combination of multiple products from other services and this contains multiple rates for the combination.

**terms:termType:sku:rates:discountedSku**  
The SKU of the discounted on demand product.

**terms:termType:sku:rates:discountedUsageType**  
The usage type of the discounted on-demand product.

**terms:termType:sku:rates:discountedOperation**  
The operation of the discounted on-demand product.

**terms:termType:sku:rates:discountedServiceCode**  
The service code of the discounted on-demand product.

**terms:termType:sku:rates:rateCode**  
The rate code of this rate offered under the Savings Plan product. For example,`T496KPMD8YQ8RZNC.26PW7ZDSYZZ6YBTZ`

**terms:termType:sku:rates:unit**  
The unit used to measure usage of the product. For example, `Hrs` for an Amazon EC2 instance.

**terms:termType:sku:rates:discountedRate:price**  
The price of the offered discounted product under Savings Plan product. For example, `3.434`.

**terms:termType:sku:rates:discountedRate:currency**  
The currency of the price of the offered discounted product under a Savings Plan product. For example, `USD`.