aws-sdk-keyspaces 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,521 @@
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/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Keyspaces
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ ARN = Shapes::StringShape.new(name: 'ARN')
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ CapacitySpecification = Shapes::StructureShape.new(name: 'CapacitySpecification')
19
+ CapacitySpecificationSummary = Shapes::StructureShape.new(name: 'CapacitySpecificationSummary')
20
+ CapacityUnits = Shapes::IntegerShape.new(name: 'CapacityUnits')
21
+ ClusteringKey = Shapes::StructureShape.new(name: 'ClusteringKey')
22
+ ClusteringKeyList = Shapes::ListShape.new(name: 'ClusteringKeyList')
23
+ ColumnDefinition = Shapes::StructureShape.new(name: 'ColumnDefinition')
24
+ ColumnDefinitionList = Shapes::ListShape.new(name: 'ColumnDefinitionList')
25
+ Comment = Shapes::StructureShape.new(name: 'Comment')
26
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
27
+ CreateKeyspaceRequest = Shapes::StructureShape.new(name: 'CreateKeyspaceRequest')
28
+ CreateKeyspaceResponse = Shapes::StructureShape.new(name: 'CreateKeyspaceResponse')
29
+ CreateTableRequest = Shapes::StructureShape.new(name: 'CreateTableRequest')
30
+ CreateTableResponse = Shapes::StructureShape.new(name: 'CreateTableResponse')
31
+ DefaultTimeToLive = Shapes::IntegerShape.new(name: 'DefaultTimeToLive')
32
+ DeleteKeyspaceRequest = Shapes::StructureShape.new(name: 'DeleteKeyspaceRequest')
33
+ DeleteKeyspaceResponse = Shapes::StructureShape.new(name: 'DeleteKeyspaceResponse')
34
+ DeleteTableRequest = Shapes::StructureShape.new(name: 'DeleteTableRequest')
35
+ DeleteTableResponse = Shapes::StructureShape.new(name: 'DeleteTableResponse')
36
+ EncryptionSpecification = Shapes::StructureShape.new(name: 'EncryptionSpecification')
37
+ EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
38
+ GenericString = Shapes::StringShape.new(name: 'GenericString')
39
+ GetKeyspaceRequest = Shapes::StructureShape.new(name: 'GetKeyspaceRequest')
40
+ GetKeyspaceResponse = Shapes::StructureShape.new(name: 'GetKeyspaceResponse')
41
+ GetTableRequest = Shapes::StructureShape.new(name: 'GetTableRequest')
42
+ GetTableResponse = Shapes::StructureShape.new(name: 'GetTableResponse')
43
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
44
+ KeyspaceName = Shapes::StringShape.new(name: 'KeyspaceName')
45
+ KeyspaceSummary = Shapes::StructureShape.new(name: 'KeyspaceSummary')
46
+ KeyspaceSummaryList = Shapes::ListShape.new(name: 'KeyspaceSummaryList')
47
+ ListKeyspacesRequest = Shapes::StructureShape.new(name: 'ListKeyspacesRequest')
48
+ ListKeyspacesResponse = Shapes::StructureShape.new(name: 'ListKeyspacesResponse')
49
+ ListTablesRequest = Shapes::StructureShape.new(name: 'ListTablesRequest')
50
+ ListTablesResponse = Shapes::StructureShape.new(name: 'ListTablesResponse')
51
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
52
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
53
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
54
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
55
+ PartitionKey = Shapes::StructureShape.new(name: 'PartitionKey')
56
+ PartitionKeyList = Shapes::ListShape.new(name: 'PartitionKeyList')
57
+ PointInTimeRecovery = Shapes::StructureShape.new(name: 'PointInTimeRecovery')
58
+ PointInTimeRecoveryStatus = Shapes::StringShape.new(name: 'PointInTimeRecoveryStatus')
59
+ PointInTimeRecoverySummary = Shapes::StructureShape.new(name: 'PointInTimeRecoverySummary')
60
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
61
+ RestoreTableRequest = Shapes::StructureShape.new(name: 'RestoreTableRequest')
62
+ RestoreTableResponse = Shapes::StructureShape.new(name: 'RestoreTableResponse')
63
+ SchemaDefinition = Shapes::StructureShape.new(name: 'SchemaDefinition')
64
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
65
+ SortOrder = Shapes::StringShape.new(name: 'SortOrder')
66
+ StaticColumn = Shapes::StructureShape.new(name: 'StaticColumn')
67
+ StaticColumnList = Shapes::ListShape.new(name: 'StaticColumnList')
68
+ String = Shapes::StringShape.new(name: 'String')
69
+ TableName = Shapes::StringShape.new(name: 'TableName')
70
+ TableStatus = Shapes::StringShape.new(name: 'TableStatus')
71
+ TableSummary = Shapes::StructureShape.new(name: 'TableSummary')
72
+ TableSummaryList = Shapes::ListShape.new(name: 'TableSummaryList')
73
+ Tag = Shapes::StructureShape.new(name: 'Tag')
74
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
75
+ TagList = Shapes::ListShape.new(name: 'TagList')
76
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
77
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
78
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
79
+ ThroughputMode = Shapes::StringShape.new(name: 'ThroughputMode')
80
+ TimeToLive = Shapes::StructureShape.new(name: 'TimeToLive')
81
+ TimeToLiveStatus = Shapes::StringShape.new(name: 'TimeToLiveStatus')
82
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
83
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
84
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
85
+ UpdateTableRequest = Shapes::StructureShape.new(name: 'UpdateTableRequest')
86
+ UpdateTableResponse = Shapes::StructureShape.new(name: 'UpdateTableResponse')
87
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
88
+ kmsKeyARN = Shapes::StringShape.new(name: 'kmsKeyARN')
89
+
90
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
91
+ AccessDeniedException.struct_class = Types::AccessDeniedException
92
+
93
+ CapacitySpecification.add_member(:throughput_mode, Shapes::ShapeRef.new(shape: ThroughputMode, required: true, location_name: "throughputMode"))
94
+ CapacitySpecification.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "readCapacityUnits"))
95
+ CapacitySpecification.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "writeCapacityUnits"))
96
+ CapacitySpecification.struct_class = Types::CapacitySpecification
97
+
98
+ CapacitySpecificationSummary.add_member(:throughput_mode, Shapes::ShapeRef.new(shape: ThroughputMode, required: true, location_name: "throughputMode"))
99
+ CapacitySpecificationSummary.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "readCapacityUnits"))
100
+ CapacitySpecificationSummary.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: CapacityUnits, location_name: "writeCapacityUnits"))
101
+ CapacitySpecificationSummary.add_member(:last_update_to_pay_per_request_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdateToPayPerRequestTimestamp"))
102
+ CapacitySpecificationSummary.struct_class = Types::CapacitySpecificationSummary
103
+
104
+ ClusteringKey.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "name"))
105
+ ClusteringKey.add_member(:order_by, Shapes::ShapeRef.new(shape: SortOrder, required: true, location_name: "orderBy"))
106
+ ClusteringKey.struct_class = Types::ClusteringKey
107
+
108
+ ClusteringKeyList.member = Shapes::ShapeRef.new(shape: ClusteringKey)
109
+
110
+ ColumnDefinition.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "name"))
111
+ ColumnDefinition.add_member(:type, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "type"))
112
+ ColumnDefinition.struct_class = Types::ColumnDefinition
113
+
114
+ ColumnDefinitionList.member = Shapes::ShapeRef.new(shape: ColumnDefinition)
115
+
116
+ Comment.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
117
+ Comment.struct_class = Types::Comment
118
+
119
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
120
+ ConflictException.struct_class = Types::ConflictException
121
+
122
+ CreateKeyspaceRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
123
+ CreateKeyspaceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
124
+ CreateKeyspaceRequest.struct_class = Types::CreateKeyspaceRequest
125
+
126
+ CreateKeyspaceResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
127
+ CreateKeyspaceResponse.struct_class = Types::CreateKeyspaceResponse
128
+
129
+ CreateTableRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
130
+ CreateTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
131
+ CreateTableRequest.add_member(:schema_definition, Shapes::ShapeRef.new(shape: SchemaDefinition, required: true, location_name: "schemaDefinition"))
132
+ CreateTableRequest.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
133
+ CreateTableRequest.add_member(:capacity_specification, Shapes::ShapeRef.new(shape: CapacitySpecification, location_name: "capacitySpecification"))
134
+ CreateTableRequest.add_member(:encryption_specification, Shapes::ShapeRef.new(shape: EncryptionSpecification, location_name: "encryptionSpecification"))
135
+ CreateTableRequest.add_member(:point_in_time_recovery, Shapes::ShapeRef.new(shape: PointInTimeRecovery, location_name: "pointInTimeRecovery"))
136
+ CreateTableRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TimeToLive, location_name: "ttl"))
137
+ CreateTableRequest.add_member(:default_time_to_live, Shapes::ShapeRef.new(shape: DefaultTimeToLive, location_name: "defaultTimeToLive"))
138
+ CreateTableRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
139
+ CreateTableRequest.struct_class = Types::CreateTableRequest
140
+
141
+ CreateTableResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
142
+ CreateTableResponse.struct_class = Types::CreateTableResponse
143
+
144
+ DeleteKeyspaceRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
145
+ DeleteKeyspaceRequest.struct_class = Types::DeleteKeyspaceRequest
146
+
147
+ DeleteKeyspaceResponse.struct_class = Types::DeleteKeyspaceResponse
148
+
149
+ DeleteTableRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
150
+ DeleteTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
151
+ DeleteTableRequest.struct_class = Types::DeleteTableRequest
152
+
153
+ DeleteTableResponse.struct_class = Types::DeleteTableResponse
154
+
155
+ EncryptionSpecification.add_member(:type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "type"))
156
+ EncryptionSpecification.add_member(:kms_key_identifier, Shapes::ShapeRef.new(shape: kmsKeyARN, location_name: "kmsKeyIdentifier"))
157
+ EncryptionSpecification.struct_class = Types::EncryptionSpecification
158
+
159
+ GetKeyspaceRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
160
+ GetKeyspaceRequest.struct_class = Types::GetKeyspaceRequest
161
+
162
+ GetKeyspaceResponse.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
163
+ GetKeyspaceResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
164
+ GetKeyspaceResponse.struct_class = Types::GetKeyspaceResponse
165
+
166
+ GetTableRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
167
+ GetTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
168
+ GetTableRequest.struct_class = Types::GetTableRequest
169
+
170
+ GetTableResponse.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
171
+ GetTableResponse.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
172
+ GetTableResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
173
+ GetTableResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationTimestamp"))
174
+ GetTableResponse.add_member(:status, Shapes::ShapeRef.new(shape: TableStatus, location_name: "status"))
175
+ GetTableResponse.add_member(:schema_definition, Shapes::ShapeRef.new(shape: SchemaDefinition, location_name: "schemaDefinition"))
176
+ GetTableResponse.add_member(:capacity_specification, Shapes::ShapeRef.new(shape: CapacitySpecificationSummary, location_name: "capacitySpecification"))
177
+ GetTableResponse.add_member(:encryption_specification, Shapes::ShapeRef.new(shape: EncryptionSpecification, location_name: "encryptionSpecification"))
178
+ GetTableResponse.add_member(:point_in_time_recovery, Shapes::ShapeRef.new(shape: PointInTimeRecoverySummary, location_name: "pointInTimeRecovery"))
179
+ GetTableResponse.add_member(:ttl, Shapes::ShapeRef.new(shape: TimeToLive, location_name: "ttl"))
180
+ GetTableResponse.add_member(:default_time_to_live, Shapes::ShapeRef.new(shape: DefaultTimeToLive, location_name: "defaultTimeToLive"))
181
+ GetTableResponse.add_member(:comment, Shapes::ShapeRef.new(shape: Comment, location_name: "comment"))
182
+ GetTableResponse.struct_class = Types::GetTableResponse
183
+
184
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
185
+ InternalServerException.struct_class = Types::InternalServerException
186
+
187
+ KeyspaceSummary.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
188
+ KeyspaceSummary.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
189
+ KeyspaceSummary.struct_class = Types::KeyspaceSummary
190
+
191
+ KeyspaceSummaryList.member = Shapes::ShapeRef.new(shape: KeyspaceSummary)
192
+
193
+ ListKeyspacesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
194
+ ListKeyspacesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
195
+ ListKeyspacesRequest.struct_class = Types::ListKeyspacesRequest
196
+
197
+ ListKeyspacesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
198
+ ListKeyspacesResponse.add_member(:keyspaces, Shapes::ShapeRef.new(shape: KeyspaceSummaryList, required: true, location_name: "keyspaces"))
199
+ ListKeyspacesResponse.struct_class = Types::ListKeyspacesResponse
200
+
201
+ ListTablesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
202
+ ListTablesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
203
+ ListTablesRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
204
+ ListTablesRequest.struct_class = Types::ListTablesRequest
205
+
206
+ ListTablesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
207
+ ListTablesResponse.add_member(:tables, Shapes::ShapeRef.new(shape: TableSummaryList, location_name: "tables"))
208
+ ListTablesResponse.struct_class = Types::ListTablesResponse
209
+
210
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
211
+ ListTagsForResourceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
212
+ ListTagsForResourceRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
213
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
214
+
215
+ ListTagsForResourceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
216
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
217
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
218
+
219
+ PartitionKey.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "name"))
220
+ PartitionKey.struct_class = Types::PartitionKey
221
+
222
+ PartitionKeyList.member = Shapes::ShapeRef.new(shape: PartitionKey)
223
+
224
+ PointInTimeRecovery.add_member(:status, Shapes::ShapeRef.new(shape: PointInTimeRecoveryStatus, required: true, location_name: "status"))
225
+ PointInTimeRecovery.struct_class = Types::PointInTimeRecovery
226
+
227
+ PointInTimeRecoverySummary.add_member(:status, Shapes::ShapeRef.new(shape: PointInTimeRecoveryStatus, required: true, location_name: "status"))
228
+ PointInTimeRecoverySummary.add_member(:earliest_restorable_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "earliestRestorableTimestamp"))
229
+ PointInTimeRecoverySummary.struct_class = Types::PointInTimeRecoverySummary
230
+
231
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
232
+ ResourceNotFoundException.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "resourceArn"))
233
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
234
+
235
+ RestoreTableRequest.add_member(:source_keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "sourceKeyspaceName"))
236
+ RestoreTableRequest.add_member(:source_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "sourceTableName"))
237
+ RestoreTableRequest.add_member(:target_keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "targetKeyspaceName"))
238
+ RestoreTableRequest.add_member(:target_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "targetTableName"))
239
+ RestoreTableRequest.add_member(:restore_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "restoreTimestamp"))
240
+ RestoreTableRequest.add_member(:capacity_specification_override, Shapes::ShapeRef.new(shape: CapacitySpecification, location_name: "capacitySpecificationOverride"))
241
+ RestoreTableRequest.add_member(:encryption_specification_override, Shapes::ShapeRef.new(shape: EncryptionSpecification, location_name: "encryptionSpecificationOverride"))
242
+ RestoreTableRequest.add_member(:point_in_time_recovery_override, Shapes::ShapeRef.new(shape: PointInTimeRecovery, location_name: "pointInTimeRecoveryOverride"))
243
+ RestoreTableRequest.add_member(:tags_override, Shapes::ShapeRef.new(shape: TagList, location_name: "tagsOverride"))
244
+ RestoreTableRequest.struct_class = Types::RestoreTableRequest
245
+
246
+ RestoreTableResponse.add_member(:restored_table_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "restoredTableARN"))
247
+ RestoreTableResponse.struct_class = Types::RestoreTableResponse
248
+
249
+ SchemaDefinition.add_member(:all_columns, Shapes::ShapeRef.new(shape: ColumnDefinitionList, required: true, location_name: "allColumns"))
250
+ SchemaDefinition.add_member(:partition_keys, Shapes::ShapeRef.new(shape: PartitionKeyList, required: true, location_name: "partitionKeys"))
251
+ SchemaDefinition.add_member(:clustering_keys, Shapes::ShapeRef.new(shape: ClusteringKeyList, location_name: "clusteringKeys"))
252
+ SchemaDefinition.add_member(:static_columns, Shapes::ShapeRef.new(shape: StaticColumnList, location_name: "staticColumns"))
253
+ SchemaDefinition.struct_class = Types::SchemaDefinition
254
+
255
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
256
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
257
+
258
+ StaticColumn.add_member(:name, Shapes::ShapeRef.new(shape: GenericString, required: true, location_name: "name"))
259
+ StaticColumn.struct_class = Types::StaticColumn
260
+
261
+ StaticColumnList.member = Shapes::ShapeRef.new(shape: StaticColumn)
262
+
263
+ TableSummary.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
264
+ TableSummary.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
265
+ TableSummary.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
266
+ TableSummary.struct_class = Types::TableSummary
267
+
268
+ TableSummaryList.member = Shapes::ShapeRef.new(shape: TableSummary)
269
+
270
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "key"))
271
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "value"))
272
+ Tag.struct_class = Types::Tag
273
+
274
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
275
+
276
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
277
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
278
+ TagResourceRequest.struct_class = Types::TagResourceRequest
279
+
280
+ TagResourceResponse.struct_class = Types::TagResourceResponse
281
+
282
+ TimeToLive.add_member(:status, Shapes::ShapeRef.new(shape: TimeToLiveStatus, required: true, location_name: "status"))
283
+ TimeToLive.struct_class = Types::TimeToLive
284
+
285
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
286
+ UntagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
287
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
288
+
289
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
290
+
291
+ UpdateTableRequest.add_member(:keyspace_name, Shapes::ShapeRef.new(shape: KeyspaceName, required: true, location_name: "keyspaceName"))
292
+ UpdateTableRequest.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "tableName"))
293
+ UpdateTableRequest.add_member(:add_columns, Shapes::ShapeRef.new(shape: ColumnDefinitionList, location_name: "addColumns"))
294
+ UpdateTableRequest.add_member(:capacity_specification, Shapes::ShapeRef.new(shape: CapacitySpecification, location_name: "capacitySpecification"))
295
+ UpdateTableRequest.add_member(:encryption_specification, Shapes::ShapeRef.new(shape: EncryptionSpecification, location_name: "encryptionSpecification"))
296
+ UpdateTableRequest.add_member(:point_in_time_recovery, Shapes::ShapeRef.new(shape: PointInTimeRecovery, location_name: "pointInTimeRecovery"))
297
+ UpdateTableRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: TimeToLive, location_name: "ttl"))
298
+ UpdateTableRequest.add_member(:default_time_to_live, Shapes::ShapeRef.new(shape: DefaultTimeToLive, location_name: "defaultTimeToLive"))
299
+ UpdateTableRequest.struct_class = Types::UpdateTableRequest
300
+
301
+ UpdateTableResponse.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "resourceArn"))
302
+ UpdateTableResponse.struct_class = Types::UpdateTableResponse
303
+
304
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
305
+ ValidationException.struct_class = Types::ValidationException
306
+
307
+
308
+ # @api private
309
+ API = Seahorse::Model::Api.new.tap do |api|
310
+
311
+ api.version = "2022-02-10"
312
+
313
+ api.metadata = {
314
+ "apiVersion" => "2022-02-10",
315
+ "endpointPrefix" => "cassandra",
316
+ "jsonVersion" => "1.0",
317
+ "protocol" => "json",
318
+ "serviceFullName" => "Amazon Keyspaces",
319
+ "serviceId" => "Keyspaces",
320
+ "signatureVersion" => "v4",
321
+ "signingName" => "cassandra",
322
+ "targetPrefix" => "KeyspacesService",
323
+ "uid" => "keyspaces-2022-02-10",
324
+ }
325
+
326
+ api.add_operation(:create_keyspace, Seahorse::Model::Operation.new.tap do |o|
327
+ o.name = "CreateKeyspace"
328
+ o.http_method = "POST"
329
+ o.http_request_uri = "/"
330
+ o.input = Shapes::ShapeRef.new(shape: CreateKeyspaceRequest)
331
+ o.output = Shapes::ShapeRef.new(shape: CreateKeyspaceResponse)
332
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
333
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
334
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
335
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
336
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
337
+ end)
338
+
339
+ api.add_operation(:create_table, Seahorse::Model::Operation.new.tap do |o|
340
+ o.name = "CreateTable"
341
+ o.http_method = "POST"
342
+ o.http_request_uri = "/"
343
+ o.input = Shapes::ShapeRef.new(shape: CreateTableRequest)
344
+ o.output = Shapes::ShapeRef.new(shape: CreateTableResponse)
345
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
346
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
347
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
348
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
349
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
350
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
351
+ end)
352
+
353
+ api.add_operation(:delete_keyspace, Seahorse::Model::Operation.new.tap do |o|
354
+ o.name = "DeleteKeyspace"
355
+ o.http_method = "POST"
356
+ o.http_request_uri = "/"
357
+ o.input = Shapes::ShapeRef.new(shape: DeleteKeyspaceRequest)
358
+ o.output = Shapes::ShapeRef.new(shape: DeleteKeyspaceResponse)
359
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
361
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
362
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
363
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
364
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
365
+ end)
366
+
367
+ api.add_operation(:delete_table, Seahorse::Model::Operation.new.tap do |o|
368
+ o.name = "DeleteTable"
369
+ o.http_method = "POST"
370
+ o.http_request_uri = "/"
371
+ o.input = Shapes::ShapeRef.new(shape: DeleteTableRequest)
372
+ o.output = Shapes::ShapeRef.new(shape: DeleteTableResponse)
373
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
374
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
375
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
376
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
377
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
378
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
379
+ end)
380
+
381
+ api.add_operation(:get_keyspace, Seahorse::Model::Operation.new.tap do |o|
382
+ o.name = "GetKeyspace"
383
+ o.http_method = "POST"
384
+ o.http_request_uri = "/"
385
+ o.input = Shapes::ShapeRef.new(shape: GetKeyspaceRequest)
386
+ o.output = Shapes::ShapeRef.new(shape: GetKeyspaceResponse)
387
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
388
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
389
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
390
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
391
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
392
+ end)
393
+
394
+ api.add_operation(:get_table, Seahorse::Model::Operation.new.tap do |o|
395
+ o.name = "GetTable"
396
+ o.http_method = "POST"
397
+ o.http_request_uri = "/"
398
+ o.input = Shapes::ShapeRef.new(shape: GetTableRequest)
399
+ o.output = Shapes::ShapeRef.new(shape: GetTableResponse)
400
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
402
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
403
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
405
+ end)
406
+
407
+ api.add_operation(:list_keyspaces, Seahorse::Model::Operation.new.tap do |o|
408
+ o.name = "ListKeyspaces"
409
+ o.http_method = "POST"
410
+ o.http_request_uri = "/"
411
+ o.input = Shapes::ShapeRef.new(shape: ListKeyspacesRequest)
412
+ o.output = Shapes::ShapeRef.new(shape: ListKeyspacesResponse)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
415
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
416
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
417
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
418
+ o[:pager] = Aws::Pager.new(
419
+ limit_key: "max_results",
420
+ tokens: {
421
+ "next_token" => "next_token"
422
+ }
423
+ )
424
+ end)
425
+
426
+ api.add_operation(:list_tables, Seahorse::Model::Operation.new.tap do |o|
427
+ o.name = "ListTables"
428
+ o.http_method = "POST"
429
+ o.http_request_uri = "/"
430
+ o.input = Shapes::ShapeRef.new(shape: ListTablesRequest)
431
+ o.output = Shapes::ShapeRef.new(shape: ListTablesResponse)
432
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
433
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
434
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
435
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
436
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
437
+ o[:pager] = Aws::Pager.new(
438
+ limit_key: "max_results",
439
+ tokens: {
440
+ "next_token" => "next_token"
441
+ }
442
+ )
443
+ end)
444
+
445
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
446
+ o.name = "ListTagsForResource"
447
+ o.http_method = "POST"
448
+ o.http_request_uri = "/"
449
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
450
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
451
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
452
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
453
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
454
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
455
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
456
+ o[:pager] = Aws::Pager.new(
457
+ limit_key: "max_results",
458
+ tokens: {
459
+ "next_token" => "next_token"
460
+ }
461
+ )
462
+ end)
463
+
464
+ api.add_operation(:restore_table, Seahorse::Model::Operation.new.tap do |o|
465
+ o.name = "RestoreTable"
466
+ o.http_method = "POST"
467
+ o.http_request_uri = "/"
468
+ o.input = Shapes::ShapeRef.new(shape: RestoreTableRequest)
469
+ o.output = Shapes::ShapeRef.new(shape: RestoreTableResponse)
470
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
471
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
472
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
473
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
474
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
475
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
476
+ end)
477
+
478
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
479
+ o.name = "TagResource"
480
+ o.http_method = "POST"
481
+ o.http_request_uri = "/"
482
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
483
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
484
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
485
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
486
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
487
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
488
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
489
+ end)
490
+
491
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
492
+ o.name = "UntagResource"
493
+ o.http_method = "POST"
494
+ o.http_request_uri = "/"
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: InternalServerException)
500
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
501
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
502
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
503
+ end)
504
+
505
+ api.add_operation(:update_table, Seahorse::Model::Operation.new.tap do |o|
506
+ o.name = "UpdateTable"
507
+ o.http_method = "POST"
508
+ o.http_request_uri = "/"
509
+ o.input = Shapes::ShapeRef.new(shape: UpdateTableRequest)
510
+ o.output = Shapes::ShapeRef.new(shape: UpdateTableResponse)
511
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
512
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
513
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
514
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
515
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
516
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
517
+ end)
518
+ end
519
+
520
+ end
521
+ end
File without changes
@@ -0,0 +1,139 @@
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/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::Keyspaces
11
+
12
+ # When Keyspaces returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Keyspaces::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Keyspaces errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Keyspaces::Errors::ServiceError
20
+ # # rescues all Keyspaces API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConflictException}
32
+ # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
35
+ # * {ValidationException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
39
+ module Errors
40
+
41
+ extend Aws::Errors::DynamicErrors
42
+
43
+ class AccessDeniedException < ServiceError
44
+
45
+ # @param [Seahorse::Client::RequestContext] context
46
+ # @param [String] message
47
+ # @param [Aws::Keyspaces::Types::AccessDeniedException] data
48
+ def initialize(context, message, data = Aws::EmptyStructure.new)
49
+ super(context, message, data)
50
+ end
51
+
52
+ # @return [String]
53
+ def message
54
+ @message || @data[:message]
55
+ end
56
+ end
57
+
58
+ class ConflictException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::Keyspaces::Types::ConflictException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+
67
+ # @return [String]
68
+ def message
69
+ @message || @data[:message]
70
+ end
71
+ end
72
+
73
+ class InternalServerException < ServiceError
74
+
75
+ # @param [Seahorse::Client::RequestContext] context
76
+ # @param [String] message
77
+ # @param [Aws::Keyspaces::Types::InternalServerException] data
78
+ def initialize(context, message, data = Aws::EmptyStructure.new)
79
+ super(context, message, data)
80
+ end
81
+
82
+ # @return [String]
83
+ def message
84
+ @message || @data[:message]
85
+ end
86
+ end
87
+
88
+ class ResourceNotFoundException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::Keyspaces::Types::ResourceNotFoundException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+
97
+ # @return [String]
98
+ def message
99
+ @message || @data[:message]
100
+ end
101
+
102
+ # @return [String]
103
+ def resource_arn
104
+ @data[:resource_arn]
105
+ end
106
+ end
107
+
108
+ class ServiceQuotaExceededException < ServiceError
109
+
110
+ # @param [Seahorse::Client::RequestContext] context
111
+ # @param [String] message
112
+ # @param [Aws::Keyspaces::Types::ServiceQuotaExceededException] data
113
+ def initialize(context, message, data = Aws::EmptyStructure.new)
114
+ super(context, message, data)
115
+ end
116
+
117
+ # @return [String]
118
+ def message
119
+ @message || @data[:message]
120
+ end
121
+ end
122
+
123
+ class ValidationException < ServiceError
124
+
125
+ # @param [Seahorse::Client::RequestContext] context
126
+ # @param [String] message
127
+ # @param [Aws::Keyspaces::Types::ValidationException] data
128
+ def initialize(context, message, data = Aws::EmptyStructure.new)
129
+ super(context, message, data)
130
+ end
131
+
132
+ # @return [String]
133
+ def message
134
+ @message || @data[:message]
135
+ end
136
+ end
137
+
138
+ end
139
+ end