aws-sdk-ivschat 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,439 @@
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::Ivschat
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ChatToken = Shapes::StringShape.new(name: 'ChatToken')
18
+ ChatTokenAttributes = Shapes::MapShape.new(name: 'ChatTokenAttributes')
19
+ ChatTokenCapabilities = Shapes::ListShape.new(name: 'ChatTokenCapabilities')
20
+ ChatTokenCapability = Shapes::StringShape.new(name: 'ChatTokenCapability')
21
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
+ CreateChatTokenRequest = Shapes::StructureShape.new(name: 'CreateChatTokenRequest')
23
+ CreateChatTokenResponse = Shapes::StructureShape.new(name: 'CreateChatTokenResponse')
24
+ CreateRoomRequest = Shapes::StructureShape.new(name: 'CreateRoomRequest')
25
+ CreateRoomResponse = Shapes::StructureShape.new(name: 'CreateRoomResponse')
26
+ DeleteMessageRequest = Shapes::StructureShape.new(name: 'DeleteMessageRequest')
27
+ DeleteMessageResponse = Shapes::StructureShape.new(name: 'DeleteMessageResponse')
28
+ DeleteRoomRequest = Shapes::StructureShape.new(name: 'DeleteRoomRequest')
29
+ DisconnectUserRequest = Shapes::StructureShape.new(name: 'DisconnectUserRequest')
30
+ DisconnectUserResponse = Shapes::StructureShape.new(name: 'DisconnectUserResponse')
31
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
32
+ EventAttributes = Shapes::MapShape.new(name: 'EventAttributes')
33
+ EventName = Shapes::StringShape.new(name: 'EventName')
34
+ FallbackResult = Shapes::StringShape.new(name: 'FallbackResult')
35
+ FieldName = Shapes::StringShape.new(name: 'FieldName')
36
+ GetRoomRequest = Shapes::StructureShape.new(name: 'GetRoomRequest')
37
+ GetRoomResponse = Shapes::StructureShape.new(name: 'GetRoomResponse')
38
+ ID = Shapes::StringShape.new(name: 'ID')
39
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
40
+ LambdaArn = Shapes::StringShape.new(name: 'LambdaArn')
41
+ Limit = Shapes::IntegerShape.new(name: 'Limit')
42
+ ListRoomsRequest = Shapes::StructureShape.new(name: 'ListRoomsRequest')
43
+ ListRoomsResponse = Shapes::StructureShape.new(name: 'ListRoomsResponse')
44
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
45
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
46
+ MaxRoomResults = Shapes::IntegerShape.new(name: 'MaxRoomResults')
47
+ MessageID = Shapes::StringShape.new(name: 'MessageID')
48
+ MessageReviewHandler = Shapes::StructureShape.new(name: 'MessageReviewHandler')
49
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
50
+ PendingVerification = Shapes::StructureShape.new(name: 'PendingVerification')
51
+ Reason = Shapes::StringShape.new(name: 'Reason')
52
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
53
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
54
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
55
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
56
+ RoomArn = Shapes::StringShape.new(name: 'RoomArn')
57
+ RoomID = Shapes::StringShape.new(name: 'RoomID')
58
+ RoomIdentifier = Shapes::StringShape.new(name: 'RoomIdentifier')
59
+ RoomList = Shapes::ListShape.new(name: 'RoomList')
60
+ RoomMaxMessageLength = Shapes::IntegerShape.new(name: 'RoomMaxMessageLength')
61
+ RoomMaxMessageRatePerSecond = Shapes::IntegerShape.new(name: 'RoomMaxMessageRatePerSecond')
62
+ RoomName = Shapes::StringShape.new(name: 'RoomName')
63
+ RoomSummary = Shapes::StructureShape.new(name: 'RoomSummary')
64
+ SendEventRequest = Shapes::StructureShape.new(name: 'SendEventRequest')
65
+ SendEventResponse = Shapes::StructureShape.new(name: 'SendEventResponse')
66
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
67
+ SessionDurationInMinutes = Shapes::IntegerShape.new(name: 'SessionDurationInMinutes')
68
+ String = Shapes::StringShape.new(name: 'String')
69
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
70
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
71
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
72
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
73
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
74
+ Tags = Shapes::MapShape.new(name: 'Tags')
75
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
76
+ Time = Shapes::TimestampShape.new(name: 'Time', timestampFormat: "iso8601")
77
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
78
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
79
+ UpdateRoomRequest = Shapes::StructureShape.new(name: 'UpdateRoomRequest')
80
+ UpdateRoomResponse = Shapes::StructureShape.new(name: 'UpdateRoomResponse')
81
+ UserID = Shapes::StringShape.new(name: 'UserID')
82
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
83
+ ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
84
+ ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
85
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
86
+
87
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
88
+ AccessDeniedException.struct_class = Types::AccessDeniedException
89
+
90
+ ChatTokenAttributes.key = Shapes::ShapeRef.new(shape: String)
91
+ ChatTokenAttributes.value = Shapes::ShapeRef.new(shape: String)
92
+
93
+ ChatTokenCapabilities.member = Shapes::ShapeRef.new(shape: ChatTokenCapability)
94
+
95
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
96
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
97
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
98
+ ConflictException.struct_class = Types::ConflictException
99
+
100
+ CreateChatTokenRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: ChatTokenAttributes, location_name: "attributes"))
101
+ CreateChatTokenRequest.add_member(:capabilities, Shapes::ShapeRef.new(shape: ChatTokenCapabilities, location_name: "capabilities"))
102
+ CreateChatTokenRequest.add_member(:room_identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "roomIdentifier"))
103
+ CreateChatTokenRequest.add_member(:session_duration_in_minutes, Shapes::ShapeRef.new(shape: SessionDurationInMinutes, location_name: "sessionDurationInMinutes"))
104
+ CreateChatTokenRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, required: true, location_name: "userId"))
105
+ CreateChatTokenRequest.struct_class = Types::CreateChatTokenRequest
106
+
107
+ CreateChatTokenResponse.add_member(:session_expiration_time, Shapes::ShapeRef.new(shape: Time, location_name: "sessionExpirationTime"))
108
+ CreateChatTokenResponse.add_member(:token, Shapes::ShapeRef.new(shape: ChatToken, location_name: "token"))
109
+ CreateChatTokenResponse.add_member(:token_expiration_time, Shapes::ShapeRef.new(shape: Time, location_name: "tokenExpirationTime"))
110
+ CreateChatTokenResponse.struct_class = Types::CreateChatTokenResponse
111
+
112
+ CreateRoomRequest.add_member(:maximum_message_length, Shapes::ShapeRef.new(shape: RoomMaxMessageLength, location_name: "maximumMessageLength"))
113
+ CreateRoomRequest.add_member(:maximum_message_rate_per_second, Shapes::ShapeRef.new(shape: RoomMaxMessageRatePerSecond, location_name: "maximumMessageRatePerSecond"))
114
+ CreateRoomRequest.add_member(:message_review_handler, Shapes::ShapeRef.new(shape: MessageReviewHandler, location_name: "messageReviewHandler"))
115
+ CreateRoomRequest.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
116
+ CreateRoomRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
117
+ CreateRoomRequest.struct_class = Types::CreateRoomRequest
118
+
119
+ CreateRoomResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RoomArn, location_name: "arn"))
120
+ CreateRoomResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Time, location_name: "createTime"))
121
+ CreateRoomResponse.add_member(:id, Shapes::ShapeRef.new(shape: RoomID, location_name: "id"))
122
+ CreateRoomResponse.add_member(:maximum_message_length, Shapes::ShapeRef.new(shape: RoomMaxMessageLength, location_name: "maximumMessageLength"))
123
+ CreateRoomResponse.add_member(:maximum_message_rate_per_second, Shapes::ShapeRef.new(shape: RoomMaxMessageRatePerSecond, location_name: "maximumMessageRatePerSecond"))
124
+ CreateRoomResponse.add_member(:message_review_handler, Shapes::ShapeRef.new(shape: MessageReviewHandler, location_name: "messageReviewHandler"))
125
+ CreateRoomResponse.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
126
+ CreateRoomResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
127
+ CreateRoomResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Time, location_name: "updateTime"))
128
+ CreateRoomResponse.struct_class = Types::CreateRoomResponse
129
+
130
+ DeleteMessageRequest.add_member(:id, Shapes::ShapeRef.new(shape: MessageID, required: true, location_name: "id"))
131
+ DeleteMessageRequest.add_member(:reason, Shapes::ShapeRef.new(shape: Reason, location_name: "reason"))
132
+ DeleteMessageRequest.add_member(:room_identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "roomIdentifier"))
133
+ DeleteMessageRequest.struct_class = Types::DeleteMessageRequest
134
+
135
+ DeleteMessageResponse.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
136
+ DeleteMessageResponse.struct_class = Types::DeleteMessageResponse
137
+
138
+ DeleteRoomRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "identifier"))
139
+ DeleteRoomRequest.struct_class = Types::DeleteRoomRequest
140
+
141
+ DisconnectUserRequest.add_member(:reason, Shapes::ShapeRef.new(shape: Reason, location_name: "reason"))
142
+ DisconnectUserRequest.add_member(:room_identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "roomIdentifier"))
143
+ DisconnectUserRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, required: true, location_name: "userId"))
144
+ DisconnectUserRequest.struct_class = Types::DisconnectUserRequest
145
+
146
+ DisconnectUserResponse.struct_class = Types::DisconnectUserResponse
147
+
148
+ EventAttributes.key = Shapes::ShapeRef.new(shape: String)
149
+ EventAttributes.value = Shapes::ShapeRef.new(shape: String)
150
+
151
+ GetRoomRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "identifier"))
152
+ GetRoomRequest.struct_class = Types::GetRoomRequest
153
+
154
+ GetRoomResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RoomArn, location_name: "arn"))
155
+ GetRoomResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Time, location_name: "createTime"))
156
+ GetRoomResponse.add_member(:id, Shapes::ShapeRef.new(shape: RoomID, location_name: "id"))
157
+ GetRoomResponse.add_member(:maximum_message_length, Shapes::ShapeRef.new(shape: RoomMaxMessageLength, location_name: "maximumMessageLength"))
158
+ GetRoomResponse.add_member(:maximum_message_rate_per_second, Shapes::ShapeRef.new(shape: RoomMaxMessageRatePerSecond, location_name: "maximumMessageRatePerSecond"))
159
+ GetRoomResponse.add_member(:message_review_handler, Shapes::ShapeRef.new(shape: MessageReviewHandler, location_name: "messageReviewHandler"))
160
+ GetRoomResponse.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
161
+ GetRoomResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
162
+ GetRoomResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Time, location_name: "updateTime"))
163
+ GetRoomResponse.struct_class = Types::GetRoomResponse
164
+
165
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
166
+ InternalServerException.struct_class = Types::InternalServerException
167
+
168
+ ListRoomsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxRoomResults, location_name: "maxResults"))
169
+ ListRoomsRequest.add_member(:message_review_handler_uri, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "messageReviewHandlerUri"))
170
+ ListRoomsRequest.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
171
+ ListRoomsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
172
+ ListRoomsRequest.struct_class = Types::ListRoomsRequest
173
+
174
+ ListRoomsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
175
+ ListRoomsResponse.add_member(:rooms, Shapes::ShapeRef.new(shape: RoomList, required: true, location_name: "rooms"))
176
+ ListRoomsResponse.struct_class = Types::ListRoomsResponse
177
+
178
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
179
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
180
+
181
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
182
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
183
+
184
+ MessageReviewHandler.add_member(:fallback_result, Shapes::ShapeRef.new(shape: FallbackResult, location_name: "fallbackResult"))
185
+ MessageReviewHandler.add_member(:uri, Shapes::ShapeRef.new(shape: LambdaArn, location_name: "uri"))
186
+ MessageReviewHandler.struct_class = Types::MessageReviewHandler
187
+
188
+ PendingVerification.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
189
+ PendingVerification.struct_class = Types::PendingVerification
190
+
191
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
192
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
193
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
194
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
195
+
196
+ RoomList.member = Shapes::ShapeRef.new(shape: RoomSummary)
197
+
198
+ RoomSummary.add_member(:arn, Shapes::ShapeRef.new(shape: RoomArn, location_name: "arn"))
199
+ RoomSummary.add_member(:create_time, Shapes::ShapeRef.new(shape: Time, location_name: "createTime"))
200
+ RoomSummary.add_member(:id, Shapes::ShapeRef.new(shape: RoomID, location_name: "id"))
201
+ RoomSummary.add_member(:message_review_handler, Shapes::ShapeRef.new(shape: MessageReviewHandler, location_name: "messageReviewHandler"))
202
+ RoomSummary.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
203
+ RoomSummary.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
204
+ RoomSummary.add_member(:update_time, Shapes::ShapeRef.new(shape: Time, location_name: "updateTime"))
205
+ RoomSummary.struct_class = Types::RoomSummary
206
+
207
+ SendEventRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: EventAttributes, location_name: "attributes"))
208
+ SendEventRequest.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, required: true, location_name: "eventName"))
209
+ SendEventRequest.add_member(:room_identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "roomIdentifier"))
210
+ SendEventRequest.struct_class = Types::SendEventRequest
211
+
212
+ SendEventResponse.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
213
+ SendEventResponse.struct_class = Types::SendEventResponse
214
+
215
+ ServiceQuotaExceededException.add_member(:limit, Shapes::ShapeRef.new(shape: Limit, required: true, location_name: "limit"))
216
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
217
+ ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
218
+ ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
219
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
220
+
221
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
222
+
223
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
224
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
225
+ TagResourceRequest.struct_class = Types::TagResourceRequest
226
+
227
+ TagResourceResponse.struct_class = Types::TagResourceResponse
228
+
229
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
230
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
231
+
232
+ ThrottlingException.add_member(:limit, Shapes::ShapeRef.new(shape: Limit, required: true, location_name: "limit"))
233
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
234
+ ThrottlingException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "resourceId"))
235
+ ThrottlingException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, required: true, location_name: "resourceType"))
236
+ ThrottlingException.struct_class = Types::ThrottlingException
237
+
238
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
239
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
240
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
241
+
242
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
243
+
244
+ UpdateRoomRequest.add_member(:identifier, Shapes::ShapeRef.new(shape: RoomIdentifier, required: true, location_name: "identifier"))
245
+ UpdateRoomRequest.add_member(:maximum_message_length, Shapes::ShapeRef.new(shape: RoomMaxMessageLength, location_name: "maximumMessageLength"))
246
+ UpdateRoomRequest.add_member(:maximum_message_rate_per_second, Shapes::ShapeRef.new(shape: RoomMaxMessageRatePerSecond, location_name: "maximumMessageRatePerSecond"))
247
+ UpdateRoomRequest.add_member(:message_review_handler, Shapes::ShapeRef.new(shape: MessageReviewHandler, location_name: "messageReviewHandler"))
248
+ UpdateRoomRequest.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
249
+ UpdateRoomRequest.struct_class = Types::UpdateRoomRequest
250
+
251
+ UpdateRoomResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RoomArn, location_name: "arn"))
252
+ UpdateRoomResponse.add_member(:create_time, Shapes::ShapeRef.new(shape: Time, location_name: "createTime"))
253
+ UpdateRoomResponse.add_member(:id, Shapes::ShapeRef.new(shape: RoomID, location_name: "id"))
254
+ UpdateRoomResponse.add_member(:maximum_message_length, Shapes::ShapeRef.new(shape: RoomMaxMessageLength, location_name: "maximumMessageLength"))
255
+ UpdateRoomResponse.add_member(:maximum_message_rate_per_second, Shapes::ShapeRef.new(shape: RoomMaxMessageRatePerSecond, location_name: "maximumMessageRatePerSecond"))
256
+ UpdateRoomResponse.add_member(:message_review_handler, Shapes::ShapeRef.new(shape: MessageReviewHandler, location_name: "messageReviewHandler"))
257
+ UpdateRoomResponse.add_member(:name, Shapes::ShapeRef.new(shape: RoomName, location_name: "name"))
258
+ UpdateRoomResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
259
+ UpdateRoomResponse.add_member(:update_time, Shapes::ShapeRef.new(shape: Time, location_name: "updateTime"))
260
+ UpdateRoomResponse.struct_class = Types::UpdateRoomResponse
261
+
262
+ ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
263
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
264
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
265
+ ValidationException.struct_class = Types::ValidationException
266
+
267
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
268
+ ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: FieldName, required: true, location_name: "name"))
269
+ ValidationExceptionField.struct_class = Types::ValidationExceptionField
270
+
271
+ ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
272
+
273
+
274
+ # @api private
275
+ API = Seahorse::Model::Api.new.tap do |api|
276
+
277
+ api.version = "2020-07-14"
278
+
279
+ api.metadata = {
280
+ "apiVersion" => "2020-07-14",
281
+ "endpointPrefix" => "ivschat",
282
+ "jsonVersion" => "1.1",
283
+ "protocol" => "rest-json",
284
+ "serviceAbbreviation" => "ivschat",
285
+ "serviceFullName" => "Amazon Interactive Video Service Chat",
286
+ "serviceId" => "ivschat",
287
+ "signatureVersion" => "v4",
288
+ "signingName" => "ivschat",
289
+ "uid" => "ivschat-2020-07-14",
290
+ }
291
+
292
+ api.add_operation(:create_chat_token, Seahorse::Model::Operation.new.tap do |o|
293
+ o.name = "CreateChatToken"
294
+ o.http_method = "POST"
295
+ o.http_request_uri = "/CreateChatToken"
296
+ o.input = Shapes::ShapeRef.new(shape: CreateChatTokenRequest)
297
+ o.output = Shapes::ShapeRef.new(shape: CreateChatTokenResponse)
298
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
299
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
300
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
301
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
302
+ end)
303
+
304
+ api.add_operation(:create_room, Seahorse::Model::Operation.new.tap do |o|
305
+ o.name = "CreateRoom"
306
+ o.http_method = "POST"
307
+ o.http_request_uri = "/CreateRoom"
308
+ o.input = Shapes::ShapeRef.new(shape: CreateRoomRequest)
309
+ o.output = Shapes::ShapeRef.new(shape: CreateRoomResponse)
310
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
311
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
312
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
313
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
314
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
315
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
316
+ end)
317
+
318
+ api.add_operation(:delete_message, Seahorse::Model::Operation.new.tap do |o|
319
+ o.name = "DeleteMessage"
320
+ o.http_method = "POST"
321
+ o.http_request_uri = "/DeleteMessage"
322
+ o.input = Shapes::ShapeRef.new(shape: DeleteMessageRequest)
323
+ o.output = Shapes::ShapeRef.new(shape: DeleteMessageResponse)
324
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
325
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
326
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
327
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
328
+ end)
329
+
330
+ api.add_operation(:delete_room, Seahorse::Model::Operation.new.tap do |o|
331
+ o.name = "DeleteRoom"
332
+ o.http_method = "POST"
333
+ o.http_request_uri = "/DeleteRoom"
334
+ o.input = Shapes::ShapeRef.new(shape: DeleteRoomRequest)
335
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
336
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
337
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
338
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
339
+ end)
340
+
341
+ api.add_operation(:disconnect_user, Seahorse::Model::Operation.new.tap do |o|
342
+ o.name = "DisconnectUser"
343
+ o.http_method = "POST"
344
+ o.http_request_uri = "/DisconnectUser"
345
+ o.input = Shapes::ShapeRef.new(shape: DisconnectUserRequest)
346
+ o.output = Shapes::ShapeRef.new(shape: DisconnectUserResponse)
347
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
348
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
349
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
350
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
351
+ end)
352
+
353
+ api.add_operation(:get_room, Seahorse::Model::Operation.new.tap do |o|
354
+ o.name = "GetRoom"
355
+ o.http_method = "POST"
356
+ o.http_request_uri = "/GetRoom"
357
+ o.input = Shapes::ShapeRef.new(shape: GetRoomRequest)
358
+ o.output = Shapes::ShapeRef.new(shape: GetRoomResponse)
359
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
361
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
362
+ end)
363
+
364
+ api.add_operation(:list_rooms, Seahorse::Model::Operation.new.tap do |o|
365
+ o.name = "ListRooms"
366
+ o.http_method = "POST"
367
+ o.http_request_uri = "/ListRooms"
368
+ o.input = Shapes::ShapeRef.new(shape: ListRoomsRequest)
369
+ o.output = Shapes::ShapeRef.new(shape: ListRoomsResponse)
370
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
371
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
372
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
373
+ o[:pager] = Aws::Pager.new(
374
+ limit_key: "max_results",
375
+ tokens: {
376
+ "next_token" => "next_token"
377
+ }
378
+ )
379
+ end)
380
+
381
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
382
+ o.name = "ListTagsForResource"
383
+ o.http_method = "GET"
384
+ o.http_request_uri = "/tags/{resourceArn}"
385
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
386
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
387
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
388
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
389
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
390
+ end)
391
+
392
+ api.add_operation(:send_event, Seahorse::Model::Operation.new.tap do |o|
393
+ o.name = "SendEvent"
394
+ o.http_method = "POST"
395
+ o.http_request_uri = "/SendEvent"
396
+ o.input = Shapes::ShapeRef.new(shape: SendEventRequest)
397
+ o.output = Shapes::ShapeRef.new(shape: SendEventResponse)
398
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
399
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
400
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
402
+ end)
403
+
404
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
405
+ o.name = "TagResource"
406
+ o.http_method = "POST"
407
+ o.http_request_uri = "/tags/{resourceArn}"
408
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
409
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
410
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
411
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
413
+ end)
414
+
415
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
416
+ o.name = "UntagResource"
417
+ o.http_method = "DELETE"
418
+ o.http_request_uri = "/tags/{resourceArn}"
419
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
420
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
421
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
422
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
423
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
424
+ end)
425
+
426
+ api.add_operation(:update_room, Seahorse::Model::Operation.new.tap do |o|
427
+ o.name = "UpdateRoom"
428
+ o.http_method = "POST"
429
+ o.http_request_uri = "/UpdateRoom"
430
+ o.input = Shapes::ShapeRef.new(shape: UpdateRoomRequest)
431
+ o.output = Shapes::ShapeRef.new(shape: UpdateRoomResponse)
432
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
433
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
434
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
435
+ end)
436
+ end
437
+
438
+ end
439
+ end
File without changes
@@ -0,0 +1,226 @@
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::Ivschat
11
+
12
+ # When Ivschat returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Ivschat::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Ivschat errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Ivschat::Errors::ServiceError
20
+ # # rescues all Ivschat 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
+ # * {PendingVerification}
34
+ # * {ResourceNotFoundException}
35
+ # * {ServiceQuotaExceededException}
36
+ # * {ThrottlingException}
37
+ # * {ValidationException}
38
+ #
39
+ # Additionally, error classes are dynamically generated for service errors based on the error code
40
+ # if they are not defined above.
41
+ module Errors
42
+
43
+ extend Aws::Errors::DynamicErrors
44
+
45
+ class AccessDeniedException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::Ivschat::Types::AccessDeniedException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+ end
59
+
60
+ class ConflictException < ServiceError
61
+
62
+ # @param [Seahorse::Client::RequestContext] context
63
+ # @param [String] message
64
+ # @param [Aws::Ivschat::Types::ConflictException] data
65
+ def initialize(context, message, data = Aws::EmptyStructure.new)
66
+ super(context, message, data)
67
+ end
68
+
69
+ # @return [String]
70
+ def message
71
+ @message || @data[:message]
72
+ end
73
+
74
+ # @return [String]
75
+ def resource_id
76
+ @data[:resource_id]
77
+ end
78
+
79
+ # @return [String]
80
+ def resource_type
81
+ @data[:resource_type]
82
+ end
83
+ end
84
+
85
+ class InternalServerException < ServiceError
86
+
87
+ # @param [Seahorse::Client::RequestContext] context
88
+ # @param [String] message
89
+ # @param [Aws::Ivschat::Types::InternalServerException] data
90
+ def initialize(context, message, data = Aws::EmptyStructure.new)
91
+ super(context, message, data)
92
+ end
93
+
94
+ # @return [String]
95
+ def message
96
+ @message || @data[:message]
97
+ end
98
+ end
99
+
100
+ class PendingVerification < ServiceError
101
+
102
+ # @param [Seahorse::Client::RequestContext] context
103
+ # @param [String] message
104
+ # @param [Aws::Ivschat::Types::PendingVerification] data
105
+ def initialize(context, message, data = Aws::EmptyStructure.new)
106
+ super(context, message, data)
107
+ end
108
+
109
+ # @return [String]
110
+ def message
111
+ @message || @data[:message]
112
+ end
113
+ end
114
+
115
+ class ResourceNotFoundException < ServiceError
116
+
117
+ # @param [Seahorse::Client::RequestContext] context
118
+ # @param [String] message
119
+ # @param [Aws::Ivschat::Types::ResourceNotFoundException] data
120
+ def initialize(context, message, data = Aws::EmptyStructure.new)
121
+ super(context, message, data)
122
+ end
123
+
124
+ # @return [String]
125
+ def message
126
+ @message || @data[:message]
127
+ end
128
+
129
+ # @return [String]
130
+ def resource_id
131
+ @data[:resource_id]
132
+ end
133
+
134
+ # @return [String]
135
+ def resource_type
136
+ @data[:resource_type]
137
+ end
138
+ end
139
+
140
+ class ServiceQuotaExceededException < ServiceError
141
+
142
+ # @param [Seahorse::Client::RequestContext] context
143
+ # @param [String] message
144
+ # @param [Aws::Ivschat::Types::ServiceQuotaExceededException] data
145
+ def initialize(context, message, data = Aws::EmptyStructure.new)
146
+ super(context, message, data)
147
+ end
148
+
149
+ # @return [String]
150
+ def limit
151
+ @data[:limit]
152
+ end
153
+
154
+ # @return [String]
155
+ def message
156
+ @message || @data[:message]
157
+ end
158
+
159
+ # @return [String]
160
+ def resource_id
161
+ @data[:resource_id]
162
+ end
163
+
164
+ # @return [String]
165
+ def resource_type
166
+ @data[:resource_type]
167
+ end
168
+ end
169
+
170
+ class ThrottlingException < ServiceError
171
+
172
+ # @param [Seahorse::Client::RequestContext] context
173
+ # @param [String] message
174
+ # @param [Aws::Ivschat::Types::ThrottlingException] data
175
+ def initialize(context, message, data = Aws::EmptyStructure.new)
176
+ super(context, message, data)
177
+ end
178
+
179
+ # @return [String]
180
+ def limit
181
+ @data[:limit]
182
+ end
183
+
184
+ # @return [String]
185
+ def message
186
+ @message || @data[:message]
187
+ end
188
+
189
+ # @return [String]
190
+ def resource_id
191
+ @data[:resource_id]
192
+ end
193
+
194
+ # @return [String]
195
+ def resource_type
196
+ @data[:resource_type]
197
+ end
198
+ end
199
+
200
+ class ValidationException < ServiceError
201
+
202
+ # @param [Seahorse::Client::RequestContext] context
203
+ # @param [String] message
204
+ # @param [Aws::Ivschat::Types::ValidationException] data
205
+ def initialize(context, message, data = Aws::EmptyStructure.new)
206
+ super(context, message, data)
207
+ end
208
+
209
+ # @return [String]
210
+ def field_list
211
+ @data[:field_list]
212
+ end
213
+
214
+ # @return [String]
215
+ def message
216
+ @message || @data[:message]
217
+ end
218
+
219
+ # @return [String]
220
+ def reason
221
+ @data[:reason]
222
+ end
223
+ end
224
+
225
+ end
226
+ end