Skip to content

Commit a901a0b

Browse files
author
AWS
committed
AWS Price List Service Update: Update GetProducts and DescribeServices API request input validations.
1 parent fb2aa58 commit a901a0b

File tree

2 files changed

+30
-7
lines changed

2 files changed

+30
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Price List Service",
4+
"contributor": "",
5+
"description": "Update GetProducts and DescribeServices API request input validations."
6+
}

services/pricing/src/main/resources/codegen-resources/service-2.json

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"documentation":"<p>The code for the service whose information you want to retrieve, such as <code>AmazonEC2</code>. You can use the <code>ServiceCode</code> to filter the results in a <code>GetProducts</code> call. To retrieve a list of all services, leave this blank.</p>"
155155
},
156156
"FormatVersion":{
157-
"shape":"String",
157+
"shape":"FormatVersion",
158158
"documentation":"<p>The format version that you want the response to be in.</p> <p>Valid values are: <code>aws_v1</code> </p>"
159159
},
160160
"NextToken":{
@@ -175,7 +175,7 @@
175175
"documentation":"<p>The service metadata for the service or services in the response.</p>"
176176
},
177177
"FormatVersion":{
178-
"shape":"String",
178+
"shape":"FormatVersion",
179179
"documentation":"<p>The format version of the response. For example, <code>aws_v1</code>.</p>"
180180
},
181181
"NextToken":{
@@ -193,6 +193,11 @@
193193
"documentation":"<p>The pagination token expired. Try again without a pagination token.</p>",
194194
"exception":true
195195
},
196+
"Field":{
197+
"type":"string",
198+
"max":1024,
199+
"min":1
200+
},
196201
"FileFormat":{
197202
"type":"string",
198203
"max":255,
@@ -215,11 +220,11 @@
215220
"documentation":"<p>The type of filter that you want to use.</p> <p>Valid values are: <code>TERM_MATCH</code>. <code>TERM_MATCH</code> returns only products that match both the given filter field and the given value.</p>"
216221
},
217222
"Field":{
218-
"shape":"String",
223+
"shape":"Field",
219224
"documentation":"<p>The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields.</p> <p>Valid values include: <code>ServiceCode</code>, and all attribute names</p> <p>For example, you can filter by the <code>AmazonEC2</code> service code and the <code>volumeType</code> attribute name to get the prices for only Amazon EC2 volumes.</p>"
220225
},
221226
"Value":{
222-
"shape":"String",
227+
"shape":"Value",
223228
"documentation":"<p>The service code or attribute value that you want to filter by. If you're filtering by service code this is the actual service code, such as <code>AmazonEC2</code>. If you're filtering by attribute name, this is the attribute value that you want the returned products to match, such as a <code>Provisioned IOPS</code> volume.</p>"
224229
}
225230
},
@@ -231,7 +236,14 @@
231236
},
232237
"Filters":{
233238
"type":"list",
234-
"member":{"shape":"Filter"}
239+
"member":{"shape":"Filter"},
240+
"max":50,
241+
"min":0
242+
},
243+
"FormatVersion":{
244+
"type":"string",
245+
"max":32,
246+
"min":1
235247
},
236248
"GetAttributeValuesRequest":{
237249
"type":"structure",
@@ -310,7 +322,7 @@
310322
"documentation":"<p>The list of filters that limit the returned products. only products that match all filters are returned.</p>"
311323
},
312324
"FormatVersion":{
313-
"shape":"String",
325+
"shape":"FormatVersion",
314326
"documentation":"<p>The format version that you want the response to be in.</p> <p>Valid values are: <code>aws_v1</code> </p>"
315327
},
316328
"NextToken":{
@@ -327,7 +339,7 @@
327339
"type":"structure",
328340
"members":{
329341
"FormatVersion":{
330-
"shape":"String",
342+
"shape":"FormatVersion",
331343
"documentation":"<p>The format version of the response. For example, aws_v1.</p>"
332344
},
333345
"PriceList":{
@@ -514,6 +526,11 @@
514526
"exception":true,
515527
"retryable":{"throttling":true}
516528
},
529+
"Value":{
530+
"type":"string",
531+
"max":1024,
532+
"min":1
533+
},
517534
"errorMessage":{"type":"string"}
518535
},
519536
"documentation":"<p>The Amazon Web Services Price List API is a centralized and convenient way to programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List uses standardized product attributes such as <code>Location</code>, <code>Storage Class</code>, and <code>Operating System</code>, and provides prices at the SKU level. You can use the Amazon Web Services Price List to do the following:</p> <ul> <li> <p>Build cost control and scenario planning tools</p> </li> <li> <p>Reconcile billing data</p> </li> <li> <p>Forecast future spend for budgeting purposes</p> </li> <li> <p>Provide cost benefit analysis that compare your internal workloads with Amazon Web Services</p> </li> </ul> <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all Amazon Web Services services, then <code>GetServices</code> with a service code to retrieve the attribute names for that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code> to see what values are available for an attribute. With the service code and an attribute name and value, you can use <code>GetProducts</code> to find specific products that you're interested in, such as an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code> <code>volumeType</code>.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html\">Using the Amazon Web Services Price List API</a> in the <i>Billing User Guide</i>.</p>"

0 commit comments

Comments
 (0)