

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 讀取價目表檔案
<a name="bulk-api-reading-price-list-files"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

使用本節了解如何讀取您的價目表檔案。這涵蓋服務索引檔案、服務版本索引檔案、區域索引檔案，以及 AWS 服務 和 Savings Plans 使用案例的價目表檔案。

## 讀取服務索引檔案
<a name="reading-service-index-files"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

取得服務索引檔案之後，您可以使用它來尋找服務價目表檔案。

服務索引檔案使用 JSON 檔案格式。若要讀取檔案，您可以使用文字應用程式或相關程式來剖析 JSON。

服務索引檔分成兩個主要部分：
+  服務索引檔案的中繼資料
+  AWS 提供或透過 AWS Marketplace 的服務清單。

服務索引檔案的相關資訊包含可下載價格的 URL，以及該服務的區域索引檔案 URL。

### 範例：服務索引檔案
<a name="service-index-file-example"></a>

服務索引檔案如下所示。

```
{
   "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":...
      },
      ...
   },
}
```

### 服務索引檔案定義
<a name="offer-index-termdef-version-2"></a>

下列清單定義服務索引檔案中使用的詞彙：

**FormatVersion**  
追蹤服務版本索引檔案所用格式版本的屬性。結構變更時，檔案的 `formatVersion` 會更新。例如，版本將從 `v1` 變更為 `v2`。

**免責聲明**  
適用於服務版本索引檔案的任何免責聲明。

**PublicationDate**  
發行服務版本索引檔案的日期和時間，採用 UTC 格式。舉例來說，它的格式可能類似 `2015-04-09T02:22:05Z` 和 `2015-09-10T18:21:05Z`。

**Offers**  
可用的服務價目表檔案清單。

**Offers:OfferCode**  
 AWS 服務產品的唯一程式碼。舉例來說，它可能是 `AmazonEC2` 或 `AmazonS3`。`OfferCode` 被用作索引的查找索引鍵。

**Offers:CurrentVersionUrl**  
可下載最新服務價目表檔案的 URL。

**Offers:currentRegionIndexUrl**  
案區域區分的可用服務價目表檔案清單。

**Offers:savingsPlanVersionIndexUrl**  
適用 Savings Plan 優惠清單。

# 讀取服務版本索引檔案
<a name="using-the-aws-price-list-bulk-api-reading-price-list-files-reading-service-version-index-file"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

服務版本索引檔案採用 JSON 格式。若要讀取檔案，您可以使用文字程式或相關應用程式來剖析 JSON。

服務版本索引檔案由兩個主要部分組成：
+ 服務版本索引檔案的中繼資料
+  AWS 服務的可用價目表檔案全部版本清單

服務版本的相關資訊中包括的 URL，可在指定期間內用來下載該服務的價格。

**Topics**
+ [的服務版本索引檔案 AWS 服務](service-version-index-file-for-aws-service.md)
+ [Savings Plan 的服務版本索引檔案](service-version-index-file-for-savings-plans.md)

# 的服務版本索引檔案 AWS 服務
<a name="service-version-index-file-for-aws-service"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

如需瞭解服務版本索引檔案，請參閱下列參考資料：

