Debian Codegraph @

models/apis/meteringmarketplace/2016-01-14/api-2.json

raw
1 {
2 "version":"2.0",
3 "metadata":{
4 "apiVersion":"2016-01-14",
5 "endpointPrefix":"metering.marketplace",
6 "jsonVersion":"1.1",
7 "protocol":"json",
8 "serviceFullName":"AWSMarketplace Metering",
9 "serviceId":"Marketplace Metering",
10 "signatureVersion":"v4",
11 "signingName":"aws-marketplace",
12 "targetPrefix":"AWSMPMeteringService",
13 "uid":"meteringmarketplace-2016-01-14"
14 },
15 "operations":{
16 "BatchMeterUsage":{
17 "name":"BatchMeterUsage",
18 "http":{
19 "method":"POST",
20 "requestUri":"/"
21 },
22 "input":{"shape":"BatchMeterUsageRequest"},
23 "output":{"shape":"BatchMeterUsageResult"},
24 "errors":[
25 {"shape":"InternalServiceErrorException"},
26 {"shape":"InvalidProductCodeException"},
27 {"shape":"InvalidUsageDimensionException"},
28 {"shape":"InvalidTagException"},
29 {"shape":"InvalidUsageAllocationsException"},
30 {"shape":"InvalidCustomerIdentifierException"},
31 {"shape":"TimestampOutOfBoundsException"},
32 {"shape":"ThrottlingException"},
33 {"shape":"DisabledApiException"}
34 ]
35 },
36 "MeterUsage":{
37 "name":"MeterUsage",
38 "http":{
39 "method":"POST",
40 "requestUri":"/"
41 },
42 "input":{"shape":"MeterUsageRequest"},
43 "output":{"shape":"MeterUsageResult"},
44 "errors":[
45 {"shape":"InternalServiceErrorException"},
46 {"shape":"InvalidProductCodeException"},
47 {"shape":"InvalidUsageDimensionException"},
48 {"shape":"InvalidTagException"},
49 {"shape":"InvalidUsageAllocationsException"},
50 {"shape":"InvalidEndpointRegionException"},
51 {"shape":"TimestampOutOfBoundsException"},
52 {"shape":"DuplicateRequestException"},
53 {"shape":"ThrottlingException"},
54 {"shape":"CustomerNotEntitledException"}
55 ]
56 },
57 "RegisterUsage":{
58 "name":"RegisterUsage",
59 "http":{
60 "method":"POST",
61 "requestUri":"/"
62 },
63 "input":{"shape":"RegisterUsageRequest"},
64 "output":{"shape":"RegisterUsageResult"},
65 "errors":[
66 {"shape":"InvalidProductCodeException"},
67 {"shape":"InvalidRegionException"},
68 {"shape":"InvalidPublicKeyVersionException"},
69 {"shape":"PlatformNotSupportedException"},
70 {"shape":"CustomerNotEntitledException"},
71 {"shape":"ThrottlingException"},
72 {"shape":"InternalServiceErrorException"},
73 {"shape":"DisabledApiException"}
74 ]
75 },
76 "ResolveCustomer":{
77 "name":"ResolveCustomer",
78 "http":{
79 "method":"POST",
80 "requestUri":"/"
81 },
82 "input":{"shape":"ResolveCustomerRequest"},
83 "output":{"shape":"ResolveCustomerResult"},
84 "errors":[
85 {"shape":"InvalidTokenException"},
86 {"shape":"ExpiredTokenException"},
87 {"shape":"ThrottlingException"},
88 {"shape":"InternalServiceErrorException"},
89 {"shape":"DisabledApiException"}
90 ]
91 }
92 },
93 "shapes":{
94 "AllocatedUsageQuantity":{
95 "type":"integer",
96 "max":2147483647,
97 "min":0
98 },
99 "BatchMeterUsageRequest":{
100 "type":"structure",
101 "required":[
102 "UsageRecords",
103 "ProductCode"
104 ],
105 "members":{
106 "UsageRecords":{"shape":"UsageRecordList"},
107 "ProductCode":{"shape":"ProductCode"}
108 }
109 },
110 "BatchMeterUsageResult":{
111 "type":"structure",
112 "members":{
113 "Results":{"shape":"UsageRecordResultList"},
114 "UnprocessedRecords":{"shape":"UsageRecordList"}
115 }
116 },
117 "Boolean":{"type":"boolean"},
118 "CustomerAWSAccountId":{
119 "type":"string",
120 "max":255,
121 "min":1,
122 "pattern":"^[0-9]+$"
123 },
124 "CustomerIdentifier":{
125 "type":"string",
126 "max":255,
127 "min":1,
128 "pattern":"[\\s\\S]+"
129 },
130 "CustomerNotEntitledException":{
131 "type":"structure",
132 "members":{
133 "message":{"shape":"errorMessage"}
134 },
135 "exception":true
136 },
137 "DisabledApiException":{
138 "type":"structure",
139 "members":{
140 "message":{"shape":"errorMessage"}
141 },
142 "exception":true
143 },
144 "DuplicateRequestException":{
145 "type":"structure",
146 "members":{
147 "message":{"shape":"errorMessage"}
148 },
149 "exception":true
150 },
151 "ExpiredTokenException":{
152 "type":"structure",
153 "members":{
154 "message":{"shape":"errorMessage"}
155 },
156 "exception":true
157 },
158 "InternalServiceErrorException":{
159 "type":"structure",
160 "members":{
161 "message":{"shape":"errorMessage"}
162 },
163 "exception":true,
164 "fault":true
165 },
166 "InvalidCustomerIdentifierException":{
167 "type":"structure",
168 "members":{
169 "message":{"shape":"errorMessage"}
170 },
171 "exception":true
172 },
173 "InvalidEndpointRegionException":{
174 "type":"structure",
175 "members":{
176 "message":{"shape":"errorMessage"}
177 },
178 "exception":true
179 },
180 "InvalidProductCodeException":{
181 "type":"structure",
182 "members":{
183 "message":{"shape":"errorMessage"}
184 },
185 "exception":true
186 },
187 "InvalidPublicKeyVersionException":{
188 "type":"structure",
189 "members":{
190 "message":{"shape":"errorMessage"}
191 },
192 "exception":true
193 },
194 "InvalidRegionException":{
195 "type":"structure",
196 "members":{
197 "message":{"shape":"errorMessage"}
198 },
199 "exception":true
200 },
201 "InvalidTagException":{
202 "type":"structure",
203 "members":{
204 "message":{"shape":"errorMessage"}
205 },
206 "exception":true
207 },
208 "InvalidTokenException":{
209 "type":"structure",
210 "members":{
211 "message":{"shape":"errorMessage"}
212 },
213 "exception":true
214 },
215 "InvalidUsageAllocationsException":{
216 "type":"structure",
217 "members":{
218 "message":{"shape":"errorMessage"}
219 },
220 "exception":true
221 },
222 "InvalidUsageDimensionException":{
223 "type":"structure",
224 "members":{
225 "message":{"shape":"errorMessage"}
226 },
227 "exception":true
228 },
229 "MeterUsageRequest":{
230 "type":"structure",
231 "required":[
232 "ProductCode",
233 "Timestamp",
234 "UsageDimension"
235 ],
236 "members":{
237 "ProductCode":{"shape":"ProductCode"},
238 "Timestamp":{"shape":"Timestamp"},
239 "UsageDimension":{"shape":"UsageDimension"},
240 "UsageQuantity":{"shape":"UsageQuantity"},
241 "DryRun":{"shape":"Boolean"},
242 "UsageAllocations":{"shape":"UsageAllocations"}
243 }
244 },
245 "MeterUsageResult":{
246 "type":"structure",
247 "members":{
248 "MeteringRecordId":{"shape":"String"}
249 }
250 },
251 "NonEmptyString":{
252 "type":"string",
253 "pattern":"[\\s\\S]+"
254 },
255 "Nonce":{
256 "type":"string",
257 "max":255,
258 "pattern":"[\\s\\S]*"
259 },
260 "PlatformNotSupportedException":{
261 "type":"structure",
262 "members":{
263 "message":{"shape":"errorMessage"}
264 },
265 "exception":true
266 },
267 "ProductCode":{
268 "type":"string",
269 "max":255,
270 "min":1,
271 "pattern":"^[-a-zA-Z0-9/=:_.@]*$"
272 },
273 "RegisterUsageRequest":{
274 "type":"structure",
275 "required":[
276 "ProductCode",
277 "PublicKeyVersion"
278 ],
279 "members":{
280 "ProductCode":{"shape":"ProductCode"},
281 "PublicKeyVersion":{"shape":"VersionInteger"},
282 "Nonce":{"shape":"Nonce"}
283 }
284 },
285 "RegisterUsageResult":{
286 "type":"structure",
287 "members":{
288 "PublicKeyRotationTimestamp":{"shape":"Timestamp"},
289 "Signature":{"shape":"NonEmptyString"}
290 }
291 },
292 "ResolveCustomerRequest":{
293 "type":"structure",
294 "required":["RegistrationToken"],
295 "members":{
296 "RegistrationToken":{"shape":"NonEmptyString"}
297 }
298 },
299 "ResolveCustomerResult":{
300 "type":"structure",
301 "members":{
302 "CustomerIdentifier":{"shape":"CustomerIdentifier"},
303 "ProductCode":{"shape":"ProductCode"},
304 "CustomerAWSAccountId":{"shape":"CustomerAWSAccountId"}
305 }
306 },
307 "String":{"type":"string"},
308 "Tag":{
309 "type":"structure",
310 "required":[
311 "Key",
312 "Value"
313 ],
314 "members":{
315 "Key":{"shape":"TagKey"},
316 "Value":{"shape":"TagValue"}
317 }
318 },
319 "TagKey":{
320 "type":"string",
321 "max":100,
322 "min":1,
323 "pattern":"^[a-zA-Z0-9+ -=._:\\/@]+$"
324 },
325 "TagList":{
326 "type":"list",
327 "member":{"shape":"Tag"},
328 "max":5,
329 "min":1
330 },
331 "TagValue":{
332 "type":"string",
333 "max":256,
334 "min":1,
335 "pattern":"^[a-zA-Z0-9+ -=._:\\/@]+$"
336 },
337 "ThrottlingException":{
338 "type":"structure",
339 "members":{
340 "message":{"shape":"errorMessage"}
341 },
342 "exception":true
343 },
344 "Timestamp":{"type":"timestamp"},
345 "TimestampOutOfBoundsException":{
346 "type":"structure",
347 "members":{
348 "message":{"shape":"errorMessage"}
349 },
350 "exception":true
351 },
352 "UsageAllocation":{
353 "type":"structure",
354 "required":["AllocatedUsageQuantity"],
355 "members":{
356 "AllocatedUsageQuantity":{"shape":"AllocatedUsageQuantity"},
357 "Tags":{"shape":"TagList"}
358 }
359 },
360 "UsageAllocations":{
361 "type":"list",
362 "member":{"shape":"UsageAllocation"},
363 "max":2500,
364 "min":1
365 },
366 "UsageDimension":{
367 "type":"string",
368 "max":255,
369 "min":1,
370 "pattern":"[\\s\\S]+"
371 },
372 "UsageQuantity":{
373 "type":"integer",
374 "max":2147483647,
375 "min":0
376 },
377 "UsageRecord":{
378 "type":"structure",
379 "required":[
380 "Timestamp",
381 "CustomerIdentifier",
382 "Dimension"
383 ],
384 "members":{
385 "Timestamp":{"shape":"Timestamp"},
386 "CustomerIdentifier":{"shape":"CustomerIdentifier"},
387 "Dimension":{"shape":"UsageDimension"},
388 "Quantity":{"shape":"UsageQuantity"},
389 "UsageAllocations":{"shape":"UsageAllocations"}
390 }
391 },
392 "UsageRecordList":{
393 "type":"list",
394 "member":{"shape":"UsageRecord"},
395 "max":25,
396 "min":0
397 },
398 "UsageRecordResult":{
399 "type":"structure",
400 "members":{
401 "UsageRecord":{"shape":"UsageRecord"},
402 "MeteringRecordId":{"shape":"String"},
403 "Status":{"shape":"UsageRecordResultStatus"}
404 }
405 },
406 "UsageRecordResultList":{
407 "type":"list",
408 "member":{"shape":"UsageRecordResult"}
409 },
410 "UsageRecordResultStatus":{
411 "type":"string",
412 "enum":[
413 "Success",
414 "CustomerNotSubscribed",
415 "DuplicateRecord"
416 ]
417 },
418 "VersionInteger":{
419 "type":"integer",
420 "min":1
421 },
422 "errorMessage":{"type":"string"}
423 }
424 }