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.costandusagereportservice#AWSOrigamiServiceGatewayService": {
33            "type": "service",
34            "version": "2017-01-06",
35            "operations": [
36                {
37                    "target": "com.amazonaws.costandusagereportservice#DeleteReportDefinition"
38                },
39                {
40                    "target": "com.amazonaws.costandusagereportservice#DescribeReportDefinitions"
41                },
42                {
43                    "target": "com.amazonaws.costandusagereportservice#ModifyReportDefinition"
44                },
45                {
46                    "target": "com.amazonaws.costandusagereportservice#PutReportDefinition"
47                }
48            ],
49            "traits": {
50                "aws.api#service": {
51                    "sdkId": "Cost and Usage Report Service",
52                    "arnNamespace": "cur",
53                    "cloudFormationName": "CostandUsageReportService",
54                    "cloudTrailEventSource": "costandusagereportservice.amazonaws.com",
55                    "endpointPrefix": "cur"
56                },
57                "aws.auth#sigv4": {
58                    "name": "cur"
59                },
60                "aws.protocols#awsJson1_1": {},
61                "smithy.api#documentation": "<p>The AWS Cost and Usage Report API enables you to programmatically create, query, and delete \n        AWS Cost and Usage report definitions.</p>\n         <p>AWS Cost and Usage reports track the monthly AWS costs and usage \n   associated with your AWS account.\n    \n        The report contains line items for each unique combination of AWS product,\n        usage type, and operation that your AWS account uses. \n        \n        You can configure the AWS Cost and Usage report to show only the data that you want, using the\n        AWS Cost and Usage API.</p>\n\n         <p>Service Endpoint</p>\n         <p>The AWS Cost and Usage Report API provides the following endpoint:</p>\n         <ul>\n            <li>\n               <p>cur.us-east-1.amazonaws.com</p>\n            </li>\n         </ul>",
62                "smithy.api#title": "AWS Cost and Usage Report Service"
63            }
64        },
65        "com.amazonaws.costandusagereportservice#AWSRegion": {
66            "type": "string",
67            "traits": {
68                "smithy.api#documentation": "<p>The region of the S3 bucket that AWS delivers the report into.</p>",
69                "smithy.api#enum": [
70                    {
71                        "value": "af-south-1",
72                        "name": "CAPE_TOWN"
73                    },
74                    {
75                        "value": "ap-east-1",
76                        "name": "HONG_KONG"
77                    },
78                    {
79                        "value": "ap-south-1",
80                        "name": "MUMBAI"
81                    },
82                    {
83                        "value": "ap-southeast-1",
84                        "name": "SINGAPORE"
85                    },
86                    {
87                        "value": "ap-southeast-2",
88                        "name": "SYDNEY"
89                    },
90                    {
91                        "value": "ap-northeast-1",
92                        "name": "TOKYO"
93                    },
94                    {
95                        "value": "ap-northeast-2",
96                        "name": "SEOUL"
97                    },
98                    {
99                        "value": "ap-northeast-3",
100                        "name": "OSAKA"
101                    },
102                    {
103                        "value": "ca-central-1",
104                        "name": "CANADA_CENTRAL"
105                    },
106                    {
107                        "value": "eu-central-1",
108                        "name": "FRANKFURT"
109                    },
110                    {
111                        "value": "eu-west-1",
112                        "name": "IRELAND"
113                    },
114                    {
115                        "value": "eu-west-2",
116                        "name": "LONDON"
117                    },
118                    {
119                        "value": "eu-west-3",
120                        "name": "PARIS"
121                    },
122                    {
123                        "value": "eu-north-1",
124                        "name": "STOCKHOLM"
125                    },
126                    {
127                        "value": "eu-south-1",
128                        "name": "MILANO"
129                    },
130                    {
131                        "value": "me-south-1",
132                        "name": "BAHRAIN"
133                    },
134                    {
135                        "value": "sa-east-1",
136                        "name": "SAO_PAULO"
137                    },
138                    {
139                        "value": "us-east-1",
140                        "name": "US_STANDARD"
141                    },
142                    {
143                        "value": "us-east-2",
144                        "name": "OHIO"
145                    },
146                    {
147                        "value": "us-west-1",
148                        "name": "NORTHERN_CALIFORNIA"
149                    },
150                    {
151                        "value": "us-west-2",
152                        "name": "OREGON"
153                    },
154                    {
155                        "value": "cn-north-1",
156                        "name": "BEIJING"
157                    },
158                    {
159                        "value": "cn-northwest-1",
160                        "name": "NINGXIA"
161                    }
162                ]
163            }
164        },
165        "com.amazonaws.costandusagereportservice#AdditionalArtifact": {
166            "type": "string",
167            "traits": {
168                "smithy.api#documentation": "<p>The types of manifest that you want AWS to create for this report.</p>",
169                "smithy.api#enum": [
170                    {
171                        "value": "REDSHIFT",
172                        "name": "REDSHIFT"
173                    },
174                    {
175                        "value": "QUICKSIGHT",
176                        "name": "QUICKSIGHT"
177                    },
178                    {
179                        "value": "ATHENA",
180                        "name": "ATHENA"
181                    }
182                ]
183            }
184        },
185        "com.amazonaws.costandusagereportservice#AdditionalArtifactList": {
186            "type": "list",
187            "member": {
188                "target": "com.amazonaws.costandusagereportservice#AdditionalArtifact"
189            },
190            "traits": {
191                "smithy.api#documentation": "<p>A list of additional artifacts.</p>"
192            }
193        },
194        "com.amazonaws.costandusagereportservice#BillingViewArn": {
195            "type": "string",
196            "traits": {
197                "smithy.api#length": {
198                    "min": 0,
199                    "max": 128
200                },
201                "smithy.api#pattern": "(arn:aws(-cn)?:billing::[0-9]{12}:billingview/)?[a-zA-Z0-9_\\+=\\.\\-@].{1,30}"
202            }
203        },
204        "com.amazonaws.costandusagereportservice#CompressionFormat": {
205            "type": "string",
206            "traits": {
207                "smithy.api#documentation": "<p>The compression format that AWS uses for the report.</p>",
208                "smithy.api#enum": [
209                    {
210                        "value": "ZIP",
211                        "name": "ZIP"
212                    },
213                    {
214                        "value": "GZIP",
215                        "name": "GZIP"
216                    },
217                    {
218                        "value": "Parquet",
219                        "name": "Parquet"
220                    }
221                ]
222            }
223        },
224        "com.amazonaws.costandusagereportservice#DeleteReportDefinition": {
225            "type": "operation",
226            "input": {
227                "target": "com.amazonaws.costandusagereportservice#DeleteReportDefinitionRequest"
228            },
229            "output": {
230                "target": "com.amazonaws.costandusagereportservice#DeleteReportDefinitionResponse"
231            },
232            "errors": [
233                {
234                    "target": "com.amazonaws.costandusagereportservice#InternalErrorException"
235                },
236                {
237                    "target": "com.amazonaws.costandusagereportservice#ValidationException"
238                }
239            ],
240            "traits": {
241                "smithy.api#documentation": "<p>Deletes the specified report.</p>"
242            }
243        },
244        "com.amazonaws.costandusagereportservice#DeleteReportDefinitionRequest": {
245            "type": "structure",
246            "members": {
247                "ReportName": {
248                    "target": "com.amazonaws.costandusagereportservice#ReportName",
249                    "traits": {
250                        "smithy.api#documentation": "<p>The name of the report that you want to delete. The name must be unique, is case sensitive, and can't include spaces.</p>"
251                    }
252                }
253            },
254            "traits": {
255                "smithy.api#documentation": "<p>Deletes the specified report.</p>"
256            }
257        },
258        "com.amazonaws.costandusagereportservice#DeleteReportDefinitionResponse": {
259            "type": "structure",
260            "members": {
261                "ResponseMessage": {
262                    "target": "com.amazonaws.costandusagereportservice#DeleteResponseMessage"
263                }
264            },
265            "traits": {
266                "smithy.api#documentation": "<p>If the action is successful, the service sends back an HTTP 200 response.</p>"
267            }
268        },
269        "com.amazonaws.costandusagereportservice#DeleteResponseMessage": {
270            "type": "string",
271            "traits": {
272                "smithy.api#documentation": "<p>Whether the deletion was successful or not.</p>"
273            }
274        },
275        "com.amazonaws.costandusagereportservice#DescribeReportDefinitions": {
276            "type": "operation",
277            "input": {
278                "target": "com.amazonaws.costandusagereportservice#DescribeReportDefinitionsRequest"
279            },
280            "output": {
281                "target": "com.amazonaws.costandusagereportservice#DescribeReportDefinitionsResponse"
282            },
283            "errors": [
284                {
285                    "target": "com.amazonaws.costandusagereportservice#InternalErrorException"
286                }
287            ],
288            "traits": {
289                "smithy.api#documentation": "<p>Lists the AWS Cost and Usage reports available to this account.</p>",
290                "smithy.api#paginated": {
291                    "inputToken": "NextToken",
292                    "outputToken": "NextToken",
293                    "pageSize": "MaxResults"
294                }
295            }
296        },
297        "com.amazonaws.costandusagereportservice#DescribeReportDefinitionsRequest": {
298            "type": "structure",
299            "members": {
300                "MaxResults": {
301                    "target": "com.amazonaws.costandusagereportservice#MaxResults"
302                },
303                "NextToken": {
304                    "target": "com.amazonaws.costandusagereportservice#GenericString"
305                }
306            },
307            "traits": {
308                "smithy.api#documentation": "<p>Requests a list of AWS Cost and Usage reports owned by the account.</p>"
309            }
310        },
311        "com.amazonaws.costandusagereportservice#DescribeReportDefinitionsResponse": {
312            "type": "structure",
313            "members": {
314                "ReportDefinitions": {
315                    "target": "com.amazonaws.costandusagereportservice#ReportDefinitionList",
316                    "traits": {
317                        "smithy.api#documentation": "<p>A list of AWS Cost and Usage reports owned by the account.</p>"
318                    }
319                },
320                "NextToken": {
321                    "target": "com.amazonaws.costandusagereportservice#GenericString"
322                }
323            },
324            "traits": {
325                "smithy.api#documentation": "<p>If the action is successful, the service sends back an HTTP 200 response.</p>"
326            }
327        },
328        "com.amazonaws.costandusagereportservice#DuplicateReportNameException": {
329            "type": "structure",
330            "members": {
331                "Message": {
332                    "target": "com.amazonaws.costandusagereportservice#ErrorMessage"
333                }
334            },
335            "traits": {
336                "smithy.api#documentation": "<p>A report with the specified name already exists in the account. Specify a different report name.</p>",
337                "smithy.api#error": "client"
338            }
339        },
340        "com.amazonaws.costandusagereportservice#ErrorMessage": {
341            "type": "string",
342            "traits": {
343                "smithy.api#documentation": "<p>A message to show the detail of the exception.</p>"
344            }
345        },
346        "com.amazonaws.costandusagereportservice#GenericString": {
347            "type": "string",
348            "traits": {
349                "smithy.api#documentation": "<p>A generic string.</p>",
350                "smithy.api#length": {
351                    "min": 0,
352                    "max": 256
353                },
354                "smithy.api#pattern": "[A-Za-z0-9_\\.\\-=]*"
355            }
356        },
357        "com.amazonaws.costandusagereportservice#InternalErrorException": {
358            "type": "structure",
359            "members": {
360                "Message": {
361                    "target": "com.amazonaws.costandusagereportservice#ErrorMessage"
362                }
363            },
364            "traits": {
365                "smithy.api#documentation": "<p>An error on the server occurred during the processing of your request. Try again later.</p>",
366                "smithy.api#error": "server"
367            }
368        },
369        "com.amazonaws.costandusagereportservice#MaxResults": {
370            "type": "integer",
371            "traits": {
372                "smithy.api#box": {},
373                "smithy.api#documentation": "<p>The maximum number of results that AWS returns for the operation.</p>",
374                "smithy.api#range": {
375                    "min": 5,
376                    "max": 5
377                }
378            }
379        },
380        "com.amazonaws.costandusagereportservice#ModifyReportDefinition": {
381            "type": "operation",
382            "input": {
383                "target": "com.amazonaws.costandusagereportservice#ModifyReportDefinitionRequest"
384            },
385            "output": {
386                "target": "com.amazonaws.costandusagereportservice#ModifyReportDefinitionResponse"
387            },
388            "errors": [
389                {
390                    "target": "com.amazonaws.costandusagereportservice#InternalErrorException"
391                },
392                {
393                    "target": "com.amazonaws.costandusagereportservice#ValidationException"
394                }
395            ],
396            "traits": {
397                "smithy.api#documentation": "<p>Allows you to programatically update your report preferences.</p>"
398            }
399        },
400        "com.amazonaws.costandusagereportservice#ModifyReportDefinitionRequest": {
401            "type": "structure",
402            "members": {
403                "ReportName": {
404                    "target": "com.amazonaws.costandusagereportservice#ReportName",
405                    "traits": {
406                        "smithy.api#required": {}
407                    }
408                },
409                "ReportDefinition": {
410                    "target": "com.amazonaws.costandusagereportservice#ReportDefinition",
411                    "traits": {
412                        "smithy.api#required": {}
413                    }
414                }
415            }
416        },
417        "com.amazonaws.costandusagereportservice#ModifyReportDefinitionResponse": {
418            "type": "structure",
419            "members": {}
420        },
421        "com.amazonaws.costandusagereportservice#PutReportDefinition": {
422            "type": "operation",
423            "input": {
424                "target": "com.amazonaws.costandusagereportservice#PutReportDefinitionRequest"
425            },
426            "output": {
427                "target": "com.amazonaws.costandusagereportservice#PutReportDefinitionResponse"
428            },
429            "errors": [
430                {
431                    "target": "com.amazonaws.costandusagereportservice#DuplicateReportNameException"
432                },
433                {
434                    "target": "com.amazonaws.costandusagereportservice#InternalErrorException"
435                },
436                {
437                    "target": "com.amazonaws.costandusagereportservice#ReportLimitReachedException"
438                },
439                {
440                    "target": "com.amazonaws.costandusagereportservice#ValidationException"
441                }
442            ],
443            "traits": {
444                "smithy.api#documentation": "<p>Creates a new report using the description that you provide.</p>"
445            }
446        },
447        "com.amazonaws.costandusagereportservice#PutReportDefinitionRequest": {
448            "type": "structure",
449            "members": {
450                "ReportDefinition": {
451                    "target": "com.amazonaws.costandusagereportservice#ReportDefinition",
452                    "traits": {
453                        "smithy.api#documentation": "<p>Represents the output of the PutReportDefinition operation. The content consists of the detailed \n      metadata and data file information. </p>",
454                        "smithy.api#required": {}
455                    }
456                }
457            },
458            "traits": {
459                "smithy.api#documentation": "<p>Creates a Cost and Usage Report.</p>"
460            }
461        },
462        "com.amazonaws.costandusagereportservice#PutReportDefinitionResponse": {
463            "type": "structure",
464            "members": {},
465            "traits": {
466                "smithy.api#documentation": "<p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p>"
467            }
468        },
469        "com.amazonaws.costandusagereportservice#RefreshClosedReports": {
470            "type": "boolean",
471            "traits": {
472                "smithy.api#box": {}
473            }
474        },
475        "com.amazonaws.costandusagereportservice#ReportDefinition": {
476            "type": "structure",
477            "members": {
478                "ReportName": {
479                    "target": "com.amazonaws.costandusagereportservice#ReportName",
480                    "traits": {
481                        "smithy.api#required": {}
482                    }
483                },
484                "TimeUnit": {
485                    "target": "com.amazonaws.costandusagereportservice#TimeUnit",
486                    "traits": {
487                        "smithy.api#required": {}
488                    }
489                },
490                "Format": {
491                    "target": "com.amazonaws.costandusagereportservice#ReportFormat",
492                    "traits": {
493                        "smithy.api#required": {}
494                    }
495                },
496                "Compression": {
497                    "target": "com.amazonaws.costandusagereportservice#CompressionFormat",
498                    "traits": {
499                        "smithy.api#required": {}
500                    }
501                },
502                "AdditionalSchemaElements": {
503                    "target": "com.amazonaws.costandusagereportservice#SchemaElementList",
504                    "traits": {
505                        "smithy.api#documentation": "<p>A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs. </p>",
506                        "smithy.api#required": {}
507                    }
508                },
509                "S3Bucket": {
510                    "target": "com.amazonaws.costandusagereportservice#S3Bucket",
511                    "traits": {
512                        "smithy.api#required": {}
513                    }
514                },
515                "S3Prefix": {
516                    "target": "com.amazonaws.costandusagereportservice#S3Prefix",
517                    "traits": {
518                        "smithy.api#required": {}
519                    }
520                },
521                "S3Region": {
522                    "target": "com.amazonaws.costandusagereportservice#AWSRegion",
523                    "traits": {
524                        "smithy.api#required": {}
525                    }
526                },
527                "AdditionalArtifacts": {
528                    "target": "com.amazonaws.costandusagereportservice#AdditionalArtifactList",
529                    "traits": {
530                        "smithy.api#documentation": "<p>A list of manifests that you want Amazon Web Services to create for this report.</p>"
531                    }
532                },
533                "RefreshClosedReports": {
534                    "target": "com.amazonaws.costandusagereportservice#RefreshClosedReports",
535                    "traits": {
536                        "smithy.api#documentation": "<p>Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to \n      previous months. These charges can include refunds, credits, or support fees.</p>"
537                    }
538                },
539                "ReportVersioning": {
540                    "target": "com.amazonaws.costandusagereportservice#ReportVersioning",
541                    "traits": {
542                        "smithy.api#documentation": "<p>Whether you want Amazon Web Services to overwrite the previous version of each report or \n         to deliver the report in addition to the previous versions.</p>"
543                    }
544                },
545                "BillingViewArn": {
546                    "target": "com.amazonaws.costandusagereportservice#BillingViewArn",
547                    "traits": {
548                        "smithy.api#documentation": "<p>\n      The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs.\n    </p>"
549                    }
550                }
551            },
552            "traits": {
553                "smithy.api#documentation": "<p>The definition of AWS Cost and Usage Report. You can specify the report name, \n         time unit, report format, compression format, S3 bucket, additional artifacts, and schema \n         elements in the definition.\n    </p>"
554            }
555        },
556        "com.amazonaws.costandusagereportservice#ReportDefinitionList": {
557            "type": "list",
558            "member": {
559                "target": "com.amazonaws.costandusagereportservice#ReportDefinition"
560            },
561            "traits": {
562                "smithy.api#documentation": "<p>A list of report definitions.</p>"
563            }
564        },
565        "com.amazonaws.costandusagereportservice#ReportFormat": {
566            "type": "string",
567            "traits": {
568                "smithy.api#documentation": "<p>The format that AWS saves the report in.</p>",
569                "smithy.api#enum": [
570                    {
571                        "value": "textORcsv",
572                        "name": "CSV"
573                    },
574                    {
575                        "value": "Parquet",
576                        "name": "Parquet"
577                    }
578                ]
579            }
580        },
581        "com.amazonaws.costandusagereportservice#ReportLimitReachedException": {
582            "type": "structure",
583            "members": {
584                "Message": {
585                    "target": "com.amazonaws.costandusagereportservice#ErrorMessage"
586                }
587            },
588            "traits": {
589                "smithy.api#documentation": "<p>This account already has five reports defined. To define a new report, you must delete an existing report.</p>",
590                "smithy.api#error": "client"
591            }
592        },
593        "com.amazonaws.costandusagereportservice#ReportName": {
594            "type": "string",
595            "traits": {
596                "smithy.api#documentation": "<p>The name of the report that you want to create. The name must be unique,\n        is case sensitive, and can't include spaces. </p>",
597                "smithy.api#length": {
598                    "min": 0,
599                    "max": 256
600                },
601                "smithy.api#pattern": "[0-9A-Za-z!\\-_.*\\'()]+"
602            }
603        },
604        "com.amazonaws.costandusagereportservice#ReportVersioning": {
605            "type": "string",
606            "traits": {
607                "smithy.api#enum": [
608                    {
609                        "value": "CREATE_NEW_REPORT",
610                        "name": "CREATE_NEW_REPORT"
611                    },
612                    {
613                        "value": "OVERWRITE_REPORT",
614                        "name": "OVERWRITE_REPORT"
615                    }
616                ]
617            }
618        },
619        "com.amazonaws.costandusagereportservice#S3Bucket": {
620            "type": "string",
621            "traits": {
622                "smithy.api#documentation": "<p>The S3 bucket where AWS delivers the report.</p>",
623                "smithy.api#length": {
624                    "min": 0,
625                    "max": 256
626                },
627                "smithy.api#pattern": "[A-Za-z0-9_\\.\\-]+"
628            }
629        },
630        "com.amazonaws.costandusagereportservice#S3Prefix": {
631            "type": "string",
632            "traits": {
633                "smithy.api#documentation": "<p>The prefix that AWS adds to the report name when AWS delivers the report. Your prefix\n        can't include spaces.</p>",
634                "smithy.api#length": {
635                    "min": 0,
636                    "max": 256
637                },
638                "smithy.api#pattern": "[0-9A-Za-z!\\-_.*\\'()/]*"
639            }
640        },
641        "com.amazonaws.costandusagereportservice#SchemaElement": {
642            "type": "string",
643            "traits": {
644                "smithy.api#documentation": "<p>Whether or not AWS includes resource IDs in the report. </p>",
645                "smithy.api#enum": [
646                    {
647                        "value": "RESOURCES",
648                        "name": "RESOURCES"
649                    }
650                ]
651            }
652        },
653        "com.amazonaws.costandusagereportservice#SchemaElementList": {
654            "type": "list",
655            "member": {
656                "target": "com.amazonaws.costandusagereportservice#SchemaElement"
657            },
658            "traits": {
659                "smithy.api#documentation": "<p>A list of strings that indicate the content that is included in the report, such as service or usage type.</p>"
660            }
661        },
662        "com.amazonaws.costandusagereportservice#TimeUnit": {
663            "type": "string",
664            "traits": {
665                "smithy.api#documentation": "<p>The length of time covered by the report. </p>",
666                "smithy.api#enum": [
667                    {
668                        "value": "HOURLY",
669                        "name": "HOURLY"
670                    },
671                    {
672                        "value": "DAILY",
673                        "name": "DAILY"
674                    },
675                    {
676                        "value": "MONTHLY",
677                        "name": "MONTHLY"
678                    }
679                ]
680            }
681        },
682        "com.amazonaws.costandusagereportservice#ValidationException": {
683            "type": "structure",
684            "members": {
685                "Message": {
686                    "target": "com.amazonaws.costandusagereportservice#ErrorMessage"
687                }
688            },
689            "traits": {
690                "smithy.api#documentation": "<p>The input fails to satisfy the constraints specified by an AWS service.</p>",
691                "smithy.api#error": "client"
692            }
693        }
694    }
695}
696