**Topics**
+ [範例：服務的服務版本索引檔案](#example-service-version-index-file-service)
+ [服務版本索引檔案定義](#service-version-index-definitions-sps)

## 範例：服務的服務版本索引檔案
<a name="example-service-version-index-file-service"></a>

服務版本索引檔案如下所示。

```
{
   "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": ...
      },
      ...
   },
}
```

## 服務版本索引檔案定義
<a name="service-version-index-definitions-sps"></a>

下列清單定義服務版本索引檔案中的詞彙。

**formatVersion**  
追蹤服務版本索引檔案所用格式版本的屬性。結構變更時，檔案的 `formatVersion` 會更新。例如，版本將從 `v1` 變更為 `v2`。

**disclaimer**  
適用於服務版本索引檔案的任何免責聲明。

**publicationDate**  
發行服務版本索引檔案的日期和時間，採用 UTC 格式。例如 `2023-03-28T23:47:21Z`。

**offerCode**  
產品的唯一程式碼 AWS 服務。例如 `AmazonRDS` 或 `AmazonS3`。

**currentVersion**  
 AWS 服務的最新版本編號。例如 `20230328234721`。

**versions**  
此 AWS 服務的可用版本清單。

**versions:version**  
 AWS 服務的價目表版本唯一代碼。此代碼的作用是版本清單中的查詢索引鍵。例如，`20230328234721`、

**versions:version:versionEffectiveBeginDate**  
UTC 格式的開始日期和時間，對該版本有效。例如 `2023-03-28T23:47:21Z`。

**versions:version:versionEffectiveEndDate**  
UTC 格式的結束日期和時間，對該版本有效。例如 `2023-03-28T23:47:21Z`。如果未設定此屬性，表示此版本為目前作用中的版本。

**versions:version:offerVersionUrl**  
版本的服務價目表檔案相對 URL。例如 `/offers/v1.0/aws/AmazonRDS/20230328234721/index.json`。

# Savings Plan 的服務版本索引檔案
<a name="service-version-index-file-for-savings-plans"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

如需瞭解 Savings Plan 的服務版本索引檔案，請參閱下列參考資料：

**Contents**
+ [範例：Savings Plan 的服務版本索引檔案](#service-version-index-file-savings-plans-example)
+ [服務版本索引定義](#service-version-index-definitions)

## 範例：Savings Plan 的服務版本索引檔案
<a name="service-version-index-file-savings-plans-example"></a>

Savings Plan 服務版本索引檔案如下所示。

```
{
   "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": ...
      },
      ...
   ],
}
```

## 服務版本索引定義
<a name="service-version-index-definitions"></a>

下列清單定義服務版本索引檔案中的詞彙。

**disclaimer**  
適用於服務版本索引檔案的任何免責聲明。

**publicationDate**  
發行服務版本索引檔案的日期和時間，採用 UTC 格式。例如 `2023-03-28T23:47:21Z`。

**currentOfferVersionUrl**  
服務所屬最新版本編號的區域索引檔案相對 URL。例如 `/savingsPlan/v1.0/aws/AWSComputeSavingsPlan/current/region_index.json`。

**versions**  
此可用版本的清單 AWS 服務。

**versions:version:publicationDate**  
發行服務版本索引檔案的日期和時間，採用 UTC 格式。例如 `2023-04-07T14:57:05Z`

**versions:version:offerVersionUrl**  
此版本的服務區域索引檔案相對 URL。例如 `/savingsPlan/v1.0/aws/AWSComputeSavingsPlan/20230407145705/region_index.json`。

# 讀取服務區域索引檔案
<a name="reading-service-region-index-files"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

服務區域索引檔案採用 JSON 格式。若要讀取檔案，您可以使用文字程式或相關應用程式來剖析 JSON。

服務區域索引檔案由兩個主要部分組成：
+ 服務區域索引檔案的中繼資料
+  提供 AWS 區域 AWS 服務 Savings Plan 或代表有限 AWS Marketplace 方案的服務的所有清單。

服務區域的相關資訊中包括的 URL，可在指定期間和區域內用來下載該服務的價格。

**Topics**
+ [的服務區域索引檔案 AWS 服務](service-region-index-file-for-service.md)
+ [Savings Plan 的服務區域索引檔案](service-region-index-files-for-savings-plan.md)

# 的服務區域索引檔案 AWS 服務
<a name="service-region-index-file-for-service"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

若要了解 的服務版本索引檔案 AWS 服務，請參閱下列參考：

**Contents**
+ [範例： 的服務區域索引檔案 AWS 服務](#service-region-index-file-for-service)
+ [服務區域索引定義](#service-region-index-definitions-services)

## 範例： 的服務區域索引檔案 AWS 服務
<a name="service-region-index-file-for-service"></a>

的服務區域索引檔案 AWS 服務 如下所示。

```
{
   "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": ...
      },
      ...
   }
}
```

## 服務區域索引定義
<a name="service-region-index-definitions-services"></a>

下列清單定義服務區域索引檔案中的詞彙。

**formatVersion**  
追蹤服務區域索引檔案所用格式版本的屬性。結構變更時，檔案的 `formatVersion` 會更新。例如，版本將從 `v1` 變更為 `v2`。

**disclaimer**  
適用於服務區域索引檔案的任何免責聲明。

**publicationDate**  
發行服務區域索引檔案的日期和時間，採用 UTC 格式。例如 `2023-03-28T23:47:21Z`。

**區域**  
 AWS 區域 適用於 的 清單 AWS 服務。

**regions:regionCode**  
 AWS 服務 提供此服務之區域的唯一代碼。此代碼的作用是區域清單中的查詢索引鍵。舉例來說，`us-east-2` 代表美國東部 (俄亥俄) 區域。

**regions:regionCode:currentVersionUrl**  
此版本的服務區域索引檔案相對 URL。例如 `/offers/v1.0/aws/AmazonRDS/20230328234721/us-east-2/index.json`。

# Savings Plan 的服務區域索引檔案
<a name="service-region-index-files-for-savings-plan"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

若要瞭解 Savings Plan 的服務區域索引檔案，請參閱下列參考資料：

**Topics**
+ [範例：Savings Plan 的服務區域索引檔案](#service-region-index-file-for-savings-plans)
+ [服務區域索引定義](#service-region-index-file-definitions)

## 範例：Savings Plan 的服務區域索引檔案
<a name="service-region-index-file-for-savings-plans"></a>

Savings Plan 的服務區域索引檔案如下所示。

```
{
   "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": ...
      },
      ...
   ]
}
```

## 服務區域索引定義
<a name="service-region-index-file-definitions"></a>

下列清單定義服務區域索引檔案中的詞彙。

**disclaimer**  
適用於服務區域索引檔案的任何免責聲明。

**publicationDate**  
發行服務區域索引檔案的日期和時間，採用 UTC 格式。例如 `2023-03-28T23:47:21Z`。

**區域**  
 AWS 區域 適用於 的 清單 AWS 服務。

**regions:regionCode**  
 AWS 服務 提供此服務之區域的唯一代碼。此代碼的作用是區域清單中的查詢索引鍵。舉例來說，`us-east-2` 代表美國東部 (俄亥俄) 區域。

**regions:versionUrl**  
此版本的服務區域索引檔案相對 URL。例如 `/savingsPlan/v1.0/aws/AWSComputeSavingsPlan/20230407145705/us-east-2/index.json`。

# 讀取服務價目表檔案
<a name="reading-service-price-list-files"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

服務價目表檔案列出*所有 AWS 區域* 中的單一 AWS 服務 或 Savings Plan，或*特定區域中*的單一 AWS 服務 或 Savings Plan 的產品和價格。

服務價目表檔案會使用 JSON 和 CSV 格式。

若要讀取檔案，您可以使用試算表程式來讀取和排序 CSV 檔案，或使用應用程式來剖析 JSON 檔案。

**注意**  
在 CSV 檔案中，產品和定價詳細資訊會合併成一個區段。在 JSON 檔案中，產品詳細資訊和定價詳細資訊位在不同的區段。

**Topics**
+ [讀取 的服務價目表檔案 AWS 服務](reading-service-price-list-file-for-services.md)
+ [讀取 Savings Plan 的服務價目表](reading-service-price-list-file-for-savings-plans.md)

# 讀取 的服務價目表檔案 AWS 服務
<a name="reading-service-price-list-file-for-services"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

的服務價目表檔案 AWS 服務 包含下列類型的資訊：
+ 服務價目表檔案詳細資訊：服務價目表檔案的中繼資料，例如格式版本和發佈日期
+ 產品詳細資訊：在服務價目表檔案中列出產品的產品中繼資料，以及產品資訊
+ 定價詳細資訊 (期限)：此服務價目表檔案中所有產品的價格

**Contents**
+ [CSV 檔案](#reading-service-price-list-file-csv)
+ [JSON 檔案](#reading-service-price-list-file-json)
+ [術語定義](#term-definitions)
  + [OnDemand 和預留詞彙定義](#on-demand-reserved-term-definition)
  + [FlatRate 術語](#flat-rate-term)
+ [服務價目表定義](#service-price-list-files-details)
+ [產品詳細資訊 (產品) 定義](#product-details-terms)
+ [產品詳細資訊 (期限) 定義](#product-details-metadata)
+ [OnDemand和預留定義](#ondemand-reserved-definitions)
+ [FlatRate 定義](#flatrate-definitions)

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

CSV 檔案的前五列包含價目表檔案的中繼資料。第六列包含產品及其屬性的資料欄名稱，例如 `SKU`、`OfferTermCode`、`RateCode`、`TermType` 等。

欄的數量因服務而異。前幾欄包含定價詳細資訊，而其他欄包含服務的產品詳細資訊。

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

產品詳細資訊和定價詳細資訊位在不同的區段。同一個產品可依多種期限來供應，而相同期限也能套用至多個產品。舉例來說，Amazon Elastic Compute Cloud (Amazon EC2) 執行個體適用於 `Hourly` 或 `Reserved` 期限。您可以使用產品的 SKU 識別該產品適用的期限。

**Example 範例：一般 JSON 結構**  

```
{
   "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
}
```

## 術語定義
<a name="term-definitions"></a>

不同的術語類型在術語物件中具有不同的結構。

### OnDemand 和預留詞彙定義
<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 術語
<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"
            }
         }
      }]
   }
}
```

## 服務價目表定義
<a name="service-price-list-files-details"></a>

下列清單定義服務價目表檔案中的詞彙。

**formatVersion**  
追蹤服務價目表檔案所用格式版本的屬性。結構變更時，檔案的 `formatVersion` 會更新。例如，版本將從 `v1` 變更為 `v2`。

**disclaimer**  
適用於服務價目表檔案的任何免責聲明。

**offerCode**  
產品的唯一程式碼 AWS 服務。例如：適用於 Amazon EC2 的 `AmazonEC2` 或適用於 Amazon S3 的 `AmazonS3`。

**version**  
追蹤服務價目表檔案版本的屬性。每次發佈新檔案時，都會包含新的版本號碼。例如，`20150409022205` 和 `20150910182105`。

**publicationDate**  
發行服務價目表檔案的日期和時間，採用 UTC 格式。例如，`2015-04-09T02:22:05Z` 和 `2015-09-10T18:21:05Z`。

## 產品詳細資訊 (產品) 定義
<a name="product-details-terms"></a>

這個部分提供 AWS 服務服務價目表檔案中的產品相關資訊。產品是依據 SKU 編製索引。

**products:sku**  
產品的獨特代碼。使用 `SKU` 代碼，關聯產品詳細資訊和定價。  
舉例來說，產品若有 `HCNSHWWAJSGVAHMH` SKU，則僅適用於同樣將 `HCNSHWWAJSGVAHMH` 列出為 SKU 的價格。

**products:sku:productFamily**  
產品類型的類別。例如：適用於 Amazon EC2 的 `compute` 或適用於 Amazon S3 的 `storage`。

**products:sku:attributes**  
所有產品屬性的清單。

**products:sku:attributes:Attribute Name**  
產品屬性的名稱。例如，`Instance Type`、`Processor` 或 `OS`。

**products:sku:attributes:Attribute Value**  
產品屬性的值。例如：`m1.small` (執行個體類型)、`xen` (處理器類型)、或 `Linux` (作業系統類型)。

## 產品詳細資訊 (期限) 定義
<a name="product-details-metadata"></a>

本節提供 AWS 服務服務價目表檔案中的產品價格相關資訊。價格會依條款編製索引。

**terms:termType**  
有效期間定義描述的特定有效期間類型。有效詞彙類型為 `Reserved`、 `OnDemand`和 `FlatRate`。

## OnDemand和預留定義
<a name="ondemand-reserved-definitions"></a>

在本節中， `termType`是指 `OnDemand`或 `Reserved`。

**terms:termType:SKU**  
產品的獨特代碼。使用 `SKU` 代碼，關聯產品詳細資訊和定價。  
舉例來說，產品若有 `HCNSHWWAJSGVAHMH` SKU，則僅適用於同樣將 `HCNSHWWAJSGVAHMH` 列出為 SKU 的價格。

**terms:termType:sku:Offer Term Code**  
特定有效期間類型的獨特代碼。例如 `KCAKZHGHG`。  
產品和價格組合是由 SKU 代碼引用，後面接著有效期間代碼，並以句點分隔。例如 `U7ADXS4BEK5XXHRU.KCAKZHGHG`。

**terms:termType:sku:Effective Date**  
服務價目表檔案生效的日期。舉例來說，如果期限中包含 2017 年 11 月 1 日的 `EffectiveDate`，則該日期之前的價格皆無效。

**terms:termType:sku:Term Attributes Type**  
識別有效期間涵蓋哪些產品和產品供應項目的唯一代碼。舉例來說，`EC2-Reserved` 屬性類型表示 Amazon EC2 預留主機適用的期限。

**terms:termType:sku:Term Attributes**  
列出期限類型所有適用屬性的清單。格式會顯示為 `attribute-name: attribute-value`。舉例來說，它可能是期限的長度，以及期限所涵蓋的購買類型。

**terms:termType:sku:Term Attributes:Attribute Name**  
`TermAttribute` 的名稱。您可以使用其來查找特定的屬性。例如，您可以透過 `length` 或 `PurchaseOption` 查找有效期間。

**terms:termType:sku:Term Attributes:Attribute Value**  
`TermAttribute` 的值。例如，有效期間可以有一年時長和 `All Upfront` 購買選項。

**terms:termType:sku:Price Dimensions**  
價目表檔案的定價詳細資訊，例如用量的衡量方式、付款時的可用貨幣，以及定價層級限制。

**terms:termType:sku:Price Dimensions:Rate Code**  
產品、優惠和定價層級組合的唯一代碼。產品和期限組合可以有多個價格維度，例如免費方案、低使用方案和高使用方案。

**terms:termType:sku:Price Dimensions:Rate Code:Description**  
价格或費率的描述。

**terms:termType:sku:Price Dimensions:Rate Code:Unit**  
每項服務用來測量帳單用量的單位類型。舉例來說，Amazon EC2 使用小時，Amazon S3 則使用 GB。

**terms:termType:sku:Price Dimensions:Rate Code:Starting Range**  
此價格涵蓋的價格方案的下限。舉例來說，0 GB 或 1,001 個 API 操作呼叫。

**terms:termType:sku:Price Dimensions:Rate Code:Ending Range**  
此價格涵蓋的價格方案的上限。舉例來說，1,000 GB 或 10,000 個 API 操作呼叫。

**terms:termType:sku:Price Dimensions:Rate Code:Price Per Unit**  
一項服務成本的有多少單一測量單位的計算。

**terms:termType:sku:Price Dimensions:Rate Code:Price Per Unit:Currency Code**  
表示特定產品價格貨幣的代碼。

**terms:termType:sku:Price Dimensions:Rate Code:Price Per Unit:Currency Rate**  
以各種支援貨幣計算的產品費率。例如，每個單位 1.2536 USD。

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

在本節中， `termType`是指 `FlatRate`。

**terms：termType：plans**  
可用的固定費率定價計劃陣列。每個計劃代表具有綁定功能和固定訂閱成本的完整定價方案。

**terms：termType：plans：planCode**  
固定費率計劃的唯一識別符 （適用於檢查、「免費」、「專業」)。

**terms：termType：plans：sku**  
與此特定計劃相關聯的 SKU。將計劃連結至產品區段中的對應產品。

**terms：termType：plans：features**  
固定費率計劃中包含的一系列功能。

**terms：termType：plans：features：featureCode**  
功能的唯一識別符 （例如 "Requests"、"DataTransfer"、"S3Storage")。

**terms：termType：plans：features：featureName**  
功能的人類可讀取名稱 （例如，「請求」、「資料傳輸」)。

**terms：termType：plans：features：usageQuota**  
量化功能的用量限制。此物件是選用的，僅適用於具有可測量限制的功能。

**terms：termType：plans：features：usageQuota：value**  
功能的數值限制 （例如，100 萬個請求為 "1000000"，100 GB 為 "100")。

**terms：termType：plans：features：usageQuota：unit**  
用量限制的測量單位 （例如 "requests"、"GB")。

**terms：termType：plans：subscriptionPrice**  
固定費率方案的訂閱定價詳細資訊。

**terms：termType：plans：subscriptionPrice：rateCode**  
產品、優惠和定價層級組合的唯一代碼。

**terms：termType：plans：subscriptionPrice：Description**  
价格或費率的描述。

**terms：termType：plans：subscriptionPrice：Price per Unit**  
一項服務成本的有多少單一測量單位的計算。

**terms：termType：plans：subscriptionPrice：Price per Unit：Currency Code**  
表示特定產品價格貨幣的代碼。

**terms：termType：plans：subscriptionPrice：Price per Unit：Currency Rate**  
各種支援貨幣的產品費率 （例如，每單位 1.2536 美元）。

# 讀取 Savings Plan 的服務價目表
<a name="reading-service-price-list-file-for-savings-plans"></a>


|  | 
| --- |
| 若要提供有關 的意見回饋 AWS 價格表，請完成此[簡短問卷](https://amazonmr.au1.qualtrics.com/jfe/form/SV_cO0deTMyKyFeezA)。您的回覆將採匿名處理。**注意：**這份問卷僅提供英文版本。 | 

的服務價目表檔案 AWS 服務 包含下列類型的資訊：
+ 服務價目表檔案詳細資訊 – 有關服務價目表檔案的中繼資料，例如版本 AWS 區域和發佈日期
+ 產品詳細資訊：在服務價目表檔案中列出產品的產品中繼資料，以及產品資訊
+ 定價詳細資訊 (期限)：服務價目表檔案中所有產品的價格

**Contents**
+ [CSV 檔案](#service-price-list-file-for-saving-plans-csv)
+ [JSON 檔案](#service-price-list-file-for-saving-plans-json)
+ [服務價目表定義](#service-price-list-file-definitions-savings-plan)
+ [產品詳細資訊 (產品) 定義](#service-price-list-file-definitions-products-savings-plan)
+ [定價詳細資訊 (詞彙) 定義](#service-price-list-file-definitions-terms-savings-plan)

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

CSV 檔案的前五列是價目表檔案的中繼資料。第六列包含產品及其屬性的資料欄名稱，例如 `SKU`、`RateCode` 等。

資料欄的數量因 Savings Plan 而異。前幾欄包含定價詳細資訊，而其他欄包含 Savings Plan 的產品詳細資訊。

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

產品詳細資訊和定價詳細資訊位在不同的區段。JSON 服務價目表檔案如下範例所示。

```
{
   "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"
                    }
                },
                ...
            ]
        },
        ...   
      ]  
   }
}
```

## 服務價目表定義
<a name="service-price-list-file-definitions-savings-plan"></a>

下列清單定義服務價目表檔案中的詞彙。

**regionCode**  
價目表有效的區域所具有的區域代碼。

**version**  
追蹤價目表檔案版本的屬性。每次發佈新檔案時，都會包含新的版本號碼。例如，`20150409022205` 和 `20150910182105`。

**publicationDate**  
發行服務價目表檔案的日期和時間，採用 UTC 格式。例如，`2015-04-09T02:22:05Z` 和 `2015-09-10T18:21:05Z`。

## 產品詳細資訊 (產品) 定義
<a name="service-price-list-file-definitions-products-savings-plan"></a>

本節提供 Savings Plan 價目表檔案中的產品相關資訊。產品是依據 SKU 編製索引。

**products:product:sku**  
產品的獨特代碼。使用 `SKU` 代碼，關聯產品詳細資訊和定價。  
舉例來說，產品若有 `HCNSHWWAJSGVAHMH` SKU，則僅適用於同樣將 `HCNSHWWAJSGVAHMH` 列出為 SKU 的價格。

**products:product:productFamily**  
產品類型的類別。舉例來說，Compute Savings Plans 是 `EC2InstanceSavingsPlans`。

**products:product:serviceCode**  
Savings Plan 的服務代碼。例如 `ComputeSavingsPlans`。

**products:product:attributes**  
所有產品屬性的清單。

**products:product:attributes:attributeName**  
產品屬性的名稱。例如，`Instance Type`、`Location Type` 或 `Purchase Option`。

**products:product:attributes:attributeValue**  
產品屬性的值。例如，`m1.small` (執行個體類型)、AWS Local Zone (位置類型) 或 `No Upfront` (購買選項類型)。

## 定價詳細資訊 (詞彙) 定義
<a name="service-price-list-file-definitions-terms-savings-plan"></a>

本節提供 Savings Plan 價目表檔案中的產品價格相關資訊。

 價格會先以期限 (`savingsPlan`) 建立索引。

**terms:termType**  
有效期間定義描述的特定有效期間類型。有效的期限類型為 `savingsPlan`。

**terms:termType:sku**  
產品的獨特代碼。使用 `SKU` 代碼，關聯產品詳細資訊和定價。  
舉例來說，產品若有 `T496KPMD8YQ8RZNC` SKU，則僅適用於同樣將 `496KPMD8YQ8RZNC` 列出為 SKU 的價格。

**terms:termType:sku:description**  
產品的描述。

**terms:termType:sku:effectiveDate**  
服務價目表檔案生效的日期。舉例來說，如果期限中包含 2017 年 11 月 1 日的 `EffectiveDate`，則該日期之前的價格皆無效。

**terms:termType:sku:leaseContractLength:duration**  
租賃合約的長度。此值為數字。例如 1 或 3。

**terms:termType:sku:rates**  
列出 Savings Plan 產品所有適用折扣費率的清單。一項 Savings Plan 產品由多種其他服務的產品組成，其中包含多種提供給組合的費率。

**terms:termType:sku:rates:discountedSku**  
折扣隨需產品的 SKU。

**terms:termType:sku:rates:discountedUsageType**  
折扣隨需產品的使用類型。

**terms:termType:sku:rates:discountedOperation**  
折扣隨需產品的操作。

**terms:termType:sku:rates:discountedServiceCode**  
折扣隨需產品的服務代碼。

**terms:termType:sku:rates:rateCode**  
Savings Plan 產品提供的費率所使用的費率代碼。例如 `T496KPMD8YQ8RZNC.26PW7ZDSYZZ6YBTZ`

**terms:termType:sku:rates:unit**  
用於測量產品用量的單位。例如，Amazon EC2 執行個體是使用 `Hrs`。

**terms:termType:sku:rates:discountedRate:price**  
Savings Plan 產品所提供的折扣產品的價格。例如 `3.434`。

**terms:termType:sku:rates:discountedRate:currency**  
Savings Plan 產品提供的折扣產品的價格所用貨幣。例如 `USD`。