aws-sdk-timestreamwrite 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-timestreamwrite.rb +53 -0
- data/lib/aws-sdk-timestreamwrite/client.rb +1081 -0
- data/lib/aws-sdk-timestreamwrite/client_api.rb +558 -0
- data/lib/aws-sdk-timestreamwrite/customizations.rb +0 -0
- data/lib/aws-sdk-timestreamwrite/errors.rb +187 -0
- data/lib/aws-sdk-timestreamwrite/resource.rb +26 -0
- data/lib/aws-sdk-timestreamwrite/types.rb +1089 -0
- metadata +88 -0
@@ -0,0 +1,558 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::TimestreamWrite
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
18
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
19
|
+
CreateDatabaseRequest = Shapes::StructureShape.new(name: 'CreateDatabaseRequest')
|
20
|
+
CreateDatabaseResponse = Shapes::StructureShape.new(name: 'CreateDatabaseResponse')
|
21
|
+
CreateTableRequest = Shapes::StructureShape.new(name: 'CreateTableRequest')
|
22
|
+
CreateTableResponse = Shapes::StructureShape.new(name: 'CreateTableResponse')
|
23
|
+
Database = Shapes::StructureShape.new(name: 'Database')
|
24
|
+
DatabaseList = Shapes::ListShape.new(name: 'DatabaseList')
|
25
|
+
Date = Shapes::TimestampShape.new(name: 'Date')
|
26
|
+
DeleteDatabaseRequest = Shapes::StructureShape.new(name: 'DeleteDatabaseRequest')
|
27
|
+
DeleteTableRequest = Shapes::StructureShape.new(name: 'DeleteTableRequest')
|
28
|
+
DescribeDatabaseRequest = Shapes::StructureShape.new(name: 'DescribeDatabaseRequest')
|
29
|
+
DescribeDatabaseResponse = Shapes::StructureShape.new(name: 'DescribeDatabaseResponse')
|
30
|
+
DescribeEndpointsRequest = Shapes::StructureShape.new(name: 'DescribeEndpointsRequest')
|
31
|
+
DescribeEndpointsResponse = Shapes::StructureShape.new(name: 'DescribeEndpointsResponse')
|
32
|
+
DescribeTableRequest = Shapes::StructureShape.new(name: 'DescribeTableRequest')
|
33
|
+
DescribeTableResponse = Shapes::StructureShape.new(name: 'DescribeTableResponse')
|
34
|
+
Dimension = Shapes::StructureShape.new(name: 'Dimension')
|
35
|
+
DimensionValueType = Shapes::StringShape.new(name: 'DimensionValueType')
|
36
|
+
Dimensions = Shapes::ListShape.new(name: 'Dimensions')
|
37
|
+
Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
|
38
|
+
Endpoints = Shapes::ListShape.new(name: 'Endpoints')
|
39
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
40
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
41
|
+
InvalidEndpointException = Shapes::StructureShape.new(name: 'InvalidEndpointException')
|
42
|
+
ListDatabasesRequest = Shapes::StructureShape.new(name: 'ListDatabasesRequest')
|
43
|
+
ListDatabasesResponse = Shapes::StructureShape.new(name: 'ListDatabasesResponse')
|
44
|
+
ListTablesRequest = Shapes::StructureShape.new(name: 'ListTablesRequest')
|
45
|
+
ListTablesResponse = Shapes::StructureShape.new(name: 'ListTablesResponse')
|
46
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
47
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
48
|
+
Long = Shapes::IntegerShape.new(name: 'Long')
|
49
|
+
MagneticStoreRetentionPeriodInDays = Shapes::IntegerShape.new(name: 'MagneticStoreRetentionPeriodInDays')
|
50
|
+
MeasureValueType = Shapes::StringShape.new(name: 'MeasureValueType')
|
51
|
+
MemoryStoreRetentionPeriodInHours = Shapes::IntegerShape.new(name: 'MemoryStoreRetentionPeriodInHours')
|
52
|
+
PaginationLimit = Shapes::IntegerShape.new(name: 'PaginationLimit')
|
53
|
+
Record = Shapes::StructureShape.new(name: 'Record')
|
54
|
+
RecordIndex = Shapes::IntegerShape.new(name: 'RecordIndex')
|
55
|
+
Records = Shapes::ListShape.new(name: 'Records')
|
56
|
+
RejectedRecord = Shapes::StructureShape.new(name: 'RejectedRecord')
|
57
|
+
RejectedRecords = Shapes::ListShape.new(name: 'RejectedRecords')
|
58
|
+
RejectedRecordsException = Shapes::StructureShape.new(name: 'RejectedRecordsException')
|
59
|
+
ResourceName = Shapes::StringShape.new(name: 'ResourceName')
|
60
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
61
|
+
RetentionProperties = Shapes::StructureShape.new(name: 'RetentionProperties')
|
62
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
63
|
+
String = Shapes::StringShape.new(name: 'String')
|
64
|
+
StringValue2048 = Shapes::StringShape.new(name: 'StringValue2048')
|
65
|
+
StringValue256 = Shapes::StringShape.new(name: 'StringValue256')
|
66
|
+
Table = Shapes::StructureShape.new(name: 'Table')
|
67
|
+
TableList = Shapes::ListShape.new(name: 'TableList')
|
68
|
+
TableStatus = Shapes::StringShape.new(name: 'TableStatus')
|
69
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
70
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
71
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
72
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
73
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
74
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
75
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
76
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
77
|
+
TimeUnit = Shapes::StringShape.new(name: 'TimeUnit')
|
78
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
79
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
80
|
+
UpdateDatabaseRequest = Shapes::StructureShape.new(name: 'UpdateDatabaseRequest')
|
81
|
+
UpdateDatabaseResponse = Shapes::StructureShape.new(name: 'UpdateDatabaseResponse')
|
82
|
+
UpdateTableRequest = Shapes::StructureShape.new(name: 'UpdateTableRequest')
|
83
|
+
UpdateTableResponse = Shapes::StructureShape.new(name: 'UpdateTableResponse')
|
84
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
85
|
+
WriteRecordsRequest = Shapes::StructureShape.new(name: 'WriteRecordsRequest')
|
86
|
+
|
87
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "Message"))
|
88
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
89
|
+
|
90
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "Message"))
|
91
|
+
ConflictException.struct_class = Types::ConflictException
|
92
|
+
|
93
|
+
CreateDatabaseRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
94
|
+
CreateDatabaseRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: StringValue2048, location_name: "KmsKeyId"))
|
95
|
+
CreateDatabaseRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
96
|
+
CreateDatabaseRequest.struct_class = Types::CreateDatabaseRequest
|
97
|
+
|
98
|
+
CreateDatabaseResponse.add_member(:database, Shapes::ShapeRef.new(shape: Database, location_name: "Database"))
|
99
|
+
CreateDatabaseResponse.struct_class = Types::CreateDatabaseResponse
|
100
|
+
|
101
|
+
CreateTableRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
102
|
+
CreateTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TableName"))
|
103
|
+
CreateTableRequest.add_member(:retention_properties, Shapes::ShapeRef.new(shape: RetentionProperties, location_name: "RetentionProperties"))
|
104
|
+
CreateTableRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
105
|
+
CreateTableRequest.struct_class = Types::CreateTableRequest
|
106
|
+
|
107
|
+
CreateTableResponse.add_member(:table, Shapes::ShapeRef.new(shape: Table, location_name: "Table"))
|
108
|
+
CreateTableResponse.struct_class = Types::CreateTableResponse
|
109
|
+
|
110
|
+
Database.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
|
111
|
+
Database.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "DatabaseName"))
|
112
|
+
Database.add_member(:table_count, Shapes::ShapeRef.new(shape: Long, location_name: "TableCount"))
|
113
|
+
Database.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: StringValue2048, location_name: "KmsKeyId"))
|
114
|
+
Database.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
|
115
|
+
Database.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdatedTime"))
|
116
|
+
Database.struct_class = Types::Database
|
117
|
+
|
118
|
+
DatabaseList.member = Shapes::ShapeRef.new(shape: Database)
|
119
|
+
|
120
|
+
DeleteDatabaseRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
121
|
+
DeleteDatabaseRequest.struct_class = Types::DeleteDatabaseRequest
|
122
|
+
|
123
|
+
DeleteTableRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
124
|
+
DeleteTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TableName"))
|
125
|
+
DeleteTableRequest.struct_class = Types::DeleteTableRequest
|
126
|
+
|
127
|
+
DescribeDatabaseRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
128
|
+
DescribeDatabaseRequest.struct_class = Types::DescribeDatabaseRequest
|
129
|
+
|
130
|
+
DescribeDatabaseResponse.add_member(:database, Shapes::ShapeRef.new(shape: Database, location_name: "Database"))
|
131
|
+
DescribeDatabaseResponse.struct_class = Types::DescribeDatabaseResponse
|
132
|
+
|
133
|
+
DescribeEndpointsRequest.struct_class = Types::DescribeEndpointsRequest
|
134
|
+
|
135
|
+
DescribeEndpointsResponse.add_member(:endpoints, Shapes::ShapeRef.new(shape: Endpoints, required: true, location_name: "Endpoints"))
|
136
|
+
DescribeEndpointsResponse.struct_class = Types::DescribeEndpointsResponse
|
137
|
+
|
138
|
+
DescribeTableRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
139
|
+
DescribeTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TableName"))
|
140
|
+
DescribeTableRequest.struct_class = Types::DescribeTableRequest
|
141
|
+
|
142
|
+
DescribeTableResponse.add_member(:table, Shapes::ShapeRef.new(shape: Table, location_name: "Table"))
|
143
|
+
DescribeTableResponse.struct_class = Types::DescribeTableResponse
|
144
|
+
|
145
|
+
Dimension.add_member(:name, Shapes::ShapeRef.new(shape: StringValue256, required: true, location_name: "Name"))
|
146
|
+
Dimension.add_member(:value, Shapes::ShapeRef.new(shape: StringValue2048, required: true, location_name: "Value"))
|
147
|
+
Dimension.add_member(:dimension_value_type, Shapes::ShapeRef.new(shape: DimensionValueType, location_name: "DimensionValueType"))
|
148
|
+
Dimension.struct_class = Types::Dimension
|
149
|
+
|
150
|
+
Dimensions.member = Shapes::ShapeRef.new(shape: Dimension)
|
151
|
+
|
152
|
+
Endpoint.add_member(:address, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Address"))
|
153
|
+
Endpoint.add_member(:cache_period_in_minutes, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "CachePeriodInMinutes"))
|
154
|
+
Endpoint.struct_class = Types::Endpoint
|
155
|
+
|
156
|
+
Endpoints.member = Shapes::ShapeRef.new(shape: Endpoint)
|
157
|
+
|
158
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "Message"))
|
159
|
+
InternalServerException.struct_class = Types::InternalServerException
|
160
|
+
|
161
|
+
InvalidEndpointException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
162
|
+
InvalidEndpointException.struct_class = Types::InvalidEndpointException
|
163
|
+
|
164
|
+
ListDatabasesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
165
|
+
ListDatabasesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PaginationLimit, location_name: "MaxResults"))
|
166
|
+
ListDatabasesRequest.struct_class = Types::ListDatabasesRequest
|
167
|
+
|
168
|
+
ListDatabasesResponse.add_member(:databases, Shapes::ShapeRef.new(shape: DatabaseList, location_name: "Databases"))
|
169
|
+
ListDatabasesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
170
|
+
ListDatabasesResponse.struct_class = Types::ListDatabasesResponse
|
171
|
+
|
172
|
+
ListTablesRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "DatabaseName"))
|
173
|
+
ListTablesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
174
|
+
ListTablesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PaginationLimit, location_name: "MaxResults"))
|
175
|
+
ListTablesRequest.struct_class = Types::ListTablesRequest
|
176
|
+
|
177
|
+
ListTablesResponse.add_member(:tables, Shapes::ShapeRef.new(shape: TableList, location_name: "Tables"))
|
178
|
+
ListTablesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
179
|
+
ListTablesResponse.struct_class = Types::ListTablesResponse
|
180
|
+
|
181
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
182
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
183
|
+
|
184
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
185
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
186
|
+
|
187
|
+
Record.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "Dimensions"))
|
188
|
+
Record.add_member(:measure_name, Shapes::ShapeRef.new(shape: StringValue256, location_name: "MeasureName"))
|
189
|
+
Record.add_member(:measure_value, Shapes::ShapeRef.new(shape: StringValue2048, location_name: "MeasureValue"))
|
190
|
+
Record.add_member(:measure_value_type, Shapes::ShapeRef.new(shape: MeasureValueType, location_name: "MeasureValueType"))
|
191
|
+
Record.add_member(:time, Shapes::ShapeRef.new(shape: StringValue256, location_name: "Time"))
|
192
|
+
Record.add_member(:time_unit, Shapes::ShapeRef.new(shape: TimeUnit, location_name: "TimeUnit"))
|
193
|
+
Record.struct_class = Types::Record
|
194
|
+
|
195
|
+
Records.member = Shapes::ShapeRef.new(shape: Record)
|
196
|
+
|
197
|
+
RejectedRecord.add_member(:record_index, Shapes::ShapeRef.new(shape: RecordIndex, location_name: "RecordIndex"))
|
198
|
+
RejectedRecord.add_member(:reason, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Reason"))
|
199
|
+
RejectedRecord.struct_class = Types::RejectedRecord
|
200
|
+
|
201
|
+
RejectedRecords.member = Shapes::ShapeRef.new(shape: RejectedRecord)
|
202
|
+
|
203
|
+
RejectedRecordsException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
204
|
+
RejectedRecordsException.add_member(:rejected_records, Shapes::ShapeRef.new(shape: RejectedRecords, location_name: "RejectedRecords"))
|
205
|
+
RejectedRecordsException.struct_class = Types::RejectedRecordsException
|
206
|
+
|
207
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
208
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
209
|
+
|
210
|
+
RetentionProperties.add_member(:memory_store_retention_period_in_hours, Shapes::ShapeRef.new(shape: MemoryStoreRetentionPeriodInHours, required: true, location_name: "MemoryStoreRetentionPeriodInHours"))
|
211
|
+
RetentionProperties.add_member(:magnetic_store_retention_period_in_days, Shapes::ShapeRef.new(shape: MagneticStoreRetentionPeriodInDays, required: true, location_name: "MagneticStoreRetentionPeriodInDays"))
|
212
|
+
RetentionProperties.struct_class = Types::RetentionProperties
|
213
|
+
|
214
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
215
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
216
|
+
|
217
|
+
Table.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
|
218
|
+
Table.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "TableName"))
|
219
|
+
Table.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "DatabaseName"))
|
220
|
+
Table.add_member(:table_status, Shapes::ShapeRef.new(shape: TableStatus, location_name: "TableStatus"))
|
221
|
+
Table.add_member(:retention_properties, Shapes::ShapeRef.new(shape: RetentionProperties, location_name: "RetentionProperties"))
|
222
|
+
Table.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
|
223
|
+
Table.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdatedTime"))
|
224
|
+
Table.struct_class = Types::Table
|
225
|
+
|
226
|
+
TableList.member = Shapes::ShapeRef.new(shape: Table)
|
227
|
+
|
228
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
229
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
230
|
+
Tag.struct_class = Types::Tag
|
231
|
+
|
232
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
233
|
+
|
234
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
235
|
+
|
236
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
237
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
238
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
239
|
+
|
240
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
241
|
+
|
242
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "Message"))
|
243
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
244
|
+
|
245
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
246
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
247
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
248
|
+
|
249
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
250
|
+
|
251
|
+
UpdateDatabaseRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
252
|
+
UpdateDatabaseRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: StringValue2048, required: true, location_name: "KmsKeyId"))
|
253
|
+
UpdateDatabaseRequest.struct_class = Types::UpdateDatabaseRequest
|
254
|
+
|
255
|
+
UpdateDatabaseResponse.add_member(:database, Shapes::ShapeRef.new(shape: Database, location_name: "Database"))
|
256
|
+
UpdateDatabaseResponse.struct_class = Types::UpdateDatabaseResponse
|
257
|
+
|
258
|
+
UpdateTableRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
259
|
+
UpdateTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TableName"))
|
260
|
+
UpdateTableRequest.add_member(:retention_properties, Shapes::ShapeRef.new(shape: RetentionProperties, required: true, location_name: "RetentionProperties"))
|
261
|
+
UpdateTableRequest.struct_class = Types::UpdateTableRequest
|
262
|
+
|
263
|
+
UpdateTableResponse.add_member(:table, Shapes::ShapeRef.new(shape: Table, location_name: "Table"))
|
264
|
+
UpdateTableResponse.struct_class = Types::UpdateTableResponse
|
265
|
+
|
266
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "Message"))
|
267
|
+
ValidationException.struct_class = Types::ValidationException
|
268
|
+
|
269
|
+
WriteRecordsRequest.add_member(:database_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "DatabaseName"))
|
270
|
+
WriteRecordsRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "TableName"))
|
271
|
+
WriteRecordsRequest.add_member(:common_attributes, Shapes::ShapeRef.new(shape: Record, location_name: "CommonAttributes"))
|
272
|
+
WriteRecordsRequest.add_member(:records, Shapes::ShapeRef.new(shape: Records, required: true, location_name: "Records"))
|
273
|
+
WriteRecordsRequest.struct_class = Types::WriteRecordsRequest
|
274
|
+
|
275
|
+
|
276
|
+
# @api private
|
277
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
278
|
+
|
279
|
+
api.version = "2018-11-01"
|
280
|
+
|
281
|
+
api.metadata = {
|
282
|
+
"apiVersion" => "2018-11-01",
|
283
|
+
"endpointPrefix" => "ingest.timestream",
|
284
|
+
"jsonVersion" => "1.0",
|
285
|
+
"protocol" => "json",
|
286
|
+
"serviceAbbreviation" => "Timestream Write",
|
287
|
+
"serviceFullName" => "Amazon Timestream Write",
|
288
|
+
"serviceId" => "Timestream Write",
|
289
|
+
"signatureVersion" => "v4",
|
290
|
+
"signingName" => "timestream",
|
291
|
+
"targetPrefix" => "Timestream_20181101",
|
292
|
+
"uid" => "timestream-write-2018-11-01",
|
293
|
+
}
|
294
|
+
api.endpoint_operation = :describe_endpoints
|
295
|
+
api.require_endpoint_discovery = true
|
296
|
+
|
297
|
+
api.add_operation(:create_database, Seahorse::Model::Operation.new.tap do |o|
|
298
|
+
o.name = "CreateDatabase"
|
299
|
+
o.http_method = "POST"
|
300
|
+
o.http_request_uri = "/"
|
301
|
+
o.endpoint_discovery = {
|
302
|
+
"required" => true,
|
303
|
+
}
|
304
|
+
o.input = Shapes::ShapeRef.new(shape: CreateDatabaseRequest)
|
305
|
+
o.output = Shapes::ShapeRef.new(shape: CreateDatabaseResponse)
|
306
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
308
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
309
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
310
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
313
|
+
end)
|
314
|
+
|
315
|
+
api.add_operation(:create_table, Seahorse::Model::Operation.new.tap do |o|
|
316
|
+
o.name = "CreateTable"
|
317
|
+
o.http_method = "POST"
|
318
|
+
o.http_request_uri = "/"
|
319
|
+
o.endpoint_discovery = {
|
320
|
+
"required" => true,
|
321
|
+
}
|
322
|
+
o.input = Shapes::ShapeRef.new(shape: CreateTableRequest)
|
323
|
+
o.output = Shapes::ShapeRef.new(shape: CreateTableResponse)
|
324
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
328
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
330
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
331
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
332
|
+
end)
|
333
|
+
|
334
|
+
api.add_operation(:delete_database, Seahorse::Model::Operation.new.tap do |o|
|
335
|
+
o.name = "DeleteDatabase"
|
336
|
+
o.http_method = "POST"
|
337
|
+
o.http_request_uri = "/"
|
338
|
+
o.endpoint_discovery = {
|
339
|
+
"required" => true,
|
340
|
+
}
|
341
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteDatabaseRequest)
|
342
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
343
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
344
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
348
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
349
|
+
end)
|
350
|
+
|
351
|
+
api.add_operation(:delete_table, Seahorse::Model::Operation.new.tap do |o|
|
352
|
+
o.name = "DeleteTable"
|
353
|
+
o.http_method = "POST"
|
354
|
+
o.http_request_uri = "/"
|
355
|
+
o.endpoint_discovery = {
|
356
|
+
"required" => true,
|
357
|
+
}
|
358
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteTableRequest)
|
359
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
361
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
362
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
366
|
+
end)
|
367
|
+
|
368
|
+
api.add_operation(:describe_database, Seahorse::Model::Operation.new.tap do |o|
|
369
|
+
o.name = "DescribeDatabase"
|
370
|
+
o.http_method = "POST"
|
371
|
+
o.http_request_uri = "/"
|
372
|
+
o.endpoint_discovery = {
|
373
|
+
"required" => true,
|
374
|
+
}
|
375
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeDatabaseRequest)
|
376
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeDatabaseResponse)
|
377
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
378
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
379
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
380
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
381
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
383
|
+
end)
|
384
|
+
|
385
|
+
api.add_operation(:describe_endpoints, Seahorse::Model::Operation.new.tap do |o|
|
386
|
+
o.name = "DescribeEndpoints"
|
387
|
+
o.http_method = "POST"
|
388
|
+
o.http_request_uri = "/"
|
389
|
+
o.endpoint_operation = true
|
390
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeEndpointsRequest)
|
391
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeEndpointsResponse)
|
392
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
393
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
394
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
395
|
+
end)
|
396
|
+
|
397
|
+
api.add_operation(:describe_table, Seahorse::Model::Operation.new.tap do |o|
|
398
|
+
o.name = "DescribeTable"
|
399
|
+
o.http_method = "POST"
|
400
|
+
o.http_request_uri = "/"
|
401
|
+
o.endpoint_discovery = {
|
402
|
+
"required" => true,
|
403
|
+
}
|
404
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeTableRequest)
|
405
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeTableResponse)
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
411
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
412
|
+
end)
|
413
|
+
|
414
|
+
api.add_operation(:list_databases, Seahorse::Model::Operation.new.tap do |o|
|
415
|
+
o.name = "ListDatabases"
|
416
|
+
o.http_method = "POST"
|
417
|
+
o.http_request_uri = "/"
|
418
|
+
o.endpoint_discovery = {
|
419
|
+
"required" => true,
|
420
|
+
}
|
421
|
+
o.input = Shapes::ShapeRef.new(shape: ListDatabasesRequest)
|
422
|
+
o.output = Shapes::ShapeRef.new(shape: ListDatabasesResponse)
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
425
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
426
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
427
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
428
|
+
o[:pager] = Aws::Pager.new(
|
429
|
+
limit_key: "max_results",
|
430
|
+
tokens: {
|
431
|
+
"next_token" => "next_token"
|
432
|
+
}
|
433
|
+
)
|
434
|
+
end)
|
435
|
+
|
436
|
+
api.add_operation(:list_tables, Seahorse::Model::Operation.new.tap do |o|
|
437
|
+
o.name = "ListTables"
|
438
|
+
o.http_method = "POST"
|
439
|
+
o.http_request_uri = "/"
|
440
|
+
o.endpoint_discovery = {
|
441
|
+
"required" => true,
|
442
|
+
}
|
443
|
+
o.input = Shapes::ShapeRef.new(shape: ListTablesRequest)
|
444
|
+
o.output = Shapes::ShapeRef.new(shape: ListTablesResponse)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
447
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
448
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
449
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
451
|
+
o[:pager] = Aws::Pager.new(
|
452
|
+
limit_key: "max_results",
|
453
|
+
tokens: {
|
454
|
+
"next_token" => "next_token"
|
455
|
+
}
|
456
|
+
)
|
457
|
+
end)
|
458
|
+
|
459
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
460
|
+
o.name = "ListTagsForResource"
|
461
|
+
o.http_method = "POST"
|
462
|
+
o.http_request_uri = "/"
|
463
|
+
o.endpoint_discovery = {
|
464
|
+
"required" => true,
|
465
|
+
}
|
466
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
467
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
468
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
469
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
470
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
471
|
+
end)
|
472
|
+
|
473
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
474
|
+
o.name = "TagResource"
|
475
|
+
o.http_method = "POST"
|
476
|
+
o.http_request_uri = "/"
|
477
|
+
o.endpoint_discovery = {
|
478
|
+
"required" => true,
|
479
|
+
}
|
480
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
481
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
482
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
483
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
484
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
485
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
486
|
+
end)
|
487
|
+
|
488
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
489
|
+
o.name = "UntagResource"
|
490
|
+
o.http_method = "POST"
|
491
|
+
o.http_request_uri = "/"
|
492
|
+
o.endpoint_discovery = {
|
493
|
+
"required" => true,
|
494
|
+
}
|
495
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
496
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
497
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
498
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
499
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
500
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
501
|
+
end)
|
502
|
+
|
503
|
+
api.add_operation(:update_database, Seahorse::Model::Operation.new.tap do |o|
|
504
|
+
o.name = "UpdateDatabase"
|
505
|
+
o.http_method = "POST"
|
506
|
+
o.http_request_uri = "/"
|
507
|
+
o.endpoint_discovery = {
|
508
|
+
"required" => true,
|
509
|
+
}
|
510
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateDatabaseRequest)
|
511
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateDatabaseResponse)
|
512
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
513
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
514
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
515
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
516
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
517
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
518
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
519
|
+
end)
|
520
|
+
|
521
|
+
api.add_operation(:update_table, Seahorse::Model::Operation.new.tap do |o|
|
522
|
+
o.name = "UpdateTable"
|
523
|
+
o.http_method = "POST"
|
524
|
+
o.http_request_uri = "/"
|
525
|
+
o.endpoint_discovery = {
|
526
|
+
"required" => true,
|
527
|
+
}
|
528
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateTableRequest)
|
529
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateTableResponse)
|
530
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
531
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
532
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
533
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
534
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
535
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
536
|
+
end)
|
537
|
+
|
538
|
+
api.add_operation(:write_records, Seahorse::Model::Operation.new.tap do |o|
|
539
|
+
o.name = "WriteRecords"
|
540
|
+
o.http_method = "POST"
|
541
|
+
o.http_request_uri = "/"
|
542
|
+
o.endpoint_discovery = {
|
543
|
+
"required" => true,
|
544
|
+
}
|
545
|
+
o.input = Shapes::ShapeRef.new(shape: WriteRecordsRequest)
|
546
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
547
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
548
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
549
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
550
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
551
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
552
|
+
o.errors << Shapes::ShapeRef.new(shape: RejectedRecordsException)
|
553
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidEndpointException)
|
554
|
+
end)
|
555
|
+
end
|
556
|
+
|
557
|
+
end
|
558
|
+
end
|