[アップデート] AWS Price List API が新たに 4 つのクエリフィルターをサポートしました

[アップデート] AWS Price List API が新たに 4 つのクエリフィルターをサポートしました

Clock Icon2025.07.15

こんにちは!クラウド事業本部コンサルティング部のたかくに(@takakuni_)です。

AWS Price List API が新たに 4 つのクエリフィルターをサポートしました。(個人的にすごく嬉しいです。)

https://aws.amazon.com/jp/about-aws/whats-new/2025/07/aws-price-list-api-supports-four-query-filters/

アップデート前まで

このクエリフィルターですが、GetProducts に関するものです。

使う人は使うし、使わない人は使わない API なのですが、今までクエリ可能なフィルタ条件が TERM_MATCH のみでした。

https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_Filter.html

リージョン別に、利用費が異なることはよくあることで、なんど「部分一致でフィルタしたい ...!」と思ったことでしょうか。

今回のアップデートで、以下の 4 つが増えました。

  • EQUALS: 指定された値と完全に一致するフィールド値を持つ製品を返します。
  • CONTAINS: フィールド値に指定された値が部分文字列として含まれている製品を返します。
  • ANY_OF: フィールド値が指定された値のいずれかである製品を返します。
  • NONE_OF: フィールド値が指定された値のいずれでもない製品を返します。

部分一致が出てきましたね。ありがたい。

ちなみに、部分一致をしたいケースとしては、以下のような m6i から始まるインスタンスタイプの価格をフィルターしたいケースにおいて、Instance Family のような形で完全一致したフィルターがかけられないケースが挙げられます。

それ以外にも usagetype を HostBoxUsage でフィルタリングかけることで、リージョンを跨いだ価格をシンプルに取得できたりします。

{
  "product": {
    "productFamily": "Compute Instance",
    "attributes": {
      "enhancedNetworkingSupported": "Yes",
      "intelTurboAvailable": "Yes",
      "memory": "512 GiB",
      "dedicatedEbsThroughput": "40000 Mbps",
      "vcpu": "128",
      "classicnetworkingsupport": "false",
      "capacitystatus": "Used",
      "locationType": "AWS Region",
      "storage": "4 x 1900 NVMe SSD",
      "instanceFamily": "General purpose",
      "operatingSystem": "Red Hat Enterprise Linux with HA",
      "intelAvx2Available": "Yes",
      "regionCode": "ap-northeast-1",
      "physicalProcessor": "Intel Xeon 8375C (Ice Lake)",
      "clockSpeed": "3.5 GHz",
      "ecu": "NA",
      "networkPerformance": "50000 Megabit",
      "servicename": "Amazon Elastic Compute Cloud",
      "gpuMemory": "NA",
      "vpcnetworkingsupport": "true",
      "instanceType": "m6id.32xlarge",
      "tenancy": "Host",
      "usagetype": "APN1-HostBoxUsage:m6id.32xlarge",
      "normalizationSizeFactor": "256",
      "intelAvxAvailable": "Yes",
      "processorFeatures": "Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo",
      "servicecode": "AmazonEC2",
      "licenseModel": "No License required",
      "currentGeneration": "Yes",
      "preInstalledSw": "NA",
      "location": "Asia Pacific (Tokyo)",
      "processorArchitecture": "64-bit",
      "marketoption": "OnDemand",
      "operation": "RunInstances:1010",
      "availabilityzone": "NA"
    },
    "sku": "2PYSEZNYEUUQSK5T"
  },
  "serviceCode": "AmazonEC2",
  "terms": {
    "OnDemand": {
      "2PYSEZNYEUUQSK5T.JRTCKXETXF": {
        "priceDimensions": {
          "2PYSEZNYEUUQSK5T.JRTCKXETXF.6YS6EN2CT7": {
            "unit": "Hrs",
            "endRange": "Inf",
            "description": "$0.00 per Red Hat Enterprise Linux with HA m6id.32xlarge Dedicated Host Instance hour",
            "appliesTo": [],
            "rateCode": "2PYSEZNYEUUQSK5T.JRTCKXETXF.6YS6EN2CT7",
            "beginRange": "0",
            "pricePerUnit": {
              "USD": "0.0000000000"
            }
          }
        },
        "sku": "2PYSEZNYEUUQSK5T",
        "effectiveDate": "2025-07-01T00:00:00Z",
        "offerTermCode": "JRTCKXETXF",
        "termAttributes": {}
      }
    }
  },
  "version": "20250715014947",
  "publicationDate": "2025-07-15T01:49:47Z"
}

