aws-sdk-chimesdkmediapipelines 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,345 @@
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::ChimeSDKMediaPipelines
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
17
+ Arn = Shapes::StringShape.new(name: 'Arn')
18
+ ArtifactsConfiguration = Shapes::StructureShape.new(name: 'ArtifactsConfiguration')
19
+ ArtifactsState = Shapes::StringShape.new(name: 'ArtifactsState')
20
+ AttendeeIdList = Shapes::ListShape.new(name: 'AttendeeIdList')
21
+ AudioArtifactsConfiguration = Shapes::StructureShape.new(name: 'AudioArtifactsConfiguration')
22
+ AudioMuxType = Shapes::StringShape.new(name: 'AudioMuxType')
23
+ BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
24
+ ChimeSdkMeetingConfiguration = Shapes::StructureShape.new(name: 'ChimeSdkMeetingConfiguration')
25
+ ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
26
+ ContentArtifactsConfiguration = Shapes::StructureShape.new(name: 'ContentArtifactsConfiguration')
27
+ ContentMuxType = Shapes::StringShape.new(name: 'ContentMuxType')
28
+ CreateMediaCapturePipelineRequest = Shapes::StructureShape.new(name: 'CreateMediaCapturePipelineRequest')
29
+ CreateMediaCapturePipelineResponse = Shapes::StructureShape.new(name: 'CreateMediaCapturePipelineResponse')
30
+ DeleteMediaCapturePipelineRequest = Shapes::StructureShape.new(name: 'DeleteMediaCapturePipelineRequest')
31
+ ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
32
+ ExternalUserIdList = Shapes::ListShape.new(name: 'ExternalUserIdList')
33
+ ExternalUserIdType = Shapes::StringShape.new(name: 'ExternalUserIdType')
34
+ ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
35
+ GetMediaCapturePipelineRequest = Shapes::StructureShape.new(name: 'GetMediaCapturePipelineRequest')
36
+ GetMediaCapturePipelineResponse = Shapes::StructureShape.new(name: 'GetMediaCapturePipelineResponse')
37
+ GuidString = Shapes::StringShape.new(name: 'GuidString')
38
+ Iso8601Timestamp = Shapes::TimestampShape.new(name: 'Iso8601Timestamp', timestampFormat: "iso8601")
39
+ ListMediaCapturePipelinesRequest = Shapes::StructureShape.new(name: 'ListMediaCapturePipelinesRequest')
40
+ ListMediaCapturePipelinesResponse = Shapes::StructureShape.new(name: 'ListMediaCapturePipelinesResponse')
41
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
42
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
43
+ MediaCapturePipeline = Shapes::StructureShape.new(name: 'MediaCapturePipeline')
44
+ MediaCapturePipelineSummary = Shapes::StructureShape.new(name: 'MediaCapturePipelineSummary')
45
+ MediaCapturePipelineSummaryList = Shapes::ListShape.new(name: 'MediaCapturePipelineSummaryList')
46
+ MediaPipelineSinkType = Shapes::StringShape.new(name: 'MediaPipelineSinkType')
47
+ MediaPipelineSourceType = Shapes::StringShape.new(name: 'MediaPipelineSourceType')
48
+ MediaPipelineStatus = Shapes::StringShape.new(name: 'MediaPipelineStatus')
49
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
50
+ ResourceLimitExceededException = Shapes::StructureShape.new(name: 'ResourceLimitExceededException')
51
+ ResultMax = Shapes::IntegerShape.new(name: 'ResultMax')
52
+ SelectedVideoStreams = Shapes::StructureShape.new(name: 'SelectedVideoStreams')
53
+ ServiceFailureException = Shapes::StructureShape.new(name: 'ServiceFailureException')
54
+ ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
55
+ SourceConfiguration = Shapes::StructureShape.new(name: 'SourceConfiguration')
56
+ String = Shapes::StringShape.new(name: 'String')
57
+ Tag = Shapes::StructureShape.new(name: 'Tag')
58
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
59
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
60
+ TagList = Shapes::ListShape.new(name: 'TagList')
61
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
62
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
63
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
64
+ ThrottledClientException = Shapes::StructureShape.new(name: 'ThrottledClientException')
65
+ UnauthorizedClientException = Shapes::StructureShape.new(name: 'UnauthorizedClientException')
66
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
67
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
68
+ VideoArtifactsConfiguration = Shapes::StructureShape.new(name: 'VideoArtifactsConfiguration')
69
+ VideoMuxType = Shapes::StringShape.new(name: 'VideoMuxType')
70
+
71
+ ArtifactsConfiguration.add_member(:audio, Shapes::ShapeRef.new(shape: AudioArtifactsConfiguration, required: true, location_name: "Audio"))
72
+ ArtifactsConfiguration.add_member(:video, Shapes::ShapeRef.new(shape: VideoArtifactsConfiguration, required: true, location_name: "Video"))
73
+ ArtifactsConfiguration.add_member(:content, Shapes::ShapeRef.new(shape: ContentArtifactsConfiguration, required: true, location_name: "Content"))
74
+ ArtifactsConfiguration.struct_class = Types::ArtifactsConfiguration
75
+
76
+ AttendeeIdList.member = Shapes::ShapeRef.new(shape: GuidString)
77
+
78
+ AudioArtifactsConfiguration.add_member(:mux_type, Shapes::ShapeRef.new(shape: AudioMuxType, required: true, location_name: "MuxType"))
79
+ AudioArtifactsConfiguration.struct_class = Types::AudioArtifactsConfiguration
80
+
81
+ BadRequestException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
82
+ BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
83
+ BadRequestException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
84
+ BadRequestException.struct_class = Types::BadRequestException
85
+
86
+ ChimeSdkMeetingConfiguration.add_member(:source_configuration, Shapes::ShapeRef.new(shape: SourceConfiguration, location_name: "SourceConfiguration"))
87
+ ChimeSdkMeetingConfiguration.add_member(:artifacts_configuration, Shapes::ShapeRef.new(shape: ArtifactsConfiguration, location_name: "ArtifactsConfiguration"))
88
+ ChimeSdkMeetingConfiguration.struct_class = Types::ChimeSdkMeetingConfiguration
89
+
90
+ ContentArtifactsConfiguration.add_member(:state, Shapes::ShapeRef.new(shape: ArtifactsState, required: true, location_name: "State"))
91
+ ContentArtifactsConfiguration.add_member(:mux_type, Shapes::ShapeRef.new(shape: ContentMuxType, location_name: "MuxType"))
92
+ ContentArtifactsConfiguration.struct_class = Types::ContentArtifactsConfiguration
93
+
94
+ CreateMediaCapturePipelineRequest.add_member(:source_type, Shapes::ShapeRef.new(shape: MediaPipelineSourceType, required: true, location_name: "SourceType"))
95
+ CreateMediaCapturePipelineRequest.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "SourceArn"))
96
+ CreateMediaCapturePipelineRequest.add_member(:sink_type, Shapes::ShapeRef.new(shape: MediaPipelineSinkType, required: true, location_name: "SinkType"))
97
+ CreateMediaCapturePipelineRequest.add_member(:sink_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "SinkArn"))
98
+ CreateMediaCapturePipelineRequest.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
99
+ CreateMediaCapturePipelineRequest.add_member(:chime_sdk_meeting_configuration, Shapes::ShapeRef.new(shape: ChimeSdkMeetingConfiguration, location_name: "ChimeSdkMeetingConfiguration"))
100
+ CreateMediaCapturePipelineRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
101
+ CreateMediaCapturePipelineRequest.struct_class = Types::CreateMediaCapturePipelineRequest
102
+
103
+ CreateMediaCapturePipelineResponse.add_member(:media_capture_pipeline, Shapes::ShapeRef.new(shape: MediaCapturePipeline, location_name: "MediaCapturePipeline"))
104
+ CreateMediaCapturePipelineResponse.struct_class = Types::CreateMediaCapturePipelineResponse
105
+
106
+ DeleteMediaCapturePipelineRequest.add_member(:media_pipeline_id, Shapes::ShapeRef.new(shape: GuidString, required: true, location: "uri", location_name: "mediaPipelineId"))
107
+ DeleteMediaCapturePipelineRequest.struct_class = Types::DeleteMediaCapturePipelineRequest
108
+
109
+ ExternalUserIdList.member = Shapes::ShapeRef.new(shape: ExternalUserIdType)
110
+
111
+ ForbiddenException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
112
+ ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
113
+ ForbiddenException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
114
+ ForbiddenException.struct_class = Types::ForbiddenException
115
+
116
+ GetMediaCapturePipelineRequest.add_member(:media_pipeline_id, Shapes::ShapeRef.new(shape: GuidString, required: true, location: "uri", location_name: "mediaPipelineId"))
117
+ GetMediaCapturePipelineRequest.struct_class = Types::GetMediaCapturePipelineRequest
118
+
119
+ GetMediaCapturePipelineResponse.add_member(:media_capture_pipeline, Shapes::ShapeRef.new(shape: MediaCapturePipeline, location_name: "MediaCapturePipeline"))
120
+ GetMediaCapturePipelineResponse.struct_class = Types::GetMediaCapturePipelineResponse
121
+
122
+ ListMediaCapturePipelinesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "next-token"))
123
+ ListMediaCapturePipelinesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ResultMax, location: "querystring", location_name: "max-results"))
124
+ ListMediaCapturePipelinesRequest.struct_class = Types::ListMediaCapturePipelinesRequest
125
+
126
+ ListMediaCapturePipelinesResponse.add_member(:media_capture_pipelines, Shapes::ShapeRef.new(shape: MediaCapturePipelineSummaryList, location_name: "MediaCapturePipelines"))
127
+ ListMediaCapturePipelinesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
128
+ ListMediaCapturePipelinesResponse.struct_class = Types::ListMediaCapturePipelinesResponse
129
+
130
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location: "querystring", location_name: "arn"))
131
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
132
+
133
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
134
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
135
+
136
+ MediaCapturePipeline.add_member(:media_pipeline_id, Shapes::ShapeRef.new(shape: GuidString, location_name: "MediaPipelineId"))
137
+ MediaCapturePipeline.add_member(:media_pipeline_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "MediaPipelineArn"))
138
+ MediaCapturePipeline.add_member(:source_type, Shapes::ShapeRef.new(shape: MediaPipelineSourceType, location_name: "SourceType"))
139
+ MediaCapturePipeline.add_member(:source_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SourceArn"))
140
+ MediaCapturePipeline.add_member(:status, Shapes::ShapeRef.new(shape: MediaPipelineStatus, location_name: "Status"))
141
+ MediaCapturePipeline.add_member(:sink_type, Shapes::ShapeRef.new(shape: MediaPipelineSinkType, location_name: "SinkType"))
142
+ MediaCapturePipeline.add_member(:sink_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "SinkArn"))
143
+ MediaCapturePipeline.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "CreatedTimestamp"))
144
+ MediaCapturePipeline.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Iso8601Timestamp, location_name: "UpdatedTimestamp"))
145
+ MediaCapturePipeline.add_member(:chime_sdk_meeting_configuration, Shapes::ShapeRef.new(shape: ChimeSdkMeetingConfiguration, location_name: "ChimeSdkMeetingConfiguration"))
146
+ MediaCapturePipeline.struct_class = Types::MediaCapturePipeline
147
+
148
+ MediaCapturePipelineSummary.add_member(:media_pipeline_id, Shapes::ShapeRef.new(shape: GuidString, location_name: "MediaPipelineId"))
149
+ MediaCapturePipelineSummary.add_member(:media_pipeline_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "MediaPipelineArn"))
150
+ MediaCapturePipelineSummary.struct_class = Types::MediaCapturePipelineSummary
151
+
152
+ MediaCapturePipelineSummaryList.member = Shapes::ShapeRef.new(shape: MediaCapturePipelineSummary)
153
+
154
+ NotFoundException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
155
+ NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
156
+ NotFoundException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
157
+ NotFoundException.struct_class = Types::NotFoundException
158
+
159
+ ResourceLimitExceededException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
160
+ ResourceLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
161
+ ResourceLimitExceededException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
162
+ ResourceLimitExceededException.struct_class = Types::ResourceLimitExceededException
163
+
164
+ SelectedVideoStreams.add_member(:attendee_ids, Shapes::ShapeRef.new(shape: AttendeeIdList, location_name: "AttendeeIds"))
165
+ SelectedVideoStreams.add_member(:external_user_ids, Shapes::ShapeRef.new(shape: ExternalUserIdList, location_name: "ExternalUserIds"))
166
+ SelectedVideoStreams.struct_class = Types::SelectedVideoStreams
167
+
168
+ ServiceFailureException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
169
+ ServiceFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
170
+ ServiceFailureException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
171
+ ServiceFailureException.struct_class = Types::ServiceFailureException
172
+
173
+ ServiceUnavailableException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
174
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
175
+ ServiceUnavailableException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
176
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
177
+
178
+ SourceConfiguration.add_member(:selected_video_streams, Shapes::ShapeRef.new(shape: SelectedVideoStreams, location_name: "SelectedVideoStreams"))
179
+ SourceConfiguration.struct_class = Types::SourceConfiguration
180
+
181
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
182
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
183
+ Tag.struct_class = Types::Tag
184
+
185
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
186
+
187
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
188
+
189
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
190
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
191
+ TagResourceRequest.struct_class = Types::TagResourceRequest
192
+
193
+ TagResourceResponse.struct_class = Types::TagResourceResponse
194
+
195
+ ThrottledClientException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
196
+ ThrottledClientException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
197
+ ThrottledClientException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
198
+ ThrottledClientException.struct_class = Types::ThrottledClientException
199
+
200
+ UnauthorizedClientException.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "Code"))
201
+ UnauthorizedClientException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
202
+ UnauthorizedClientException.add_member(:request_id, Shapes::ShapeRef.new(shape: String, location_name: "RequestId"))
203
+ UnauthorizedClientException.struct_class = Types::UnauthorizedClientException
204
+
205
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
206
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
207
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
208
+
209
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
210
+
211
+ VideoArtifactsConfiguration.add_member(:state, Shapes::ShapeRef.new(shape: ArtifactsState, required: true, location_name: "State"))
212
+ VideoArtifactsConfiguration.add_member(:mux_type, Shapes::ShapeRef.new(shape: VideoMuxType, location_name: "MuxType"))
213
+ VideoArtifactsConfiguration.struct_class = Types::VideoArtifactsConfiguration
214
+
215
+
216
+ # @api private
217
+ API = Seahorse::Model::Api.new.tap do |api|
218
+
219
+ api.version = "2021-07-15"
220
+
221
+ api.metadata = {
222
+ "apiVersion" => "2021-07-15",
223
+ "endpointPrefix" => "media-pipelines-chime",
224
+ "protocol" => "rest-json",
225
+ "serviceFullName" => "Amazon Chime SDK Media Pipelines",
226
+ "serviceId" => "Chime SDK Media Pipelines",
227
+ "signatureVersion" => "v4",
228
+ "signingName" => "chime",
229
+ "uid" => "chime-sdk-media-pipelines-2021-07-15",
230
+ }
231
+
232
+ api.add_operation(:create_media_capture_pipeline, Seahorse::Model::Operation.new.tap do |o|
233
+ o.name = "CreateMediaCapturePipeline"
234
+ o.http_method = "POST"
235
+ o.http_request_uri = "/sdk-media-capture-pipelines"
236
+ o.input = Shapes::ShapeRef.new(shape: CreateMediaCapturePipelineRequest)
237
+ o.output = Shapes::ShapeRef.new(shape: CreateMediaCapturePipelineResponse)
238
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
239
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
240
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
241
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
242
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
243
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
244
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
245
+ end)
246
+
247
+ api.add_operation(:delete_media_capture_pipeline, Seahorse::Model::Operation.new.tap do |o|
248
+ o.name = "DeleteMediaCapturePipeline"
249
+ o.http_method = "DELETE"
250
+ o.http_request_uri = "/sdk-media-capture-pipelines/{mediaPipelineId}"
251
+ o.input = Shapes::ShapeRef.new(shape: DeleteMediaCapturePipelineRequest)
252
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
253
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
254
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
255
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
256
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
257
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
258
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
259
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
260
+ end)
261
+
262
+ api.add_operation(:get_media_capture_pipeline, Seahorse::Model::Operation.new.tap do |o|
263
+ o.name = "GetMediaCapturePipeline"
264
+ o.http_method = "GET"
265
+ o.http_request_uri = "/sdk-media-capture-pipelines/{mediaPipelineId}"
266
+ o.input = Shapes::ShapeRef.new(shape: GetMediaCapturePipelineRequest)
267
+ o.output = Shapes::ShapeRef.new(shape: GetMediaCapturePipelineResponse)
268
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
269
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
270
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
271
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
272
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
273
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
274
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
275
+ end)
276
+
277
+ api.add_operation(:list_media_capture_pipelines, Seahorse::Model::Operation.new.tap do |o|
278
+ o.name = "ListMediaCapturePipelines"
279
+ o.http_method = "GET"
280
+ o.http_request_uri = "/sdk-media-capture-pipelines"
281
+ o.input = Shapes::ShapeRef.new(shape: ListMediaCapturePipelinesRequest)
282
+ o.output = Shapes::ShapeRef.new(shape: ListMediaCapturePipelinesResponse)
283
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
284
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
285
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
286
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
287
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
288
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
289
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
290
+ o[:pager] = Aws::Pager.new(
291
+ limit_key: "max_results",
292
+ tokens: {
293
+ "next_token" => "next_token"
294
+ }
295
+ )
296
+ end)
297
+
298
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
299
+ o.name = "ListTagsForResource"
300
+ o.http_method = "GET"
301
+ o.http_request_uri = "/tags"
302
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
303
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
304
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
305
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
306
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
307
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
308
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
309
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
310
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
311
+ end)
312
+
313
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
314
+ o.name = "TagResource"
315
+ o.http_method = "POST"
316
+ o.http_request_uri = "/tags?operation=tag-resource"
317
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
318
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
319
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
320
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
321
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
322
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
323
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
324
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
325
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
326
+ end)
327
+
328
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
329
+ o.name = "UntagResource"
330
+ o.http_method = "POST"
331
+ o.http_request_uri = "/tags?operation=untag-resource"
332
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
333
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
334
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
335
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
336
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
337
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
338
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
339
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
340
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
341
+ end)
342
+ end
343
+
344
+ end
345
+ end
@@ -0,0 +1,246 @@
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::ChimeSDKMediaPipelines
11
+
12
+ # When ChimeSDKMediaPipelines returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::ChimeSDKMediaPipelines::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all ChimeSDKMediaPipelines errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::ChimeSDKMediaPipelines::Errors::ServiceError
20
+ # # rescues all ChimeSDKMediaPipelines 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
+ # * {BadRequestException}
31
+ # * {ForbiddenException}
32
+ # * {NotFoundException}
33
+ # * {ResourceLimitExceededException}
34
+ # * {ServiceFailureException}
35
+ # * {ServiceUnavailableException}
36
+ # * {ThrottledClientException}
37
+ # * {UnauthorizedClientException}
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 BadRequestException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::ChimeSDKMediaPipelines::Types::BadRequestException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def code
56
+ @code || @data[:code]
57
+ end
58
+
59
+ # @return [String]
60
+ def message
61
+ @message || @data[:message]
62
+ end
63
+
64
+ # @return [String]
65
+ def request_id
66
+ @data[:request_id]
67
+ end
68
+ end
69
+
70
+ class ForbiddenException < ServiceError
71
+
72
+ # @param [Seahorse::Client::RequestContext] context
73
+ # @param [String] message
74
+ # @param [Aws::ChimeSDKMediaPipelines::Types::ForbiddenException] data
75
+ def initialize(context, message, data = Aws::EmptyStructure.new)
76
+ super(context, message, data)
77
+ end
78
+
79
+ # @return [String]
80
+ def code
81
+ @code || @data[:code]
82
+ end
83
+
84
+ # @return [String]
85
+ def message
86
+ @message || @data[:message]
87
+ end
88
+
89
+ # @return [String]
90
+ def request_id
91
+ @data[:request_id]
92
+ end
93
+ end
94
+
95
+ class NotFoundException < ServiceError
96
+
97
+ # @param [Seahorse::Client::RequestContext] context
98
+ # @param [String] message
99
+ # @param [Aws::ChimeSDKMediaPipelines::Types::NotFoundException] data
100
+ def initialize(context, message, data = Aws::EmptyStructure.new)
101
+ super(context, message, data)
102
+ end
103
+
104
+ # @return [String]
105
+ def code
106
+ @code || @data[:code]
107
+ end
108
+
109
+ # @return [String]
110
+ def message
111
+ @message || @data[:message]
112
+ end
113
+
114
+ # @return [String]
115
+ def request_id
116
+ @data[:request_id]
117
+ end
118
+ end
119
+
120
+ class ResourceLimitExceededException < ServiceError
121
+
122
+ # @param [Seahorse::Client::RequestContext] context
123
+ # @param [String] message
124
+ # @param [Aws::ChimeSDKMediaPipelines::Types::ResourceLimitExceededException] data
125
+ def initialize(context, message, data = Aws::EmptyStructure.new)
126
+ super(context, message, data)
127
+ end
128
+
129
+ # @return [String]
130
+ def code
131
+ @code || @data[:code]
132
+ end
133
+
134
+ # @return [String]
135
+ def message
136
+ @message || @data[:message]
137
+ end
138
+
139
+ # @return [String]
140
+ def request_id
141
+ @data[:request_id]
142
+ end
143
+ end
144
+
145
+ class ServiceFailureException < ServiceError
146
+
147
+ # @param [Seahorse::Client::RequestContext] context
148
+ # @param [String] message
149
+ # @param [Aws::ChimeSDKMediaPipelines::Types::ServiceFailureException] data
150
+ def initialize(context, message, data = Aws::EmptyStructure.new)
151
+ super(context, message, data)
152
+ end
153
+
154
+ # @return [String]
155
+ def code
156
+ @code || @data[:code]
157
+ end
158
+
159
+ # @return [String]
160
+ def message
161
+ @message || @data[:message]
162
+ end
163
+
164
+ # @return [String]
165
+ def request_id
166
+ @data[:request_id]
167
+ end
168
+ end
169
+
170
+ class ServiceUnavailableException < ServiceError
171
+
172
+ # @param [Seahorse::Client::RequestContext] context
173
+ # @param [String] message
174
+ # @param [Aws::ChimeSDKMediaPipelines::Types::ServiceUnavailableException] data
175
+ def initialize(context, message, data = Aws::EmptyStructure.new)
176
+ super(context, message, data)
177
+ end
178
+
179
+ # @return [String]
180
+ def code
181
+ @code || @data[:code]
182
+ end
183
+
184
+ # @return [String]
185
+ def message
186
+ @message || @data[:message]
187
+ end
188
+
189
+ # @return [String]
190
+ def request_id
191
+ @data[:request_id]
192
+ end
193
+ end
194
+
195
+ class ThrottledClientException < ServiceError
196
+
197
+ # @param [Seahorse::Client::RequestContext] context
198
+ # @param [String] message
199
+ # @param [Aws::ChimeSDKMediaPipelines::Types::ThrottledClientException] data
200
+ def initialize(context, message, data = Aws::EmptyStructure.new)
201
+ super(context, message, data)
202
+ end
203
+
204
+ # @return [String]
205
+ def code
206
+ @code || @data[:code]
207
+ end
208
+
209
+ # @return [String]
210
+ def message
211
+ @message || @data[:message]
212
+ end
213
+
214
+ # @return [String]
215
+ def request_id
216
+ @data[:request_id]
217
+ end
218
+ end
219
+
220
+ class UnauthorizedClientException < ServiceError
221
+
222
+ # @param [Seahorse::Client::RequestContext] context
223
+ # @param [String] message
224
+ # @param [Aws::ChimeSDKMediaPipelines::Types::UnauthorizedClientException] data
225
+ def initialize(context, message, data = Aws::EmptyStructure.new)
226
+ super(context, message, data)
227
+ end
228
+
229
+ # @return [String]
230
+ def code
231
+ @code || @data[:code]
232
+ end
233
+
234
+ # @return [String]
235
+ def message
236
+ @message || @data[:message]
237
+ end
238
+
239
+ # @return [String]
240
+ def request_id
241
+ @data[:request_id]
242
+ end
243
+ end
244
+
245
+ end
246
+ end
@@ -0,0 +1,26 @@
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::ChimeSDKMediaPipelines
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end