aws-sdk-elementalinference 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,407 @@
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::ElementalInference
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
18
+ AssociateFeedRequest = Shapes::StructureShape.new(name: 'AssociateFeedRequest')
19
+ AssociateFeedResponse = Shapes::StructureShape.new(name: 'AssociateFeedResponse')
20
+ AssociatedResourceName = Shapes::StringShape.new(name: 'AssociatedResourceName')
21
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
22
+ ClippingConfig = Shapes::StructureShape.new(name: 'ClippingConfig')
23
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
24
+ CreateFeedRequest = Shapes::StructureShape.new(name: 'CreateFeedRequest')
25
+ CreateFeedResponse = Shapes::StructureShape.new(name: 'CreateFeedResponse')
26
+ CreateOutput = Shapes::StructureShape.new(name: 'CreateOutput')
27
+ CreateOutputList = Shapes::ListShape.new(name: 'CreateOutputList')
28
+ CroppingConfig = Shapes::StructureShape.new(name: 'CroppingConfig')
29
+ DeleteFeedRequest = Shapes::StructureShape.new(name: 'DeleteFeedRequest')
30
+ DeleteFeedResponse = Shapes::StructureShape.new(name: 'DeleteFeedResponse')
31
+ DisassociateFeedRequest = Shapes::StructureShape.new(name: 'DisassociateFeedRequest')
32
+ DisassociateFeedResponse = Shapes::StructureShape.new(name: 'DisassociateFeedResponse')
33
+ FeedArn = Shapes::StringShape.new(name: 'FeedArn')
34
+ FeedAssociation = Shapes::StructureShape.new(name: 'FeedAssociation')
35
+ FeedId = Shapes::StringShape.new(name: 'FeedId')
36
+ FeedStatus = Shapes::StringShape.new(name: 'FeedStatus')
37
+ FeedSummary = Shapes::StructureShape.new(name: 'FeedSummary')
38
+ FeedSummaryList = Shapes::ListShape.new(name: 'FeedSummaryList')
39
+ GetFeedRequest = Shapes::StructureShape.new(name: 'GetFeedRequest')
40
+ GetFeedResponse = Shapes::StructureShape.new(name: 'GetFeedResponse')
41
+ GetOutput = Shapes::StructureShape.new(name: 'GetOutput')
42
+ GetOutputList = Shapes::ListShape.new(name: 'GetOutputList')
43
+ InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
44
+ ListFeedsRequest = Shapes::StructureShape.new(name: 'ListFeedsRequest')
45
+ ListFeedsRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListFeedsRequestMaxResultsInteger')
46
+ ListFeedsResponse = Shapes::StructureShape.new(name: 'ListFeedsResponse')
47
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
48
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
49
+ OutputConfig = Shapes::UnionShape.new(name: 'OutputConfig')
50
+ OutputStatus = Shapes::StringShape.new(name: 'OutputStatus')
51
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
52
+ ResourceDescription = Shapes::StringShape.new(name: 'ResourceDescription')
53
+ ResourceName = Shapes::StringShape.new(name: 'ResourceName')
54
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
55
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
56
+ String = Shapes::StringShape.new(name: 'String')
57
+ StringList = Shapes::ListShape.new(name: 'StringList')
58
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
59
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
60
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
61
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
62
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
63
+ TooManyRequestException = Shapes::StructureShape.new(name: 'TooManyRequestException')
64
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
65
+ UpdateFeedRequest = Shapes::StructureShape.new(name: 'UpdateFeedRequest')
66
+ UpdateFeedResponse = Shapes::StructureShape.new(name: 'UpdateFeedResponse')
67
+ UpdateOutput = Shapes::StructureShape.new(name: 'UpdateOutput')
68
+ UpdateOutputList = Shapes::ListShape.new(name: 'UpdateOutputList')
69
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
70
+
71
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
72
+ AccessDeniedException.struct_class = Types::AccessDeniedException
73
+
74
+ AssociateFeedRequest.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location: "uri", location_name: "id"))
75
+ AssociateFeedRequest.add_member(:associated_resource_name, Shapes::ShapeRef.new(shape: AssociatedResourceName, required: true, location_name: "associatedResourceName", metadata: {"idempotencyToken" => true}))
76
+ AssociateFeedRequest.add_member(:outputs, Shapes::ShapeRef.new(shape: CreateOutputList, required: true, location_name: "outputs"))
77
+ AssociateFeedRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
78
+ AssociateFeedRequest.struct_class = Types::AssociateFeedRequest
79
+
80
+ AssociateFeedResponse.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
81
+ AssociateFeedResponse.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
82
+ AssociateFeedResponse.struct_class = Types::AssociateFeedResponse
83
+
84
+ ClippingConfig.add_member(:callback_metadata, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "callbackMetadata"))
85
+ ClippingConfig.struct_class = Types::ClippingConfig
86
+
87
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
88
+ ConflictException.struct_class = Types::ConflictException
89
+
90
+ CreateFeedRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
91
+ CreateFeedRequest.add_member(:outputs, Shapes::ShapeRef.new(shape: CreateOutputList, required: true, location_name: "outputs"))
92
+ CreateFeedRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
93
+ CreateFeedRequest.struct_class = Types::CreateFeedRequest
94
+
95
+ CreateFeedResponse.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
96
+ CreateFeedResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
97
+ CreateFeedResponse.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
98
+ CreateFeedResponse.add_member(:data_endpoints, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "dataEndpoints"))
99
+ CreateFeedResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GetOutputList, required: true, location_name: "outputs"))
100
+ CreateFeedResponse.add_member(:status, Shapes::ShapeRef.new(shape: FeedStatus, required: true, location_name: "status"))
101
+ CreateFeedResponse.add_member(:association, Shapes::ShapeRef.new(shape: FeedAssociation, location_name: "association"))
102
+ CreateFeedResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
103
+ CreateFeedResponse.struct_class = Types::CreateFeedResponse
104
+
105
+ CreateOutput.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
106
+ CreateOutput.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "outputConfig"))
107
+ CreateOutput.add_member(:status, Shapes::ShapeRef.new(shape: OutputStatus, required: true, location_name: "status"))
108
+ CreateOutput.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "description"))
109
+ CreateOutput.struct_class = Types::CreateOutput
110
+
111
+ CreateOutputList.member = Shapes::ShapeRef.new(shape: CreateOutput)
112
+
113
+ CroppingConfig.struct_class = Types::CroppingConfig
114
+
115
+ DeleteFeedRequest.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location: "uri", location_name: "id"))
116
+ DeleteFeedRequest.struct_class = Types::DeleteFeedRequest
117
+
118
+ DeleteFeedResponse.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
119
+ DeleteFeedResponse.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
120
+ DeleteFeedResponse.add_member(:status, Shapes::ShapeRef.new(shape: FeedStatus, required: true, location_name: "status"))
121
+ DeleteFeedResponse.struct_class = Types::DeleteFeedResponse
122
+
123
+ DisassociateFeedRequest.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location: "uri", location_name: "id"))
124
+ DisassociateFeedRequest.add_member(:associated_resource_name, Shapes::ShapeRef.new(shape: AssociatedResourceName, required: true, location_name: "associatedResourceName", metadata: {"idempotencyToken" => true}))
125
+ DisassociateFeedRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
126
+ DisassociateFeedRequest.struct_class = Types::DisassociateFeedRequest
127
+
128
+ DisassociateFeedResponse.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
129
+ DisassociateFeedResponse.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
130
+ DisassociateFeedResponse.struct_class = Types::DisassociateFeedResponse
131
+
132
+ FeedAssociation.add_member(:associated_resource_name, Shapes::ShapeRef.new(shape: AssociatedResourceName, required: true, location_name: "associatedResourceName"))
133
+ FeedAssociation.struct_class = Types::FeedAssociation
134
+
135
+ FeedSummary.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
136
+ FeedSummary.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
137
+ FeedSummary.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
138
+ FeedSummary.add_member(:association, Shapes::ShapeRef.new(shape: FeedAssociation, location_name: "association"))
139
+ FeedSummary.add_member(:status, Shapes::ShapeRef.new(shape: FeedStatus, required: true, location_name: "status"))
140
+ FeedSummary.struct_class = Types::FeedSummary
141
+
142
+ FeedSummaryList.member = Shapes::ShapeRef.new(shape: FeedSummary)
143
+
144
+ GetFeedRequest.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location: "uri", location_name: "id"))
145
+ GetFeedRequest.struct_class = Types::GetFeedRequest
146
+
147
+ GetFeedResponse.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
148
+ GetFeedResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
149
+ GetFeedResponse.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
150
+ GetFeedResponse.add_member(:data_endpoints, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "dataEndpoints"))
151
+ GetFeedResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GetOutputList, required: true, location_name: "outputs"))
152
+ GetFeedResponse.add_member(:status, Shapes::ShapeRef.new(shape: FeedStatus, required: true, location_name: "status"))
153
+ GetFeedResponse.add_member(:association, Shapes::ShapeRef.new(shape: FeedAssociation, location_name: "association"))
154
+ GetFeedResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
155
+ GetFeedResponse.struct_class = Types::GetFeedResponse
156
+
157
+ GetOutput.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
158
+ GetOutput.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "outputConfig"))
159
+ GetOutput.add_member(:status, Shapes::ShapeRef.new(shape: OutputStatus, required: true, location_name: "status"))
160
+ GetOutput.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "description"))
161
+ GetOutput.add_member(:from_association, Shapes::ShapeRef.new(shape: Boolean, location_name: "fromAssociation"))
162
+ GetOutput.struct_class = Types::GetOutput
163
+
164
+ GetOutputList.member = Shapes::ShapeRef.new(shape: GetOutput)
165
+
166
+ InternalServerErrorException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
167
+ InternalServerErrorException.struct_class = Types::InternalServerErrorException
168
+
169
+ ListFeedsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListFeedsRequestMaxResultsInteger, location: "querystring", location_name: "maxResults"))
170
+ ListFeedsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
171
+ ListFeedsRequest.struct_class = Types::ListFeedsRequest
172
+
173
+ ListFeedsResponse.add_member(:feeds, Shapes::ShapeRef.new(shape: FeedSummaryList, required: true, location_name: "feeds"))
174
+ ListFeedsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
175
+ ListFeedsResponse.struct_class = Types::ListFeedsResponse
176
+
177
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
178
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
179
+
180
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
181
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
182
+
183
+ OutputConfig.add_member(:cropping, Shapes::ShapeRef.new(shape: CroppingConfig, location_name: "cropping"))
184
+ OutputConfig.add_member(:clipping, Shapes::ShapeRef.new(shape: ClippingConfig, location_name: "clipping"))
185
+ OutputConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
186
+ OutputConfig.add_member_subclass(:cropping, Types::OutputConfig::Cropping)
187
+ OutputConfig.add_member_subclass(:clipping, Types::OutputConfig::Clipping)
188
+ OutputConfig.add_member_subclass(:unknown, Types::OutputConfig::Unknown)
189
+ OutputConfig.struct_class = Types::OutputConfig
190
+
191
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
192
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
193
+
194
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
195
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
196
+
197
+ StringList.member = Shapes::ShapeRef.new(shape: String)
198
+
199
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
200
+
201
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
202
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
203
+
204
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
205
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
206
+ TagResourceRequest.struct_class = Types::TagResourceRequest
207
+
208
+ TooManyRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
209
+ TooManyRequestException.struct_class = Types::TooManyRequestException
210
+
211
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
212
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
213
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
214
+
215
+ UpdateFeedRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
216
+ UpdateFeedRequest.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location: "uri", location_name: "id"))
217
+ UpdateFeedRequest.add_member(:outputs, Shapes::ShapeRef.new(shape: UpdateOutputList, required: true, location_name: "outputs"))
218
+ UpdateFeedRequest.struct_class = Types::UpdateFeedRequest
219
+
220
+ UpdateFeedResponse.add_member(:arn, Shapes::ShapeRef.new(shape: FeedArn, required: true, location_name: "arn"))
221
+ UpdateFeedResponse.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
222
+ UpdateFeedResponse.add_member(:id, Shapes::ShapeRef.new(shape: FeedId, required: true, location_name: "id"))
223
+ UpdateFeedResponse.add_member(:data_endpoints, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "dataEndpoints"))
224
+ UpdateFeedResponse.add_member(:outputs, Shapes::ShapeRef.new(shape: GetOutputList, required: true, location_name: "outputs"))
225
+ UpdateFeedResponse.add_member(:status, Shapes::ShapeRef.new(shape: FeedStatus, required: true, location_name: "status"))
226
+ UpdateFeedResponse.add_member(:association, Shapes::ShapeRef.new(shape: FeedAssociation, location_name: "association"))
227
+ UpdateFeedResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
228
+ UpdateFeedResponse.struct_class = Types::UpdateFeedResponse
229
+
230
+ UpdateOutput.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "name"))
231
+ UpdateOutput.add_member(:output_config, Shapes::ShapeRef.new(shape: OutputConfig, required: true, location_name: "outputConfig"))
232
+ UpdateOutput.add_member(:status, Shapes::ShapeRef.new(shape: OutputStatus, required: true, location_name: "status"))
233
+ UpdateOutput.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "description"))
234
+ UpdateOutput.add_member(:from_association, Shapes::ShapeRef.new(shape: Boolean, location_name: "fromAssociation"))
235
+ UpdateOutput.struct_class = Types::UpdateOutput
236
+
237
+ UpdateOutputList.member = Shapes::ShapeRef.new(shape: UpdateOutput)
238
+
239
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
240
+ ValidationException.struct_class = Types::ValidationException
241
+
242
+
243
+ # @api private
244
+ API = Seahorse::Model::Api.new.tap do |api|
245
+
246
+ api.version = "2018-11-14"
247
+
248
+ api.metadata = {
249
+ "apiVersion" => "2018-11-14",
250
+ "auth" => ["aws.auth#sigv4"],
251
+ "endpointPrefix" => "elemental-inference",
252
+ "protocol" => "rest-json",
253
+ "protocols" => ["rest-json"],
254
+ "serviceFullName" => "AWS Elemental Inference",
255
+ "serviceId" => "ElementalInference",
256
+ "signatureVersion" => "v4",
257
+ "signingName" => "elemental-inference",
258
+ "uid" => "elementalinference-2018-11-14",
259
+ }
260
+
261
+ api.add_operation(:associate_feed, Seahorse::Model::Operation.new.tap do |o|
262
+ o.name = "AssociateFeed"
263
+ o.http_method = "POST"
264
+ o.http_request_uri = "/v1/feed/{id}/associate"
265
+ o.input = Shapes::ShapeRef.new(shape: AssociateFeedRequest)
266
+ o.output = Shapes::ShapeRef.new(shape: AssociateFeedResponse)
267
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
268
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
269
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
270
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
271
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
272
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
273
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
274
+ end)
275
+
276
+ api.add_operation(:create_feed, Seahorse::Model::Operation.new.tap do |o|
277
+ o.name = "CreateFeed"
278
+ o.http_method = "POST"
279
+ o.http_request_uri = "/v1/feed"
280
+ o.input = Shapes::ShapeRef.new(shape: CreateFeedRequest)
281
+ o.output = Shapes::ShapeRef.new(shape: CreateFeedResponse)
282
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
283
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
284
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
285
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
286
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
287
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
288
+ end)
289
+
290
+ api.add_operation(:delete_feed, Seahorse::Model::Operation.new.tap do |o|
291
+ o.name = "DeleteFeed"
292
+ o.http_method = "DELETE"
293
+ o.http_request_uri = "/v1/feed/{id}"
294
+ o.input = Shapes::ShapeRef.new(shape: DeleteFeedRequest)
295
+ o.output = Shapes::ShapeRef.new(shape: DeleteFeedResponse)
296
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
297
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
298
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
299
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
300
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
301
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
302
+ end)
303
+
304
+ api.add_operation(:disassociate_feed, Seahorse::Model::Operation.new.tap do |o|
305
+ o.name = "DisassociateFeed"
306
+ o.http_method = "POST"
307
+ o.http_request_uri = "/v1/feed/{id}/disassociate"
308
+ o.input = Shapes::ShapeRef.new(shape: DisassociateFeedRequest)
309
+ o.output = Shapes::ShapeRef.new(shape: DisassociateFeedResponse)
310
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
311
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
312
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
313
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
314
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
315
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
316
+ end)
317
+
318
+ api.add_operation(:get_feed, Seahorse::Model::Operation.new.tap do |o|
319
+ o.name = "GetFeed"
320
+ o.http_method = "GET"
321
+ o.http_request_uri = "/v1/feed/{id}"
322
+ o.input = Shapes::ShapeRef.new(shape: GetFeedRequest)
323
+ o.output = Shapes::ShapeRef.new(shape: GetFeedResponse)
324
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
325
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
326
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
327
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
328
+ end)
329
+
330
+ api.add_operation(:list_feeds, Seahorse::Model::Operation.new.tap do |o|
331
+ o.name = "ListFeeds"
332
+ o.http_method = "GET"
333
+ o.http_request_uri = "/v1/feeds"
334
+ o.input = Shapes::ShapeRef.new(shape: ListFeedsRequest)
335
+ o.output = Shapes::ShapeRef.new(shape: ListFeedsResponse)
336
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
337
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
338
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
339
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
340
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
341
+ o[:pager] = Aws::Pager.new(
342
+ limit_key: "max_results",
343
+ tokens: {
344
+ "next_token" => "next_token"
345
+ }
346
+ )
347
+ end)
348
+
349
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
350
+ o.name = "ListTagsForResource"
351
+ o.http_method = "GET"
352
+ o.http_request_uri = "/v1/tags/{resourceArn}"
353
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
354
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
355
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
356
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
357
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
358
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
359
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
360
+ end)
361
+
362
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
363
+ o.name = "TagResource"
364
+ o.http_method = "POST"
365
+ o.http_request_uri = "/v1/tags/{resourceArn}"
366
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
367
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
368
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
369
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
370
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
371
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
372
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
373
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
374
+ end)
375
+
376
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
377
+ o.name = "UntagResource"
378
+ o.http_method = "DELETE"
379
+ o.http_request_uri = "/v1/tags/{resourceArn}"
380
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
381
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
382
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
383
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
384
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
385
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
386
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
387
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
388
+ end)
389
+
390
+ api.add_operation(:update_feed, Seahorse::Model::Operation.new.tap do |o|
391
+ o.name = "UpdateFeed"
392
+ o.http_method = "PUT"
393
+ o.http_request_uri = "/v1/feed/{id}"
394
+ o.input = Shapes::ShapeRef.new(shape: UpdateFeedRequest)
395
+ o.output = Shapes::ShapeRef.new(shape: UpdateFeedResponse)
396
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
397
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
398
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
399
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
400
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
402
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
403
+ end)
404
+ end
405
+
406
+ end
407
+ end
File without changes
@@ -0,0 +1,69 @@
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::ElementalInference
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
+ self[:use_fips] = options[:use_fips]
56
+ self[:use_fips] = false if self[:use_fips].nil?
57
+ self[:endpoint] = options[:endpoint]
58
+ end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,50 @@
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::ElementalInference
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
15
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
16
+ end
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
18
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
19
+ end
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
21
+ end
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
+ 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"))
26
+ return Aws::Endpoints::Endpoint.new(url: "https://elemental-inference-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
+ end
28
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
+ end
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
31
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
+ return Aws::Endpoints::Endpoint.new(url: "https://elemental-inference-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
33
+ end
34
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
35
+ end
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
38
+ return Aws::Endpoints::Endpoint.new(url: "https://elemental-inference.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://elemental-inference.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ end
45
+ raise ArgumentError, "Invalid Configuration: Missing Region"
46
+ raise ArgumentError, 'No endpoint could be resolved'
47
+
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,20 @@
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::ElementalInference
12
+ # @api private
13
+ module Endpoints
14
+
15
+
16
+ def self.parameters_for_operation(context)
17
+ Aws::ElementalInference::EndpointParameters.create(context.config)
18
+ end
19
+ end
20
+ end