1{
2    "smithy": "1.0",
3    "metadata": {
4        "suppressions": [
5            {
6                "id": "HttpMethodSemantics",
7                "namespace": "*"
8            },
9            {
10                "id": "HttpResponseCodeSemantics",
11                "namespace": "*"
12            },
13            {
14                "id": "PaginatedTrait",
15                "namespace": "*"
16            },
17            {
18                "id": "HttpHeaderTrait",
19                "namespace": "*"
20            },
21            {
22                "id": "HttpUriConflict",
23                "namespace": "*"
24            },
25            {
26                "id": "Service",
27                "namespace": "*"
28            }
29        ]
30    },
31    "shapes": {
32        "com.amazonaws.pricing#AWSPriceListService": {
33            "type": "service",
34            "version": "2017-10-15",
35            "operations": [
36                {
37                    "target": "com.amazonaws.pricing#DescribeServices"
38                },
39                {
40                    "target": "com.amazonaws.pricing#GetAttributeValues"
41                },
42                {
43                    "target": "com.amazonaws.pricing#GetProducts"
44                }
45            ],
46            "traits": {
47                "aws.api#service": {
48                    "sdkId": "Pricing",
49                    "arnNamespace": "pricing",
50                    "cloudFormationName": "Pricing",
51                    "cloudTrailEventSource": "pricing.amazonaws.com",
52                    "endpointPrefix": "api.pricing"
53                },
54                "aws.auth#sigv4": {
55                    "name": "pricing"
56                },
57                "aws.protocols#awsJson1_1": {},
58                "smithy.api#documentation": "<p>AWS Price List Service API (AWS Price List Service) is a centralized and convenient way to\n         programmatically query Amazon Web Services for services, products, and pricing information. The AWS Price List Service\n         uses standardized product attributes such as <code>Location</code>, <code>Storage\n            Class</code>, and <code>Operating System</code>, and provides prices at the SKU\n         level. You can use the AWS Price List Service to build cost control and scenario planning tools, reconcile\n         billing data, forecast future spend for budgeting purposes, and provide cost benefit\n         analysis that compare your internal workloads with AWS.</p>\n         <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then \n         <code>GetServices</code> with a service code to retreive the attribute names for \n         that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>\n         to see what values are available for an attribute. With the service code and an attribute name and value, \n         you can use <code>GetProducts</code> to find specific products that you're interested in, such as \n         an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code> \n            <code>volumeType</code>.</p>\n         <p>Service Endpoint</p>\n         <p>AWS Price List Service API provides the following two endpoints:</p>\n         <ul>\n            <li>\n               <p>https://api.pricing.us-east-1.amazonaws.com</p>\n            </li>\n            <li>\n               <p>https://api.pricing.ap-south-1.amazonaws.com</p>\n            </li>\n         </ul>",
59                "smithy.api#title": "AWS Price List Service"
60            }
61        },
62        "com.amazonaws.pricing#AttributeNameList": {
63            "type": "list",
64            "member": {
65                "target": "com.amazonaws.pricing#String"
66            }
67        },
68        "com.amazonaws.pricing#AttributeValue": {
69            "type": "structure",
70            "members": {
71                "Value": {
72                    "target": "com.amazonaws.pricing#String",
73                    "traits": {
74                        "smithy.api#documentation": "<p>The specific value of an <code>attributeName</code>.</p>"
75                    }
76                }
77            },
78            "traits": {
79                "smithy.api#documentation": "<p>The values of a given attribute, such as <code>Throughput Optimized HDD</code> or <code>Provisioned\n          IOPS</code> for the <code>Amazon EC2</code> \n            <code>volumeType</code> attribute.</p>"
80            }
81        },
82        "com.amazonaws.pricing#AttributeValueList": {
83            "type": "list",
84            "member": {
85                "target": "com.amazonaws.pricing#AttributeValue"
86            }
87        },
88        "com.amazonaws.pricing#BoxedInteger": {
89            "type": "integer",
90            "traits": {
91                "smithy.api#range": {
92                    "min": 1,
93                    "max": 100
94                }
95            }
96        },
97        "com.amazonaws.pricing#DescribeServices": {
98            "type": "operation",
99            "input": {
100                "target": "com.amazonaws.pricing#DescribeServicesRequest"
101            },
102            "output": {
103                "target": "com.amazonaws.pricing#DescribeServicesResponse"
104            },
105            "errors": [
106                {
107                    "target": "com.amazonaws.pricing#ExpiredNextTokenException"
108                },
109                {
110                    "target": "com.amazonaws.pricing#InternalErrorException"
111                },
112                {
113                    "target": "com.amazonaws.pricing#InvalidNextTokenException"
114                },
115                {
116                    "target": "com.amazonaws.pricing#InvalidParameterException"
117                },
118                {
119                    "target": "com.amazonaws.pricing#NotFoundException"
120                }
121            ],
122            "traits": {
123                "smithy.api#documentation": "<p>Returns the metadata for one service or a list of the metadata for all services. Use\n         this without a service code to get the service codes for all services.\n         Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to \n         that service, such as the attribute \n         names available for that service. For example, some of the attribute names available for EC2 are \n         <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,\n         <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>",
124                "smithy.api#paginated": {
125                    "inputToken": "NextToken",
126                    "outputToken": "NextToken",
127                    "pageSize": "MaxResults"
128                }
129            }
130        },
131        "com.amazonaws.pricing#DescribeServicesRequest": {
132            "type": "structure",
133            "members": {
134                "ServiceCode": {
135                    "target": "com.amazonaws.pricing#String",
136                    "traits": {
137                        "smithy.api#documentation": "<p>The code for the service whose information you want to retrieve, such as <code>AmazonEC2</code>.\n          You can use \n         the <code>ServiceCode</code> to filter the results in a <code>GetProducts</code> call.\n      To retrieve a list of all services, leave this blank.</p>"
138                    }
139                },
140                "FormatVersion": {
141                    "target": "com.amazonaws.pricing#String",
142                    "traits": {
143                        "smithy.api#documentation": "<p>The format version that you want the response to be in.</p>\n         <p>Valid values are: <code>aws_v1</code>\n         </p>"
144                    }
145                },
146                "NextToken": {
147                    "target": "com.amazonaws.pricing#String",
148                    "traits": {
149                        "smithy.api#documentation": "<p>The pagination token that indicates the next set of results that you want to retrieve.</p>"
150                    }
151                },
152                "MaxResults": {
153                    "target": "com.amazonaws.pricing#BoxedInteger",
154                    "traits": {
155                        "smithy.api#box": {},
156                        "smithy.api#documentation": "<p>The maximum number of results that you want returned in the response.</p>"
157                    }
158                }
159            }
160        },
161        "com.amazonaws.pricing#DescribeServicesResponse": {
162            "type": "structure",
163            "members": {
164                "Services": {
165                    "target": "com.amazonaws.pricing#ServiceList",
166                    "traits": {
167                        "smithy.api#documentation": "<p>The service metadata for the service or services in the response.</p>"
168                    }
169                },
170                "FormatVersion": {
171                    "target": "com.amazonaws.pricing#String",
172                    "traits": {
173                        "smithy.api#documentation": "<p>The format version of the response. For example, <code>aws_v1</code>.</p>"
174                    }
175                },
176                "NextToken": {
177                    "target": "com.amazonaws.pricing#String",
178                    "traits": {
179                        "smithy.api#documentation": "<p>The pagination token for the next set of retreivable results.</p>"
180                    }
181                }
182            }
183        },
184        "com.amazonaws.pricing#ExpiredNextTokenException": {
185            "type": "structure",
186            "members": {
187                "Message": {
188                    "target": "com.amazonaws.pricing#errorMessage"
189                }
190            },
191            "traits": {
192                "smithy.api#documentation": "<p>The pagination token expired. Try again without a pagination token.</p>",
193                "smithy.api#error": "client",
194                "smithy.api#httpError": 400
195            }
196        },
197        "com.amazonaws.pricing#Filter": {
198            "type": "structure",
199            "members": {
200                "Type": {
201                    "target": "com.amazonaws.pricing#FilterType",
202                    "traits": {
203                        "smithy.api#documentation": "<p>The type of filter that you want to use.</p>\n         <p>Valid values are: <code>TERM_MATCH</code>. <code>TERM_MATCH</code> returns only \n         products that match both the given filter field and the given value.</p>",
204                        "smithy.api#required": {}
205                    }
206                },
207                "Field": {
208                    "target": "com.amazonaws.pricing#String",
209                    "traits": {
210                        "smithy.api#documentation": "<p>The product metadata field that you want to filter on. You can filter by just the \n         service code to see all products for a specific service, filter \n         by just the attribute name to see a specific attribute for multiple services, or use both a service code\n         and an attribute name to retrieve only products that match both fields.</p>\n         <p>Valid values include: <code>ServiceCode</code>, and all attribute names</p>\n         \n         <p>For example, you can filter by the <code>AmazonEC2</code> service code and the \n         <code>volumeType</code> attribute name to get the prices for only Amazon EC2 volumes.</p>",
211                        "smithy.api#required": {}
212                    }
213                },
214                "Value": {
215                    "target": "com.amazonaws.pricing#String",
216                    "traits": {
217                        "smithy.api#documentation": "<p>The service code or attribute value that you want to filter by. If you are filtering by \n         service code this is the actual service code, such as <code>AmazonEC2</code>. If you are \n         filtering by attribute name, this is the attribute value that you want the returned products\n         to match, such as a <code>Provisioned IOPS</code> volume.</p>",
218                        "smithy.api#required": {}
219                    }
220                }
221            },
222            "traits": {
223                "smithy.api#documentation": "<p>The constraints that you want all returned products to match.</p>"
224            }
225        },
226        "com.amazonaws.pricing#FilterType": {
227            "type": "string",
228            "traits": {
229                "smithy.api#enum": [
230                    {
231                        "value": "TERM_MATCH",
232                        "name": "TERM_MATCH"
233                    }
234                ]
235            }
236        },
237        "com.amazonaws.pricing#Filters": {
238            "type": "list",
239            "member": {
240                "target": "com.amazonaws.pricing#Filter"
241            }
242        },
243        "com.amazonaws.pricing#GetAttributeValues": {
244            "type": "operation",
245            "input": {
246                "target": "com.amazonaws.pricing#GetAttributeValuesRequest"
247            },
248            "output": {
249                "target": "com.amazonaws.pricing#GetAttributeValuesResponse"
250            },
251            "errors": [
252                {
253                    "target": "com.amazonaws.pricing#ExpiredNextTokenException"
254                },
255                {
256                    "target": "com.amazonaws.pricing#InternalErrorException"
257                },
258                {
259                    "target": "com.amazonaws.pricing#InvalidNextTokenException"
260                },
261                {
262                    "target": "com.amazonaws.pricing#InvalidParameterException"
263                },
264                {
265                    "target": "com.amazonaws.pricing#NotFoundException"
266                }
267            ],
268            "traits": {
269                "smithy.api#documentation": "<p>Returns a list of attribute values. Attibutes are similar to the details \n          in a Price List API offer file. For a list of available attributes, see \n         <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs\">Offer File Definitions</a>\n         in the <a href=\"https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html\">AWS Billing and Cost Management User Guide</a>.</p>",
270                "smithy.api#paginated": {
271                    "inputToken": "NextToken",
272                    "outputToken": "NextToken",
273                    "pageSize": "MaxResults"
274                }
275            }
276        },
277        "com.amazonaws.pricing#GetAttributeValuesRequest": {
278            "type": "structure",
279            "members": {
280                "ServiceCode": {
281                    "target": "com.amazonaws.pricing#String",
282                    "traits": {
283                        "smithy.api#documentation": "<p>The service code for the service whose attributes you want to retrieve. For example, if you want \n          the retrieve an EC2 attribute, use <code>AmazonEC2</code>.</p>",
284                        "smithy.api#required": {}
285                    }
286                },
287                "AttributeName": {
288                    "target": "com.amazonaws.pricing#String",
289                    "traits": {
290                        "smithy.api#documentation": "<p>The name of the attribute that you want to retrieve the values for, such as <code>volumeType</code>.</p>",
291                        "smithy.api#required": {}
292                    }
293                },
294                "NextToken": {
295                    "target": "com.amazonaws.pricing#String",
296                    "traits": {
297                        "smithy.api#documentation": "<p>The pagination token that indicates the next set of results that you want to retrieve.</p>"
298                    }
299                },
300                "MaxResults": {
301                    "target": "com.amazonaws.pricing#BoxedInteger",
302                    "traits": {
303                        "smithy.api#box": {},
304                        "smithy.api#documentation": "<p>The maximum number of results to return in response.</p>"
305                    }
306                }
307            }
308        },
309        "com.amazonaws.pricing#GetAttributeValuesResponse": {
310            "type": "structure",
311            "members": {
312                "AttributeValues": {
313                    "target": "com.amazonaws.pricing#AttributeValueList",
314                    "traits": {
315                        "smithy.api#documentation": "<p>The list of values for an attribute. For example, <code>Throughput Optimized HDD</code> and \n      <code>Provisioned IOPS</code> are two available values for the <code>AmazonEC2</code> \n            <code>volumeType</code>.</p>"
316                    }
317                },
318                "NextToken": {
319                    "target": "com.amazonaws.pricing#String",
320                    "traits": {
321                        "smithy.api#documentation": "<p>The pagination token that indicates the next set of results to retrieve.</p>"
322                    }
323                }
324            }
325        },
326        "com.amazonaws.pricing#GetProducts": {
327            "type": "operation",
328            "input": {
329                "target": "com.amazonaws.pricing#GetProductsRequest"
330            },
331            "output": {
332                "target": "com.amazonaws.pricing#GetProductsResponse"
333            },
334            "errors": [
335                {
336                    "target": "com.amazonaws.pricing#ExpiredNextTokenException"
337                },
338                {
339                    "target": "com.amazonaws.pricing#InternalErrorException"
340                },
341                {
342                    "target": "com.amazonaws.pricing#InvalidNextTokenException"
343                },
344                {
345                    "target": "com.amazonaws.pricing#InvalidParameterException"
346                },
347                {
348                    "target": "com.amazonaws.pricing#NotFoundException"
349                }
350            ],
351            "traits": {
352                "smithy.api#documentation": "<p>Returns a list of all products that match the filter criteria.</p>",
353                "smithy.api#paginated": {
354                    "inputToken": "NextToken",
355                    "outputToken": "NextToken",
356                    "pageSize": "MaxResults"
357                }
358            }
359        },
360        "com.amazonaws.pricing#GetProductsRequest": {
361            "type": "structure",
362            "members": {
363                "ServiceCode": {
364                    "target": "com.amazonaws.pricing#String",
365                    "traits": {
366                        "smithy.api#documentation": "<p>The code for the service whose products you want to retrieve. </p>"
367                    }
368                },
369                "Filters": {
370                    "target": "com.amazonaws.pricing#Filters",
371                    "traits": {
372                        "smithy.api#documentation": "<p>The list of filters that limit the returned products. only products that match all filters\n         are returned.</p>"
373                    }
374                },
375                "FormatVersion": {
376                    "target": "com.amazonaws.pricing#String",
377                    "traits": {
378                        "smithy.api#documentation": "<p>The format version that you want the response to be in.</p>\n         <p>Valid values are: <code>aws_v1</code>\n         </p>"
379                    }
380                },
381                "NextToken": {
382                    "target": "com.amazonaws.pricing#String",
383                    "traits": {
384                        "smithy.api#documentation": "<p>The pagination token that indicates the next set of results that you want to retrieve.</p>"
385                    }
386                },
387                "MaxResults": {
388                    "target": "com.amazonaws.pricing#BoxedInteger",
389                    "traits": {
390                        "smithy.api#box": {},
391                        "smithy.api#documentation": "<p>The maximum number of results to return in the response.</p>"
392                    }
393                }
394            }
395        },
396        "com.amazonaws.pricing#GetProductsResponse": {
397            "type": "structure",
398            "members": {
399                "FormatVersion": {
400                    "target": "com.amazonaws.pricing#String",
401                    "traits": {
402                        "smithy.api#documentation": "<p>The format version of the response. For example, aws_v1.</p>"
403                    }
404                },
405                "PriceList": {
406                    "target": "com.amazonaws.pricing#PriceList",
407                    "traits": {
408                        "smithy.api#documentation": "<p>The list of products that match your filters. The list contains both the product metadata and \n         the price information.</p>"
409                    }
410                },
411                "NextToken": {
412                    "target": "com.amazonaws.pricing#String",
413                    "traits": {
414                        "smithy.api#documentation": "<p>The pagination token that indicates the next set of results to retrieve.</p>"
415                    }
416                }
417            }
418        },
419        "com.amazonaws.pricing#InternalErrorException": {
420            "type": "structure",
421            "members": {
422                "Message": {
423                    "target": "com.amazonaws.pricing#errorMessage"
424                }
425            },
426            "traits": {
427                "smithy.api#documentation": "<p>An error on the server occurred during the processing of your request. Try again later.</p>",
428                "smithy.api#error": "server",
429                "smithy.api#httpError": 500
430            }
431        },
432        "com.amazonaws.pricing#InvalidNextTokenException": {
433            "type": "structure",
434            "members": {
435                "Message": {
436                    "target": "com.amazonaws.pricing#errorMessage"
437                }
438            },
439            "traits": {
440                "smithy.api#documentation": "<p>The pagination token is invalid. Try again without a pagination token.</p>",
441                "smithy.api#error": "client",
442                "smithy.api#httpError": 400
443            }
444        },
445        "com.amazonaws.pricing#InvalidParameterException": {
446            "type": "structure",
447            "members": {
448                "Message": {
449                    "target": "com.amazonaws.pricing#errorMessage"
450                }
451            },
452            "traits": {
453                "smithy.api#documentation": "<p>One or more parameters had an invalid value.</p>",
454                "smithy.api#error": "client",
455                "smithy.api#httpError": 400
456            }
457        },
458        "com.amazonaws.pricing#NotFoundException": {
459            "type": "structure",
460            "members": {
461                "Message": {
462                    "target": "com.amazonaws.pricing#errorMessage"
463                }
464            },
465            "traits": {
466                "smithy.api#documentation": "<p>The requested resource can't be found.</p>",
467                "smithy.api#error": "client",
468                "smithy.api#httpError": 400
469            }
470        },
471        "com.amazonaws.pricing#PriceList": {
472            "type": "list",
473            "member": {
474                "target": "com.amazonaws.pricing#SynthesizedJsonPriceListItemJSON"
475            }
476        },
477        "com.amazonaws.pricing#Service": {
478            "type": "structure",
479            "members": {
480                "ServiceCode": {
481                    "target": "com.amazonaws.pricing#String",
482                    "traits": {
483                        "smithy.api#documentation": "<p>The code for the AWS service.</p>"
484                    }
485                },
486                "AttributeNames": {
487                    "target": "com.amazonaws.pricing#AttributeNameList",
488                    "traits": {
489                        "smithy.api#documentation": "<p>The attributes that are available for this service.</p>"
490                    }
491                }
492            },
493            "traits": {
494                "smithy.api#documentation": "<p>The metadata for a service, such as the service code and available attribute names.</p>"
495            }
496        },
497        "com.amazonaws.pricing#ServiceList": {
498            "type": "list",
499            "member": {
500                "target": "com.amazonaws.pricing#Service"
501            }
502        },
503        "com.amazonaws.pricing#String": {
504            "type": "string"
505        },
506        "com.amazonaws.pricing#SynthesizedJsonPriceListItemJSON": {
507            "type": "string",
508            "traits": {
509                "smithy.api#mediaType": "application/json"
510            }
511        },
512        "com.amazonaws.pricing#errorMessage": {
513            "type": "string"
514        }
515    }
516}
517