1{
2  "version":"2.0",
3  "metadata":{
4    "apiVersion":"2018-11-01",
5    "endpointPrefix":"ingest.timestream",
6    "jsonVersion":"1.0",
7    "protocol":"json",
8    "serviceAbbreviation":"Timestream Write",
9    "serviceFullName":"Amazon Timestream Write",
10    "serviceId":"Timestream Write",
11    "signatureVersion":"v4",
12    "signingName":"timestream",
13    "targetPrefix":"Timestream_20181101",
14    "uid":"timestream-write-2018-11-01"
15  },
16  "operations":{
17    "CreateDatabase":{
18      "name":"CreateDatabase",
19      "http":{
20        "method":"POST",
21        "requestUri":"/"
22      },
23      "input":{"shape":"CreateDatabaseRequest"},
24      "output":{"shape":"CreateDatabaseResponse"},
25      "errors":[
26        {"shape":"ConflictException"},
27        {"shape":"ValidationException"},
28        {"shape":"AccessDeniedException"},
29        {"shape":"ServiceQuotaExceededException"},
30        {"shape":"ThrottlingException"},
31        {"shape":"InvalidEndpointException"},
32        {"shape":"InternalServerException"}
33      ],
34      "endpointdiscovery":{"required":true}
35    },
36    "CreateTable":{
37      "name":"CreateTable",
38      "http":{
39        "method":"POST",
40        "requestUri":"/"
41      },
42      "input":{"shape":"CreateTableRequest"},
43      "output":{"shape":"CreateTableResponse"},
44      "errors":[
45        {"shape":"ConflictException"},
46        {"shape":"ValidationException"},
47        {"shape":"AccessDeniedException"},
48        {"shape":"ResourceNotFoundException"},
49        {"shape":"ServiceQuotaExceededException"},
50        {"shape":"ThrottlingException"},
51        {"shape":"InternalServerException"},
52        {"shape":"InvalidEndpointException"}
53      ],
54      "endpointdiscovery":{"required":true}
55    },
56    "DeleteDatabase":{
57      "name":"DeleteDatabase",
58      "http":{
59        "method":"POST",
60        "requestUri":"/"
61      },
62      "input":{"shape":"DeleteDatabaseRequest"},
63      "errors":[
64        {"shape":"InternalServerException"},
65        {"shape":"ThrottlingException"},
66        {"shape":"ResourceNotFoundException"},
67        {"shape":"ValidationException"},
68        {"shape":"AccessDeniedException"},
69        {"shape":"InvalidEndpointException"}
70      ],
71      "endpointdiscovery":{"required":true}
72    },
73    "DeleteTable":{
74      "name":"DeleteTable",
75      "http":{
76        "method":"POST",
77        "requestUri":"/"
78      },
79      "input":{"shape":"DeleteTableRequest"},
80      "errors":[
81        {"shape":"InternalServerException"},
82        {"shape":"ThrottlingException"},
83        {"shape":"ValidationException"},
84        {"shape":"ResourceNotFoundException"},
85        {"shape":"AccessDeniedException"},
86        {"shape":"InvalidEndpointException"}
87      ],
88      "endpointdiscovery":{"required":true}
89    },
90    "DescribeDatabase":{
91      "name":"DescribeDatabase",
92      "http":{
93        "method":"POST",
94        "requestUri":"/"
95      },
96      "input":{"shape":"DescribeDatabaseRequest"},
97      "output":{"shape":"DescribeDatabaseResponse"},
98      "errors":[
99        {"shape":"ResourceNotFoundException"},
100        {"shape":"ValidationException"},
101        {"shape":"AccessDeniedException"},
102        {"shape":"ThrottlingException"},
103        {"shape":"InternalServerException"},
104        {"shape":"InvalidEndpointException"}
105      ],
106      "endpointdiscovery":{"required":true}
107    },
108    "DescribeEndpoints":{
109      "name":"DescribeEndpoints",
110      "http":{
111        "method":"POST",
112        "requestUri":"/"
113      },
114      "input":{"shape":"DescribeEndpointsRequest"},
115      "output":{"shape":"DescribeEndpointsResponse"},
116      "errors":[
117        {"shape":"InternalServerException"},
118        {"shape":"ValidationException"},
119        {"shape":"ThrottlingException"}
120      ],
121      "endpointoperation":true
122    },
123    "DescribeTable":{
124      "name":"DescribeTable",
125      "http":{
126        "method":"POST",
127        "requestUri":"/"
128      },
129      "input":{"shape":"DescribeTableRequest"},
130      "output":{"shape":"DescribeTableResponse"},
131      "errors":[
132        {"shape":"ResourceNotFoundException"},
133        {"shape":"ValidationException"},
134        {"shape":"AccessDeniedException"},
135        {"shape":"ThrottlingException"},
136        {"shape":"InternalServerException"},
137        {"shape":"InvalidEndpointException"}
138      ],
139      "endpointdiscovery":{"required":true}
140    },
141    "ListDatabases":{
142      "name":"ListDatabases",
143      "http":{
144        "method":"POST",
145        "requestUri":"/"
146      },
147      "input":{"shape":"ListDatabasesRequest"},
148      "output":{"shape":"ListDatabasesResponse"},
149      "errors":[
150        {"shape":"InternalServerException"},
151        {"shape":"ThrottlingException"},
152        {"shape":"ValidationException"},
153        {"shape":"AccessDeniedException"},
154        {"shape":"InvalidEndpointException"}
155      ],
156      "endpointdiscovery":{"required":true}
157    },
158    "ListTables":{
159      "name":"ListTables",
160      "http":{
161        "method":"POST",
162        "requestUri":"/"
163      },
164      "input":{"shape":"ListTablesRequest"},
165      "output":{"shape":"ListTablesResponse"},
166      "errors":[
167        {"shape":"InternalServerException"},
168        {"shape":"ThrottlingException"},
169        {"shape":"ValidationException"},
170        {"shape":"ResourceNotFoundException"},
171        {"shape":"AccessDeniedException"},
172        {"shape":"InvalidEndpointException"}
173      ],
174      "endpointdiscovery":{"required":true}
175    },
176    "ListTagsForResource":{
177      "name":"ListTagsForResource",
178      "http":{
179        "method":"POST",
180        "requestUri":"/"
181      },
182      "input":{"shape":"ListTagsForResourceRequest"},
183      "output":{"shape":"ListTagsForResourceResponse"},
184      "errors":[
185        {"shape":"ResourceNotFoundException"},
186        {"shape":"ThrottlingException"},
187        {"shape":"ValidationException"},
188        {"shape":"InvalidEndpointException"}
189      ],
190      "endpointdiscovery":{"required":true}
191    },
192    "TagResource":{
193      "name":"TagResource",
194      "http":{
195        "method":"POST",
196        "requestUri":"/"
197      },
198      "input":{"shape":"TagResourceRequest"},
199      "output":{"shape":"TagResourceResponse"},
200      "errors":[
201        {"shape":"ResourceNotFoundException"},
202        {"shape":"ServiceQuotaExceededException"},
203        {"shape":"ThrottlingException"},
204        {"shape":"ValidationException"},
205        {"shape":"InvalidEndpointException"}
206      ],
207      "endpointdiscovery":{"required":true}
208    },
209    "UntagResource":{
210      "name":"UntagResource",
211      "http":{
212        "method":"POST",
213        "requestUri":"/"
214      },
215      "input":{"shape":"UntagResourceRequest"},
216      "output":{"shape":"UntagResourceResponse"},
217      "errors":[
218        {"shape":"ValidationException"},
219        {"shape":"ServiceQuotaExceededException"},
220        {"shape":"ThrottlingException"},
221        {"shape":"ResourceNotFoundException"},
222        {"shape":"InvalidEndpointException"}
223      ],
224      "endpointdiscovery":{"required":true}
225    },
226    "UpdateDatabase":{
227      "name":"UpdateDatabase",
228      "http":{
229        "method":"POST",
230        "requestUri":"/"
231      },
232      "input":{"shape":"UpdateDatabaseRequest"},
233      "output":{"shape":"UpdateDatabaseResponse"},
234      "errors":[
235        {"shape":"ValidationException"},
236        {"shape":"AccessDeniedException"},
237        {"shape":"ResourceNotFoundException"},
238        {"shape":"ServiceQuotaExceededException"},
239        {"shape":"ThrottlingException"},
240        {"shape":"InternalServerException"},
241        {"shape":"InvalidEndpointException"}
242      ],
243      "endpointdiscovery":{"required":true}
244    },
245    "UpdateTable":{
246      "name":"UpdateTable",
247      "http":{
248        "method":"POST",
249        "requestUri":"/"
250      },
251      "input":{"shape":"UpdateTableRequest"},
252      "output":{"shape":"UpdateTableResponse"},
253      "errors":[
254        {"shape":"InternalServerException"},
255        {"shape":"ThrottlingException"},
256        {"shape":"ValidationException"},
257        {"shape":"ResourceNotFoundException"},
258        {"shape":"AccessDeniedException"},
259        {"shape":"InvalidEndpointException"}
260      ],
261      "endpointdiscovery":{"required":true}
262    },
263    "WriteRecords":{
264      "name":"WriteRecords",
265      "http":{
266        "method":"POST",
267        "requestUri":"/"
268      },
269      "input":{"shape":"WriteRecordsRequest"},
270      "errors":[
271        {"shape":"InternalServerException"},
272        {"shape":"ThrottlingException"},
273        {"shape":"ValidationException"},
274        {"shape":"ResourceNotFoundException"},
275        {"shape":"AccessDeniedException"},
276        {"shape":"RejectedRecordsException"},
277        {"shape":"InvalidEndpointException"}
278      ],
279      "endpointdiscovery":{"required":true}
280    }
281  },
282  "shapes":{
283    "AccessDeniedException":{
284      "type":"structure",
285      "required":["Message"],
286      "members":{
287        "Message":{"shape":"ErrorMessage"}
288      },
289      "exception":true
290    },
291    "AmazonResourceName":{
292      "type":"string",
293      "max":1011,
294      "min":1
295    },
296    "ConflictException":{
297      "type":"structure",
298      "required":["Message"],
299      "members":{
300        "Message":{"shape":"ErrorMessage"}
301      },
302      "exception":true
303    },
304    "CreateDatabaseRequest":{
305      "type":"structure",
306      "required":["DatabaseName"],
307      "members":{
308        "DatabaseName":{"shape":"ResourceName"},
309        "KmsKeyId":{"shape":"StringValue2048"},
310        "Tags":{"shape":"TagList"}
311      }
312    },
313    "CreateDatabaseResponse":{
314      "type":"structure",
315      "members":{
316        "Database":{"shape":"Database"}
317      }
318    },
319    "CreateTableRequest":{
320      "type":"structure",
321      "required":[
322        "DatabaseName",
323        "TableName"
324      ],
325      "members":{
326        "DatabaseName":{"shape":"ResourceName"},
327        "TableName":{"shape":"ResourceName"},
328        "RetentionProperties":{"shape":"RetentionProperties"},
329        "Tags":{"shape":"TagList"}
330      }
331    },
332    "CreateTableResponse":{
333      "type":"structure",
334      "members":{
335        "Table":{"shape":"Table"}
336      }
337    },
338    "Database":{
339      "type":"structure",
340      "members":{
341        "Arn":{"shape":"String"},
342        "DatabaseName":{"shape":"ResourceName"},
343        "TableCount":{"shape":"Long"},
344        "KmsKeyId":{"shape":"StringValue2048"},
345        "CreationTime":{"shape":"Date"},
346        "LastUpdatedTime":{"shape":"Date"}
347      }
348    },
349    "DatabaseList":{
350      "type":"list",
351      "member":{"shape":"Database"}
352    },
353    "Date":{"type":"timestamp"},
354    "DeleteDatabaseRequest":{
355      "type":"structure",
356      "required":["DatabaseName"],
357      "members":{
358        "DatabaseName":{"shape":"ResourceName"}
359      }
360    },
361    "DeleteTableRequest":{
362      "type":"structure",
363      "required":[
364        "DatabaseName",
365        "TableName"
366      ],
367      "members":{
368        "DatabaseName":{"shape":"ResourceName"},
369        "TableName":{"shape":"ResourceName"}
370      }
371    },
372    "DescribeDatabaseRequest":{
373      "type":"structure",
374      "required":["DatabaseName"],
375      "members":{
376        "DatabaseName":{"shape":"ResourceName"}
377      }
378    },
379    "DescribeDatabaseResponse":{
380      "type":"structure",
381      "members":{
382        "Database":{"shape":"Database"}
383      }
384    },
385    "DescribeEndpointsRequest":{
386      "type":"structure",
387      "members":{
388      }
389    },
390    "DescribeEndpointsResponse":{
391      "type":"structure",
392      "required":["Endpoints"],
393      "members":{
394        "Endpoints":{"shape":"Endpoints"}
395      }
396    },
397    "DescribeTableRequest":{
398      "type":"structure",
399      "required":[
400        "DatabaseName",
401        "TableName"
402      ],
403      "members":{
404        "DatabaseName":{"shape":"ResourceName"},
405        "TableName":{"shape":"ResourceName"}
406      }
407    },
408    "DescribeTableResponse":{
409      "type":"structure",
410      "members":{
411        "Table":{"shape":"Table"}
412      }
413    },
414    "Dimension":{
415      "type":"structure",
416      "required":[
417        "Name",
418        "Value"
419      ],
420      "members":{
421        "Name":{"shape":"StringValue256"},
422        "Value":{"shape":"StringValue2048"},
423        "DimensionValueType":{"shape":"DimensionValueType"}
424      }
425    },
426    "DimensionValueType":{
427      "type":"string",
428      "enum":["VARCHAR"]
429    },
430    "Dimensions":{
431      "type":"list",
432      "member":{"shape":"Dimension"},
433      "max":128
434    },
435    "Endpoint":{
436      "type":"structure",
437      "required":[
438        "Address",
439        "CachePeriodInMinutes"
440      ],
441      "members":{
442        "Address":{"shape":"String"},
443        "CachePeriodInMinutes":{"shape":"Long"}
444      }
445    },
446    "Endpoints":{
447      "type":"list",
448      "member":{"shape":"Endpoint"}
449    },
450    "ErrorMessage":{"type":"string"},
451    "InternalServerException":{
452      "type":"structure",
453      "required":["Message"],
454      "members":{
455        "Message":{"shape":"ErrorMessage"}
456      },
457      "exception":true,
458      "fault":true
459    },
460    "InvalidEndpointException":{
461      "type":"structure",
462      "members":{
463        "Message":{"shape":"ErrorMessage"}
464      },
465      "exception":true
466    },
467    "ListDatabasesRequest":{
468      "type":"structure",
469      "members":{
470        "NextToken":{"shape":"String"},
471        "MaxResults":{"shape":"PaginationLimit"}
472      }
473    },
474    "ListDatabasesResponse":{
475      "type":"structure",
476      "members":{
477        "Databases":{"shape":"DatabaseList"},
478        "NextToken":{"shape":"String"}
479      }
480    },
481    "ListTablesRequest":{
482      "type":"structure",
483      "members":{
484        "DatabaseName":{"shape":"ResourceName"},
485        "NextToken":{"shape":"String"},
486        "MaxResults":{"shape":"PaginationLimit"}
487      }
488    },
489    "ListTablesResponse":{
490      "type":"structure",
491      "members":{
492        "Tables":{"shape":"TableList"},
493        "NextToken":{"shape":"String"}
494      }
495    },
496    "ListTagsForResourceRequest":{
497      "type":"structure",
498      "required":["ResourceARN"],
499      "members":{
500        "ResourceARN":{"shape":"AmazonResourceName"}
501      }
502    },
503    "ListTagsForResourceResponse":{
504      "type":"structure",
505      "members":{
506        "Tags":{"shape":"TagList"}
507      }
508    },
509    "Long":{"type":"long"},
510    "MagneticStoreRetentionPeriodInDays":{
511      "type":"long",
512      "max":73000,
513      "min":1
514    },
515    "MeasureValueType":{
516      "type":"string",
517      "enum":[
518        "DOUBLE",
519        "BIGINT",
520        "VARCHAR",
521        "BOOLEAN"
522      ]
523    },
524    "MemoryStoreRetentionPeriodInHours":{
525      "type":"long",
526      "max":8766,
527      "min":1
528    },
529    "PaginationLimit":{
530      "type":"integer",
531      "box":true,
532      "max":20,
533      "min":1
534    },
535    "Record":{
536      "type":"structure",
537      "members":{
538        "Dimensions":{"shape":"Dimensions"},
539        "MeasureName":{"shape":"StringValue256"},
540        "MeasureValue":{"shape":"StringValue2048"},
541        "MeasureValueType":{"shape":"MeasureValueType"},
542        "Time":{"shape":"StringValue256"},
543        "TimeUnit":{"shape":"TimeUnit"},
544        "Version":{
545          "shape":"RecordVersion",
546          "box":true
547        }
548      }
549    },
550    "RecordIndex":{"type":"integer"},
551    "RecordVersion":{"type":"long"},
552    "Records":{
553      "type":"list",
554      "member":{"shape":"Record"},
555      "max":100,
556      "min":1
557    },
558    "RejectedRecord":{
559      "type":"structure",
560      "members":{
561        "RecordIndex":{"shape":"RecordIndex"},
562        "Reason":{"shape":"ErrorMessage"},
563        "ExistingVersion":{
564          "shape":"RecordVersion",
565          "box":true
566        }
567      }
568    },
569    "RejectedRecords":{
570      "type":"list",
571      "member":{"shape":"RejectedRecord"}
572    },
573    "RejectedRecordsException":{
574      "type":"structure",
575      "members":{
576        "Message":{"shape":"ErrorMessage"},
577        "RejectedRecords":{"shape":"RejectedRecords"}
578      },
579      "exception":true
580    },
581    "ResourceName":{
582      "type":"string",
583      "max":64,
584      "min":3,
585      "pattern":"[a-zA-Z0-9_.-]+"
586    },
587    "ResourceNotFoundException":{
588      "type":"structure",
589      "members":{
590        "Message":{"shape":"ErrorMessage"}
591      },
592      "exception":true
593    },
594    "RetentionProperties":{
595      "type":"structure",
596      "required":[
597        "MemoryStoreRetentionPeriodInHours",
598        "MagneticStoreRetentionPeriodInDays"
599      ],
600      "members":{
601        "MemoryStoreRetentionPeriodInHours":{"shape":"MemoryStoreRetentionPeriodInHours"},
602        "MagneticStoreRetentionPeriodInDays":{"shape":"MagneticStoreRetentionPeriodInDays"}
603      }
604    },
605    "ServiceQuotaExceededException":{
606      "type":"structure",
607      "members":{
608        "Message":{"shape":"ErrorMessage"}
609      },
610      "exception":true
611    },
612    "String":{"type":"string"},
613    "StringValue2048":{
614      "type":"string",
615      "max":2048,
616      "min":1
617    },
618    "StringValue256":{
619      "type":"string",
620      "max":256,
621      "min":1
622    },
623    "Table":{
624      "type":"structure",
625      "members":{
626        "Arn":{"shape":"String"},
627        "TableName":{"shape":"ResourceName"},
628        "DatabaseName":{"shape":"ResourceName"},
629        "TableStatus":{"shape":"TableStatus"},
630        "RetentionProperties":{"shape":"RetentionProperties"},
631        "CreationTime":{"shape":"Date"},
632        "LastUpdatedTime":{"shape":"Date"}
633      }
634    },
635    "TableList":{
636      "type":"list",
637      "member":{"shape":"Table"}
638    },
639    "TableStatus":{
640      "type":"string",
641      "enum":[
642        "ACTIVE",
643        "DELETING"
644      ]
645    },
646    "Tag":{
647      "type":"structure",
648      "required":[
649        "Key",
650        "Value"
651      ],
652      "members":{
653        "Key":{"shape":"TagKey"},
654        "Value":{"shape":"TagValue"}
655      }
656    },
657    "TagKey":{
658      "type":"string",
659      "max":128,
660      "min":1
661    },
662    "TagKeyList":{
663      "type":"list",
664      "member":{"shape":"TagKey"},
665      "max":200,
666      "min":0
667    },
668    "TagList":{
669      "type":"list",
670      "member":{"shape":"Tag"},
671      "max":200,
672      "min":0
673    },
674    "TagResourceRequest":{
675      "type":"structure",
676      "required":[
677        "ResourceARN",
678        "Tags"
679      ],
680      "members":{
681        "ResourceARN":{"shape":"AmazonResourceName"},
682        "Tags":{"shape":"TagList"}
683      }
684    },
685    "TagResourceResponse":{
686      "type":"structure",
687      "members":{
688      }
689    },
690    "TagValue":{
691      "type":"string",
692      "max":256,
693      "min":0
694    },
695    "ThrottlingException":{
696      "type":"structure",
697      "required":["Message"],
698      "members":{
699        "Message":{"shape":"ErrorMessage"}
700      },
701      "exception":true
702    },
703    "TimeUnit":{
704      "type":"string",
705      "enum":[
706        "MILLISECONDS",
707        "SECONDS",
708        "MICROSECONDS",
709        "NANOSECONDS"
710      ]
711    },
712    "UntagResourceRequest":{
713      "type":"structure",
714      "required":[
715        "ResourceARN",
716        "TagKeys"
717      ],
718      "members":{
719        "ResourceARN":{"shape":"AmazonResourceName"},
720        "TagKeys":{"shape":"TagKeyList"}
721      }
722    },
723    "UntagResourceResponse":{
724      "type":"structure",
725      "members":{
726      }
727    },
728    "UpdateDatabaseRequest":{
729      "type":"structure",
730      "required":[
731        "DatabaseName",
732        "KmsKeyId"
733      ],
734      "members":{
735        "DatabaseName":{"shape":"ResourceName"},
736        "KmsKeyId":{"shape":"StringValue2048"}
737      }
738    },
739    "UpdateDatabaseResponse":{
740      "type":"structure",
741      "members":{
742        "Database":{"shape":"Database"}
743      }
744    },
745    "UpdateTableRequest":{
746      "type":"structure",
747      "required":[
748        "DatabaseName",
749        "TableName",
750        "RetentionProperties"
751      ],
752      "members":{
753        "DatabaseName":{"shape":"ResourceName"},
754        "TableName":{"shape":"ResourceName"},
755        "RetentionProperties":{"shape":"RetentionProperties"}
756      }
757    },
758    "UpdateTableResponse":{
759      "type":"structure",
760      "members":{
761        "Table":{"shape":"Table"}
762      }
763    },
764    "ValidationException":{
765      "type":"structure",
766      "required":["Message"],
767      "members":{
768        "Message":{"shape":"ErrorMessage"}
769      },
770      "exception":true
771    },
772    "WriteRecordsRequest":{
773      "type":"structure",
774      "required":[
775        "DatabaseName",
776        "TableName",
777        "Records"
778      ],
779      "members":{
780        "DatabaseName":{"shape":"ResourceName"},
781        "TableName":{"shape":"ResourceName"},
782        "CommonAttributes":{"shape":"Record"},
783        "Records":{"shape":"Records"}
784      }
785    }
786  }
787}
788