讀取 AWS 服務 的服務價目表檔案 - AWS 帳單

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

讀取 AWS 服務 的服務價目表檔案

若要提供 AWS 價格表 的相關意見回饋,請填寫這份簡短問卷。您的回覆將採匿名處理。注意:這份問卷僅提供英文版本。

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

  • 服務價目表檔案詳細資訊:服務價目表檔案的中繼資料,例如格式版本和發佈日期

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

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

CSV 檔案

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

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

JSON 檔案

產品詳細資訊和定價詳細資訊位在不同的區段。同一個產品可依多種期限來供應,而相同期限也能套用至多個產品。

舉例來說,Amazon Elastic Compute Cloud (Amazon EC2) 執行個體適用於 HourlyReserved 期限。您可以使用產品的 SKU 識別該產品適用的期限。

範例: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": { "termType": { "sku": { "sku": { "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", } } } } } } } }

服務價目表定義

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

formatVersion

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

disclaimer

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

offerCode

AWS 服務 產品的獨特代碼。例如:適用於 Amazon EC2 的 AmazonEC2 或適用於 Amazon S3 的 AmazonS3

version

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

publicationDate

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

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

這個部分提供 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 TypeProcessorOS

products:sku:attributes:Attribute Value

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

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

本節提供 AWS 服務 服務價目表檔案中的產品價格相關資訊。

價格先依照期限 (onDemandreserved)、再依照 SKU 編製索引。

terms:termType

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

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 的名稱。您可以使用其來查找特定的屬性。例如,您可以透過 lengthPurchaseOption 查找有效期間。

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。