讀取 Savings Plan 的服務價目表 - AWS 帳單

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

讀取 Savings Plan 的服務價目表

注意

要提供有關的反饋 AWS 價格表,請完成此簡短的問卷調查。您的回覆將採匿名處理。注意:這份問卷僅提供英文版本。

的服務價目表檔案 AWS 服務 包含下列類型的資訊:

  • 服務價目表檔案詳細資訊 — 有關服務價目表檔案的中繼資料 AWS 區域,例如版本和出版日期

  • 產品詳細資訊:在服務價目表檔案中列出產品的產品中繼資料,以及產品資訊

  • 定價詳細資訊 (期限):服務價目表檔案中所有產品的價格

CSV file

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

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

JSON file

產品詳細資訊和定價詳細資訊位在不同的區段。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" } }, ... ] }, ... ] } }

服務價目表定義

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

regionCode

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

version

追蹤價目表檔案版本的屬性。每次發佈新檔案時,都會包含新的版本號碼。例如,2015040902220520150910182105

publicationDate

發佈服務價目表檔案時的UTC格式日期與時間。例如,2015-04-09T02:22:05Z2015-09-10T18:21:05Z

產品詳細資訊 (產品) 定義

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

products:product:sku

產品的獨特代碼。使用 SKU 代碼,關聯產品詳細資訊和定價。

例如,含有SKU的HCNSHWWAJSGVAHMH產品僅適用於同時列出HCNSHWWAJSGVAHMH為的價格SKU。

產品:產品:productFamily

產品類型的類別。舉例來說,Compute Savings Plans 是 EC2InstanceSavingsPlans

產品:產品:serviceCode

Savings Plan 的服務代碼。例如 ComputeSavingsPlans

products:product:attributes

所有產品屬性的清單。

產品:產品:屬性:attributeName

產品屬性的名稱。例如,Instance TypeLocation TypePurchase Option

產品:產品:屬性:attributeValue

產品屬性的值。例如,m1.small (執行個體類型)、AWS Local Zone (位置類型) 或 No Upfront (購買選項類型)。

定價詳細資訊 (詞彙) 定義

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

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

條款:termType

有效期間定義描述的特定有效期間類型。有效的期限類型為 savingsPlan

條款:: SKU termType

產品的獨特代碼。使用 SKU 代碼,關聯產品詳細資訊和定價。

例如,含有SKU的T496KPMD8YQ8RZNC產品僅適用於同時列出496KPMD8YQ8RZNC為的價格SKU。

字詞:: SKU: 描述 termType

產品的描述。

條款:: SKU: termType effectiveDate

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

條款:: SKU:: termType 持續時間 leaseContractLength

租賃合約的長度。此值為數字。例如 1 或 3。

條件:: Sku: 匯率 termType

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

條款:: Sku: 利率:termTypediscountedSku

按需折扣產品SKU的。

條款:: Sku: 利率:termTypediscountedUsageType

折扣隨需產品的使用類型。

條款:: Sku: 利率:termTypediscountedOperation

折扣隨需產品的操作。

條款:: Sku: 利率:termTypediscountedServiceCode

折扣隨需產品的服務代碼。

條款:: Sku: 利率:termTyperateCode

Savings Plan 產品提供的費率所使用的費率代碼。例如 T496KPMD8YQ8RZNC.26PW7ZDSYZZ6YBTZ

字詞:: SKU: 費率:termType單位

用於測量產品用量的單位。例如,Hrs對於 Amazon EC2 實例。

條件:: SKU: 價格:: 價termType格 discountedRate

Savings Plan 產品所提供的折扣產品的價格。例如 3.434

字詞:: SKU: 匯率:貨幣 termType discountedRate

Savings Plan 產品提供的折扣產品的價格所用貨幣。例如 USD