aws-sdk-ivsrealtime 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,351 @@
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::IVSRealTime
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
18
+ CreateParticipantTokenRequest = Shapes::StructureShape.new(name: 'CreateParticipantTokenRequest')
19
+ CreateParticipantTokenResponse = Shapes::StructureShape.new(name: 'CreateParticipantTokenResponse')
20
+ CreateStageRequest = Shapes::StructureShape.new(name: 'CreateStageRequest')
21
+ CreateStageResponse = Shapes::StructureShape.new(name: 'CreateStageResponse')
22
+ DeleteStageRequest = Shapes::StructureShape.new(name: 'DeleteStageRequest')
23
+ DeleteStageResponse = Shapes::StructureShape.new(name: 'DeleteStageResponse')
24
+ DisconnectParticipantReason = Shapes::StringShape.new(name: 'DisconnectParticipantReason')
25
+ DisconnectParticipantRequest = Shapes::StructureShape.new(name: 'DisconnectParticipantRequest')
26
+ DisconnectParticipantResponse = Shapes::StructureShape.new(name: 'DisconnectParticipantResponse')
27
+ GetStageRequest = Shapes::StructureShape.new(name: 'GetStageRequest')
28
+ GetStageResponse = Shapes::StructureShape.new(name: 'GetStageResponse')
29
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
30
+ ListStagesRequest = Shapes::StructureShape.new(name: 'ListStagesRequest')
31
+ ListStagesResponse = Shapes::StructureShape.new(name: 'ListStagesResponse')
32
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
33
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
34
+ MaxStageResults = Shapes::IntegerShape.new(name: 'MaxStageResults')
35
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
36
+ ParticipantToken = Shapes::StructureShape.new(name: 'ParticipantToken')
37
+ ParticipantTokenAttributes = Shapes::MapShape.new(name: 'ParticipantTokenAttributes')
38
+ ParticipantTokenCapabilities = Shapes::ListShape.new(name: 'ParticipantTokenCapabilities')
39
+ ParticipantTokenCapability = Shapes::StringShape.new(name: 'ParticipantTokenCapability')
40
+ ParticipantTokenConfiguration = Shapes::StructureShape.new(name: 'ParticipantTokenConfiguration')
41
+ ParticipantTokenConfigurations = Shapes::ListShape.new(name: 'ParticipantTokenConfigurations')
42
+ ParticipantTokenDurationMinutes = Shapes::IntegerShape.new(name: 'ParticipantTokenDurationMinutes')
43
+ ParticipantTokenExpirationTime = Shapes::TimestampShape.new(name: 'ParticipantTokenExpirationTime')
44
+ ParticipantTokenId = Shapes::StringShape.new(name: 'ParticipantTokenId')
45
+ ParticipantTokenList = Shapes::ListShape.new(name: 'ParticipantTokenList')
46
+ ParticipantTokenString = Shapes::StringShape.new(name: 'ParticipantTokenString')
47
+ ParticipantTokenUserId = Shapes::StringShape.new(name: 'ParticipantTokenUserId')
48
+ PendingVerification = Shapes::StructureShape.new(name: 'PendingVerification')
49
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
50
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
51
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
52
+ Stage = Shapes::StructureShape.new(name: 'Stage')
53
+ StageArn = Shapes::StringShape.new(name: 'StageArn')
54
+ StageName = Shapes::StringShape.new(name: 'StageName')
55
+ StageSessionId = Shapes::StringShape.new(name: 'StageSessionId')
56
+ StageSummary = Shapes::StructureShape.new(name: 'StageSummary')
57
+ StageSummaryList = Shapes::ListShape.new(name: 'StageSummaryList')
58
+ String = Shapes::StringShape.new(name: 'String')
59
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
60
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
61
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
62
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
63
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
64
+ Tags = Shapes::MapShape.new(name: 'Tags')
65
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
66
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
67
+ UpdateStageRequest = Shapes::StructureShape.new(name: 'UpdateStageRequest')
68
+ UpdateStageResponse = Shapes::StructureShape.new(name: 'UpdateStageResponse')
69
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
70
+ errorMessage = Shapes::StringShape.new(name: 'errorMessage')
71
+
72
+ AccessDeniedException.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
73
+ AccessDeniedException.struct_class = Types::AccessDeniedException
74
+
75
+ ConflictException.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
76
+ ConflictException.struct_class = Types::ConflictException
77
+
78
+ CreateParticipantTokenRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: ParticipantTokenAttributes, location_name: "attributes"))
79
+ CreateParticipantTokenRequest.add_member(:capabilities, Shapes::ShapeRef.new(shape: ParticipantTokenCapabilities, location_name: "capabilities"))
80
+ CreateParticipantTokenRequest.add_member(:duration, Shapes::ShapeRef.new(shape: ParticipantTokenDurationMinutes, location_name: "duration"))
81
+ CreateParticipantTokenRequest.add_member(:stage_arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "stageArn"))
82
+ CreateParticipantTokenRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: ParticipantTokenUserId, location_name: "userId"))
83
+ CreateParticipantTokenRequest.struct_class = Types::CreateParticipantTokenRequest
84
+
85
+ CreateParticipantTokenResponse.add_member(:participant_token, Shapes::ShapeRef.new(shape: ParticipantToken, location_name: "participantToken"))
86
+ CreateParticipantTokenResponse.struct_class = Types::CreateParticipantTokenResponse
87
+
88
+ CreateStageRequest.add_member(:name, Shapes::ShapeRef.new(shape: StageName, location_name: "name"))
89
+ CreateStageRequest.add_member(:participant_token_configurations, Shapes::ShapeRef.new(shape: ParticipantTokenConfigurations, location_name: "participantTokenConfigurations"))
90
+ CreateStageRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
91
+ CreateStageRequest.struct_class = Types::CreateStageRequest
92
+
93
+ CreateStageResponse.add_member(:participant_tokens, Shapes::ShapeRef.new(shape: ParticipantTokenList, location_name: "participantTokens"))
94
+ CreateStageResponse.add_member(:stage, Shapes::ShapeRef.new(shape: Stage, location_name: "stage"))
95
+ CreateStageResponse.struct_class = Types::CreateStageResponse
96
+
97
+ DeleteStageRequest.add_member(:arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "arn"))
98
+ DeleteStageRequest.struct_class = Types::DeleteStageRequest
99
+
100
+ DeleteStageResponse.struct_class = Types::DeleteStageResponse
101
+
102
+ DisconnectParticipantRequest.add_member(:participant_id, Shapes::ShapeRef.new(shape: ParticipantTokenId, required: true, location_name: "participantId"))
103
+ DisconnectParticipantRequest.add_member(:reason, Shapes::ShapeRef.new(shape: DisconnectParticipantReason, location_name: "reason"))
104
+ DisconnectParticipantRequest.add_member(:stage_arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "stageArn"))
105
+ DisconnectParticipantRequest.struct_class = Types::DisconnectParticipantRequest
106
+
107
+ DisconnectParticipantResponse.struct_class = Types::DisconnectParticipantResponse
108
+
109
+ GetStageRequest.add_member(:arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "arn"))
110
+ GetStageRequest.struct_class = Types::GetStageRequest
111
+
112
+ GetStageResponse.add_member(:stage, Shapes::ShapeRef.new(shape: Stage, location_name: "stage"))
113
+ GetStageResponse.struct_class = Types::GetStageResponse
114
+
115
+ InternalServerException.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
116
+ InternalServerException.struct_class = Types::InternalServerException
117
+
118
+ ListStagesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxStageResults, location_name: "maxResults"))
119
+ ListStagesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
120
+ ListStagesRequest.struct_class = Types::ListStagesRequest
121
+
122
+ ListStagesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
123
+ ListStagesResponse.add_member(:stages, Shapes::ShapeRef.new(shape: StageSummaryList, required: true, location_name: "stages"))
124
+ ListStagesResponse.struct_class = Types::ListStagesResponse
125
+
126
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
127
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
128
+
129
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
130
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
131
+
132
+ ParticipantToken.add_member(:attributes, Shapes::ShapeRef.new(shape: ParticipantTokenAttributes, location_name: "attributes"))
133
+ ParticipantToken.add_member(:capabilities, Shapes::ShapeRef.new(shape: ParticipantTokenCapabilities, location_name: "capabilities"))
134
+ ParticipantToken.add_member(:duration, Shapes::ShapeRef.new(shape: ParticipantTokenDurationMinutes, location_name: "duration"))
135
+ ParticipantToken.add_member(:expiration_time, Shapes::ShapeRef.new(shape: ParticipantTokenExpirationTime, location_name: "expirationTime"))
136
+ ParticipantToken.add_member(:participant_id, Shapes::ShapeRef.new(shape: ParticipantTokenId, location_name: "participantId"))
137
+ ParticipantToken.add_member(:token, Shapes::ShapeRef.new(shape: ParticipantTokenString, location_name: "token"))
138
+ ParticipantToken.add_member(:user_id, Shapes::ShapeRef.new(shape: ParticipantTokenUserId, location_name: "userId"))
139
+ ParticipantToken.struct_class = Types::ParticipantToken
140
+
141
+ ParticipantTokenAttributes.key = Shapes::ShapeRef.new(shape: String)
142
+ ParticipantTokenAttributes.value = Shapes::ShapeRef.new(shape: String)
143
+
144
+ ParticipantTokenCapabilities.member = Shapes::ShapeRef.new(shape: ParticipantTokenCapability)
145
+
146
+ ParticipantTokenConfiguration.add_member(:attributes, Shapes::ShapeRef.new(shape: ParticipantTokenAttributes, location_name: "attributes"))
147
+ ParticipantTokenConfiguration.add_member(:capabilities, Shapes::ShapeRef.new(shape: ParticipantTokenCapabilities, location_name: "capabilities"))
148
+ ParticipantTokenConfiguration.add_member(:duration, Shapes::ShapeRef.new(shape: ParticipantTokenDurationMinutes, location_name: "duration"))
149
+ ParticipantTokenConfiguration.add_member(:user_id, Shapes::ShapeRef.new(shape: ParticipantTokenUserId, location_name: "userId"))
150
+ ParticipantTokenConfiguration.struct_class = Types::ParticipantTokenConfiguration
151
+
152
+ ParticipantTokenConfigurations.member = Shapes::ShapeRef.new(shape: ParticipantTokenConfiguration)
153
+
154
+ ParticipantTokenList.member = Shapes::ShapeRef.new(shape: ParticipantToken)
155
+
156
+ PendingVerification.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
157
+ PendingVerification.struct_class = Types::PendingVerification
158
+
159
+ ResourceNotFoundException.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
160
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
161
+
162
+ ServiceQuotaExceededException.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
163
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
164
+
165
+ Stage.add_member(:active_session_id, Shapes::ShapeRef.new(shape: StageSessionId, location_name: "activeSessionId"))
166
+ Stage.add_member(:arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "arn"))
167
+ Stage.add_member(:name, Shapes::ShapeRef.new(shape: StageName, location_name: "name"))
168
+ Stage.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
169
+ Stage.struct_class = Types::Stage
170
+
171
+ StageSummary.add_member(:active_session_id, Shapes::ShapeRef.new(shape: StageSessionId, location_name: "activeSessionId"))
172
+ StageSummary.add_member(:arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "arn"))
173
+ StageSummary.add_member(:name, Shapes::ShapeRef.new(shape: StageName, location_name: "name"))
174
+ StageSummary.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
175
+ StageSummary.struct_class = Types::StageSummary
176
+
177
+ StageSummaryList.member = Shapes::ShapeRef.new(shape: StageSummary)
178
+
179
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
180
+
181
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
182
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
183
+ TagResourceRequest.struct_class = Types::TagResourceRequest
184
+
185
+ TagResourceResponse.struct_class = Types::TagResourceResponse
186
+
187
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
188
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
189
+
190
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
191
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
192
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
193
+
194
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
195
+
196
+ UpdateStageRequest.add_member(:arn, Shapes::ShapeRef.new(shape: StageArn, required: true, location_name: "arn"))
197
+ UpdateStageRequest.add_member(:name, Shapes::ShapeRef.new(shape: StageName, location_name: "name"))
198
+ UpdateStageRequest.struct_class = Types::UpdateStageRequest
199
+
200
+ UpdateStageResponse.add_member(:stage, Shapes::ShapeRef.new(shape: Stage, location_name: "stage"))
201
+ UpdateStageResponse.struct_class = Types::UpdateStageResponse
202
+
203
+ ValidationException.add_member(:exception_message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "exceptionMessage"))
204
+ ValidationException.struct_class = Types::ValidationException
205
+
206
+
207
+ # @api private
208
+ API = Seahorse::Model::Api.new.tap do |api|
209
+
210
+ api.version = "2020-07-14"
211
+
212
+ api.metadata = {
213
+ "apiVersion" => "2020-07-14",
214
+ "endpointPrefix" => "ivsrealtime",
215
+ "jsonVersion" => "1.1",
216
+ "protocol" => "rest-json",
217
+ "serviceAbbreviation" => "ivsrealtime",
218
+ "serviceFullName" => "Amazon Interactive Video Service RealTime",
219
+ "serviceId" => "IVS RealTime",
220
+ "signatureVersion" => "v4",
221
+ "signingName" => "ivs",
222
+ "uid" => "ivs-realtime-2020-07-14",
223
+ }
224
+
225
+ api.add_operation(:create_participant_token, Seahorse::Model::Operation.new.tap do |o|
226
+ o.name = "CreateParticipantToken"
227
+ o.http_method = "POST"
228
+ o.http_request_uri = "/CreateParticipantToken"
229
+ o.input = Shapes::ShapeRef.new(shape: CreateParticipantTokenRequest)
230
+ o.output = Shapes::ShapeRef.new(shape: CreateParticipantTokenResponse)
231
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
232
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
233
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
234
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
235
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
236
+ end)
237
+
238
+ api.add_operation(:create_stage, Seahorse::Model::Operation.new.tap do |o|
239
+ o.name = "CreateStage"
240
+ o.http_method = "POST"
241
+ o.http_request_uri = "/CreateStage"
242
+ o.input = Shapes::ShapeRef.new(shape: CreateStageRequest)
243
+ o.output = Shapes::ShapeRef.new(shape: CreateStageResponse)
244
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
245
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
246
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
247
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
248
+ end)
249
+
250
+ api.add_operation(:delete_stage, Seahorse::Model::Operation.new.tap do |o|
251
+ o.name = "DeleteStage"
252
+ o.http_method = "POST"
253
+ o.http_request_uri = "/DeleteStage"
254
+ o.input = Shapes::ShapeRef.new(shape: DeleteStageRequest)
255
+ o.output = Shapes::ShapeRef.new(shape: DeleteStageResponse)
256
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
257
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
258
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
259
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
260
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
261
+ end)
262
+
263
+ api.add_operation(:disconnect_participant, Seahorse::Model::Operation.new.tap do |o|
264
+ o.name = "DisconnectParticipant"
265
+ o.http_method = "POST"
266
+ o.http_request_uri = "/DisconnectParticipant"
267
+ o.input = Shapes::ShapeRef.new(shape: DisconnectParticipantRequest)
268
+ o.output = Shapes::ShapeRef.new(shape: DisconnectParticipantResponse)
269
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
270
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
271
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
272
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
273
+ end)
274
+
275
+ api.add_operation(:get_stage, Seahorse::Model::Operation.new.tap do |o|
276
+ o.name = "GetStage"
277
+ o.http_method = "POST"
278
+ o.http_request_uri = "/GetStage"
279
+ o.input = Shapes::ShapeRef.new(shape: GetStageRequest)
280
+ o.output = Shapes::ShapeRef.new(shape: GetStageResponse)
281
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
282
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
283
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
284
+ end)
285
+
286
+ api.add_operation(:list_stages, Seahorse::Model::Operation.new.tap do |o|
287
+ o.name = "ListStages"
288
+ o.http_method = "POST"
289
+ o.http_request_uri = "/ListStages"
290
+ o.input = Shapes::ShapeRef.new(shape: ListStagesRequest)
291
+ o.output = Shapes::ShapeRef.new(shape: ListStagesResponse)
292
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
293
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
294
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
295
+ o[:pager] = Aws::Pager.new(
296
+ limit_key: "max_results",
297
+ tokens: {
298
+ "next_token" => "next_token"
299
+ }
300
+ )
301
+ end)
302
+
303
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
304
+ o.name = "ListTagsForResource"
305
+ o.http_method = "GET"
306
+ o.http_request_uri = "/tags/{resourceArn}"
307
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
308
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
309
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
310
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
311
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
312
+ end)
313
+
314
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
315
+ o.name = "TagResource"
316
+ o.http_method = "POST"
317
+ o.http_request_uri = "/tags/{resourceArn}"
318
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
319
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
320
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
321
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
322
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
323
+ end)
324
+
325
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
326
+ o.name = "UntagResource"
327
+ o.http_method = "DELETE"
328
+ o.http_request_uri = "/tags/{resourceArn}"
329
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
330
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
331
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
332
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
333
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
334
+ end)
335
+
336
+ api.add_operation(:update_stage, Seahorse::Model::Operation.new.tap do |o|
337
+ o.name = "UpdateStage"
338
+ o.http_method = "POST"
339
+ o.http_request_uri = "/UpdateStage"
340
+ o.input = Shapes::ShapeRef.new(shape: UpdateStageRequest)
341
+ o.output = Shapes::ShapeRef.new(shape: UpdateStageResponse)
342
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
343
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
344
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
345
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
346
+ o.errors << Shapes::ShapeRef.new(shape: PendingVerification)
347
+ end)
348
+ end
349
+
350
+ end
351
+ end
File without changes
@@ -0,0 +1,66 @@
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::IVSRealTime
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
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::IVSRealTime
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://ivsrealtime-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://ivsrealtime-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://ivsrealtime.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://ivsrealtime.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,155 @@
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
+
11
+ module Aws::IVSRealTime
12
+ module Endpoints
13
+
14
+ class CreateParticipantToken
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::IVSRealTime::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateStage
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::IVSRealTime::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DeleteStage
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::IVSRealTime::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DisconnectParticipant
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::IVSRealTime::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class GetStage
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::IVSRealTime::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class ListStages
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::IVSRealTime::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ListTagsForResource
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::IVSRealTime::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class TagResource
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::IVSRealTime::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class UntagResource
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::IVSRealTime::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class UpdateStage
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::IVSRealTime::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ end
155
+ end