やってみた

実際に新たに増えたクエリフィルターを使ってみたいと思います。boto3 から GetProducts API を試しましょう。

たとえばですが、以下のようなコードが考えられます。

import json
import os
import boto3

region = os.environ.get('AWS_REGION')
client = boto3.client('pricing', region_name='us-east-1')

filters = [
    {"Field": "operatingSystem", "Type": "TERM_MATCH", "Value": "Windows"},
    {"Field": "regionCode", "Type": "TERM_MATCH", "Value": region},
    {"Field": "instanceType", "Type": "CONTAINS", "Value": "m6i"},
]

response = client.get_products(ServiceCode="AmazonEC2", Filters=filters)

print(len(response['PriceList']))
print(json.dumps(response['PriceList'], indent=4))

先ほど例示した m6i から始まる、部分一致をかけています。100 件(Max results)取得して一部抜粋していますが、m6i からフィルターかけられているようでした。

[
  "{\"product\":{\"productFamily\":\"Compute Instance\",\"attributes\":{\"enhancedNetworkingSupported\":\"Yes\",\"intelTurboAvailable\":\"Yes\",\"memory\":\"128 GiB\",\"dedicatedEbsThroughput\":\"10000 Mbps\",\"vcpu\":\"32\",\"classicnetworkingsupport\":\"false\",\"capacitystatus\":\"UnusedCapacityReservation\",\"locationType\":\"AWS Region\",\"storage\":\"1 x 1900 NVMe SSD\",\"instanceFamily\":\"General purpose\",\"operatingSystem\":\"Windows\",\"intelAvx2Available\":\"Yes\",\"regionCode\":\"ap-northeast-1\",\"physicalProcessor\":\"Intel Xeon 8375C (Ice Lake)\",\"clockSpeed\":\"3.5 GHz\",\"ecu\":\"NA\",\"networkPerformance\":\"12500 Megabit\",\"servicename\":\"Amazon Elastic Compute Cloud\",\"instancesku\":\"HKEDZWK2STU8M3FR\",\"gpuMemory\":\"NA\",\"vpcnetworkingsupport\":\"true\",\"instanceType\":\"m6id.8xlarge\",\"tenancy\":\"Dedicated\",\"usagetype\":\"APN1-UnusedDed:m6id.8xlarge\",\"normalizationSizeFactor\":\"64\",\"intelAvxAvailable\":\"Yes\",\"processorFeatures\":\"Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo\",\"servicecode\":\"AmazonEC2\",\"licenseModel\":\"No License required\",\"currentGeneration\":\"Yes\",\"preInstalledSw\":\"SQL Std\",\"location\":\"Asia Pacific (Tokyo)\",\"processorArchitecture\":\"64-bit\",\"marketoption\":\"OnDemand\",\"operation\":\"RunInstances:0006\",\"availabilityzone\":\"NA\"},\"sku\":\"222N88CVP786VZUD\"},\"serviceCode\":\"AmazonEC2\",\"terms\":{\"OnDemand\":{\"222N88CVP786VZUD.JRTCKXETXF\":{\"priceDimensions\":{\"222N88CVP786VZUD.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"$8.01008 per Dedicated Unused Reservation Windows with SQL Std m6id.8xlarge Instance Hour\",\"appliesTo\":[],\"rateCode\":\"222N88CVP786VZUD.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"8.0100800000\"}}},\"sku\":\"222N88CVP786VZUD\",\"effectiveDate\":\"2025-07-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250715014947\",\"publicationDate\":\"2025-07-15T01:49:47Z\"}",
  "{\"product\":{\"productFamily\":\"Compute Instance\",\"attributes\":{\"enhancedNetworkingSupported\":\"Yes\",\"intelTurboAvailable\":\"Yes\",\"memory\":\"64 GiB\",\"dedicatedEbsThroughput\":\"Up to 10000 Mbps\",\"vcpu\":\"16\",\"classicnetworkingsupport\":\"false\",\"capacitystatus\":\"UnusedCapacityReservation\",\"locationType\":\"AWS Region\",\"storage\":\"EBS only\",\"instanceFamily\":\"General purpose\",\"operatingSystem\":\"Windows\",\"intelAvx2Available\":\"Yes\",\"regionCode\":\"ap-northeast-1\",\"physicalProcessor\":\"Intel Xeon 8375C (Ice Lake)\",\"clockSpeed\":\"3.5 GHz\",\"ecu\":\"NA\",\"networkPerformance\":\"Up to 12500 Megabit\",\"servicename\":\"Amazon Elastic Compute Cloud\",\"instancesku\":\"FZ89T3DSTHNC3U6G\",\"gpuMemory\":\"NA\",\"vpcnetworkingsupport\":\"true\",\"instanceType\":\"m6i.4xlarge\",\"tenancy\":\"Dedicated\",\"usagetype\":\"APN1-UnusedDed:m6i.4xlarge\",\"normalizationSizeFactor\":\"32\",\"intelAvxAvailable\":\"Yes\",\"processorFeatures\":\"Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo\",\"servicecode\":\"AmazonEC2\",\"licenseModel\":\"No License required\",\"currentGeneration\":\"Yes\",\"preInstalledSw\":\"SQL Web\",\"location\":\"Asia Pacific (Tokyo)\",\"processorArchitecture\":\"64-bit\",\"marketoption\":\"OnDemand\",\"operation\":\"RunInstances:0202\",\"availabilityzone\":\"NA\"},\"sku\":\"23J8E5BQF9NUECMA\"},\"serviceCode\":\"AmazonEC2\",\"terms\":{\"OnDemand\":{\"23J8E5BQF9NUECMA.JRTCKXETXF\":{\"priceDimensions\":{\"23J8E5BQF9NUECMA.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"$2.0976 per Dedicated Unused Reservation Windows with SQL Web m6i.4xlarge Instance Hour\",\"appliesTo\":[],\"rateCode\":\"23J8E5BQF9NUECMA.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"2.0976000000\"}}},\"sku\":\"23J8E5BQF9NUECMA\",\"effectiveDate\":\"2025-07-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}}},\"version\":\"20250715014947\",\"publicationDate\":\"2025-07-15T01:49:47Z\"}",
  "{\"product\":{\"productFamily\":\"Compute Instance\",\"attributes\":{\"enhancedNetworkingSupported\":\"Yes\",\"intelTurboAvailable\":\"Yes\",\"memory\":\"512 GiB\",\"dedicatedEbsThroughput\":\"100000 Mbps\",\"vcpu\":\"128\",\"classicnetworkingsupport\":\"false\",\"capacitystatus\":\"Used\",\"locationType\":\"AWS Region\",\"storage\":\"4 x 1900 NVMe SSD\",\"instanceFamily\":\"General purpose\",\"operatingSystem\":\"Windows\",\"intelAvx2Available\":\"Yes\",\"regionCode\":\"ap-northeast-1\",\"physicalProcessor\":\"Intel Xeon 8375C (Ice Lake)\",\"clockSpeed\":\"3.5 GHz\",\"ecu\":\"NA\",\"networkPerformance\":\"200000 Megabit\",\"servicename\":\"Amazon Elastic Compute Cloud\",\"gpuMemory\":\"NA\",\"vpcnetworkingsupport\":\"true\",\"instanceType\":\"m6idn.32xlarge\",\"tenancy\":\"Dedicated\",\"usagetype\":\"APN1-DedicatedUsage:m6idn.32xlarge\",\"normalizationSizeFactor\":\"256\",\"intelAvxAvailable\":\"Yes\",\"processorFeatures\":\"Intel AVX; Intel AVX2; Intel AVX512; Intel Turbo\",\"servicecode\":\"AmazonEC2\",\"licenseModel\":\"No License required\",\"currentGeneration\":\"Yes\",\"preInstalledSw\":\"NA\",\"location\":\"Asia Pacific (Tokyo)\",\"processorArchitecture\":\"64-bit\",\"marketoption\":\"OnDemand\",\"operation\":\"RunInstances:0002\",\"availabilityzone\":\"NA\"},\"sku\":\"266X5TTS9UT8E6TU\"},\"serviceCode\":\"AmazonEC2\",\"terms\":{\"OnDemand\":{\"266X5TTS9UT8E6TU.JRTCKXETXF\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.JRTCKXETXF.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"$18.992 per Dedicated Windows m6idn.32xlarge Instance Hour\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.JRTCKXETXF.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"18.9920000000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-01T00:00:00Z\",\"offerTermCode\":\"JRTCKXETXF\",\"termAttributes\":{}}},\"Reserved\":{\"266X5TTS9UT8E6TU.HU7G6KETJZ\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.HU7G6KETJZ.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.HU7G6KETJZ.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"6.8752000000\"}},\"266X5TTS9UT8E6TU.HU7G6KETJZ.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.HU7G6KETJZ.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"60227\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:57Z\",\"offerTermCode\":\"HU7G6KETJZ\",\"termAttributes\":{\"LeaseContractLength\":\"1yr\",\"OfferingClass\":\"standard\",\"PurchaseOption\":\"Partial Upfront\"}},\"266X5TTS9UT8E6TU.NQ3QZPMQV9\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.NQ3QZPMQV9.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"USD 0.0 per Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.NQ3QZPMQV9.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0000000000\"}},\"266X5TTS9UT8E6TU.NQ3QZPMQV9.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.NQ3QZPMQV9.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"284221\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:57Z\",\"offerTermCode\":\"NQ3QZPMQV9\",\"termAttributes\":{\"LeaseContractLength\":\"3yr\",\"OfferingClass\":\"standard\",\"PurchaseOption\":\"All Upfront\"}},\"266X5TTS9UT8E6TU.BPH4J8HBKS\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.BPH4J8HBKS.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.BPH4J8HBKS.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"11.5489300000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:58Z\",\"offerTermCode\":\"BPH4J8HBKS\",\"termAttributes\":{\"LeaseContractLength\":\"3yr\",\"OfferingClass\":\"standard\",\"PurchaseOption\":\"No Upfront\"}},\"266X5TTS9UT8E6TU.R5XV2EPZQZ\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.R5XV2EPZQZ.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.R5XV2EPZQZ.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"6.0817500000\"}},\"266X5TTS9UT8E6TU.R5XV2EPZQZ.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.R5XV2EPZQZ.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"159828\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:58Z\",\"offerTermCode\":\"R5XV2EPZQZ\",\"termAttributes\":{\"LeaseContractLength\":\"3yr\",\"OfferingClass\":\"convertible\",\"PurchaseOption\":\"Partial Upfront\"}},\"266X5TTS9UT8E6TU.6QCMYABX3D\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.6QCMYABX3D.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.6QCMYABX3D.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"119076\"}},\"266X5TTS9UT8E6TU.6QCMYABX3D.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"USD 0.0 per Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.6QCMYABX3D.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0000000000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:59Z\",\"offerTermCode\":\"6QCMYABX3D\",\"termAttributes\":{\"LeaseContractLength\":\"1yr\",\"OfferingClass\":\"standard\",\"PurchaseOption\":\"All Upfront\"}},\"266X5TTS9UT8E6TU.VJWZNREJX2\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.VJWZNREJX2.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.VJWZNREJX2.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"137975\"}},\"266X5TTS9UT8E6TU.VJWZNREJX2.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"USD 0.0 per Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.VJWZNREJX2.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0000000000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:55Z\",\"offerTermCode\":\"VJWZNREJX2\",\"termAttributes\":{\"LeaseContractLength\":\"1yr\",\"OfferingClass\":\"convertible\",\"PurchaseOption\":\"All Upfront\"}},\"266X5TTS9UT8E6TU.MZU6U2429S\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.MZU6U2429S.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"USD 0.0 per Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.MZU6U2429S.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"0.0000000000\"}},\"266X5TTS9UT8E6TU.MZU6U2429S.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.MZU6U2429S.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"316359\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:56Z\",\"offerTermCode\":\"MZU6U2429S\",\"termAttributes\":{\"LeaseContractLength\":\"3yr\",\"OfferingClass\":\"convertible\",\"PurchaseOption\":\"All Upfront\"}},\"266X5TTS9UT8E6TU.Z2E3P23VKM\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.Z2E3P23VKM.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.Z2E3P23VKM.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"12.6655500000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:53Z\",\"offerTermCode\":\"Z2E3P23VKM\",\"termAttributes\":{\"LeaseContractLength\":\"3yr\",\"OfferingClass\":\"convertible\",\"PurchaseOption\":\"No Upfront\"}},\"266X5TTS9UT8E6TU.7NE97W5U4E\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.7NE97W5U4E.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.7NE97W5U4E.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"16.4550700000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:53Z\",\"offerTermCode\":\"7NE97W5U4E\",\"termAttributes\":{\"LeaseContractLength\":\"1yr\",\"OfferingClass\":\"convertible\",\"PurchaseOption\":\"No Upfront\"}},\"266X5TTS9UT8E6TU.4NA7Y494T4\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.4NA7Y494T4.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.4NA7Y494T4.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"14.1435200000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:52Z\",\"offerTermCode\":\"4NA7Y494T4\",\"termAttributes\":{\"LeaseContractLength\":\"1yr\",\"OfferingClass\":\"standard\",\"PurchaseOption\":\"No Upfront\"}},\"266X5TTS9UT8E6TU.CUZHX8X6JH\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.CUZHX8X6JH.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.CUZHX8X6JH.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"69869\"}},\"266X5TTS9UT8E6TU.CUZHX8X6JH.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.CUZHX8X6JH.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"7.9759400000\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:55Z\",\"offerTermCode\":\"CUZHX8X6JH\",\"termAttributes\":{\"LeaseContractLength\":\"1yr\",\"OfferingClass\":\"convertible\",\"PurchaseOption\":\"Partial Upfront\"}},\"266X5TTS9UT8E6TU.38NPMPTW36\":{\"priceDimensions\":{\"266X5TTS9UT8E6TU.38NPMPTW36.6YS6EN2CT7\":{\"unit\":\"Hrs\",\"endRange\":\"Inf\",\"description\":\"Windows (Amazon VPC), m6idn.32xlarge reserved instance applied\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.38NPMPTW36.6YS6EN2CT7\",\"beginRange\":\"0\",\"pricePerUnit\":{\"USD\":\"5.5648000000\"}},\"266X5TTS9UT8E6TU.38NPMPTW36.2TG2D8R56U\":{\"unit\":\"Quantity\",\"description\":\"Upfront Fee\",\"appliesTo\":[],\"rateCode\":\"266X5TTS9UT8E6TU.38NPMPTW36.2TG2D8R56U\",\"pricePerUnit\":{\"USD\":\"146243\"}}},\"sku\":\"266X5TTS9UT8E6TU\",\"effectiveDate\":\"2025-07-15T02:05:54Z\",\"offerTermCode\":\"38NPMPTW36\",\"termAttributes\":{\"LeaseContractLength\":\"3yr\",\"OfferingClass\":\"standard\",\"PurchaseOption\":\"Partial Upfront\"}}}},\"version\":\"20250715014947\",\"publicationDate\":\"2025-07-15T01:49:47Z\"}"
]

まとめ

以上、「AWS Price List API が新たに 4 つのクエリフィルターをサポートしました」でした。

部分一致によって、曖昧な検索が可能になりました。レスポンススピードが若干気になりますが、一括でガッと取得したいケースだと良さそうに思えました。

クラウド事業本部コンサルティング部のたかくに(@takakuni_)でした!

Share this article

facebook logohatena logotwitter logo

© Classmethod, Inc. All rights reserved.