aws-sdk-oam 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,487 @@
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::OAM
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ Arn = Shapes::StringShape.new(name: 'Arn')
17
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
18
+ CreateLinkInput = Shapes::StructureShape.new(name: 'CreateLinkInput')
19
+ CreateLinkOutput = Shapes::StructureShape.new(name: 'CreateLinkOutput')
20
+ CreateSinkInput = Shapes::StructureShape.new(name: 'CreateSinkInput')
21
+ CreateSinkOutput = Shapes::StructureShape.new(name: 'CreateSinkOutput')
22
+ DeleteLinkInput = Shapes::StructureShape.new(name: 'DeleteLinkInput')
23
+ DeleteLinkOutput = Shapes::StructureShape.new(name: 'DeleteLinkOutput')
24
+ DeleteSinkInput = Shapes::StructureShape.new(name: 'DeleteSinkInput')
25
+ DeleteSinkOutput = Shapes::StructureShape.new(name: 'DeleteSinkOutput')
26
+ GetLinkInput = Shapes::StructureShape.new(name: 'GetLinkInput')
27
+ GetLinkOutput = Shapes::StructureShape.new(name: 'GetLinkOutput')
28
+ GetSinkInput = Shapes::StructureShape.new(name: 'GetSinkInput')
29
+ GetSinkOutput = Shapes::StructureShape.new(name: 'GetSinkOutput')
30
+ GetSinkPolicyInput = Shapes::StructureShape.new(name: 'GetSinkPolicyInput')
31
+ GetSinkPolicyOutput = Shapes::StructureShape.new(name: 'GetSinkPolicyOutput')
32
+ InternalServiceFault = Shapes::StructureShape.new(name: 'InternalServiceFault')
33
+ InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
34
+ LabelTemplate = Shapes::StringShape.new(name: 'LabelTemplate')
35
+ ListAttachedLinksInput = Shapes::StructureShape.new(name: 'ListAttachedLinksInput')
36
+ ListAttachedLinksItem = Shapes::StructureShape.new(name: 'ListAttachedLinksItem')
37
+ ListAttachedLinksItems = Shapes::ListShape.new(name: 'ListAttachedLinksItems')
38
+ ListAttachedLinksMaxResults = Shapes::IntegerShape.new(name: 'ListAttachedLinksMaxResults')
39
+ ListAttachedLinksOutput = Shapes::StructureShape.new(name: 'ListAttachedLinksOutput')
40
+ ListLinksInput = Shapes::StructureShape.new(name: 'ListLinksInput')
41
+ ListLinksItem = Shapes::StructureShape.new(name: 'ListLinksItem')
42
+ ListLinksItems = Shapes::ListShape.new(name: 'ListLinksItems')
43
+ ListLinksMaxResults = Shapes::IntegerShape.new(name: 'ListLinksMaxResults')
44
+ ListLinksOutput = Shapes::StructureShape.new(name: 'ListLinksOutput')
45
+ ListSinksInput = Shapes::StructureShape.new(name: 'ListSinksInput')
46
+ ListSinksItem = Shapes::StructureShape.new(name: 'ListSinksItem')
47
+ ListSinksItems = Shapes::ListShape.new(name: 'ListSinksItems')
48
+ ListSinksMaxResults = Shapes::IntegerShape.new(name: 'ListSinksMaxResults')
49
+ ListSinksOutput = Shapes::StructureShape.new(name: 'ListSinksOutput')
50
+ ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
51
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
52
+ MissingRequiredParameterException = Shapes::StructureShape.new(name: 'MissingRequiredParameterException')
53
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
54
+ PutSinkPolicyInput = Shapes::StructureShape.new(name: 'PutSinkPolicyInput')
55
+ PutSinkPolicyOutput = Shapes::StructureShape.new(name: 'PutSinkPolicyOutput')
56
+ ResourceIdentifier = Shapes::StringShape.new(name: 'ResourceIdentifier')
57
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
58
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
59
+ ResourceTypesInput = Shapes::ListShape.new(name: 'ResourceTypesInput')
60
+ ResourceTypesOutput = Shapes::ListShape.new(name: 'ResourceTypesOutput')
61
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
62
+ SinkName = Shapes::StringShape.new(name: 'SinkName')
63
+ SinkPolicy = Shapes::StringShape.new(name: 'SinkPolicy')
64
+ String = Shapes::StringShape.new(name: 'String')
65
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
66
+ TagKeys = Shapes::ListShape.new(name: 'TagKeys')
67
+ TagMapInput = Shapes::MapShape.new(name: 'TagMapInput')
68
+ TagMapOutput = Shapes::MapShape.new(name: 'TagMapOutput')
69
+ TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
70
+ TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
71
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
72
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
73
+ UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
74
+ UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
75
+ UpdateLinkInput = Shapes::StructureShape.new(name: 'UpdateLinkInput')
76
+ UpdateLinkOutput = Shapes::StructureShape.new(name: 'UpdateLinkOutput')
77
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
78
+
79
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
80
+ ConflictException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
81
+ ConflictException.struct_class = Types::ConflictException
82
+
83
+ CreateLinkInput.add_member(:label_template, Shapes::ShapeRef.new(shape: LabelTemplate, required: true, location_name: "LabelTemplate"))
84
+ CreateLinkInput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesInput, required: true, location_name: "ResourceTypes"))
85
+ CreateLinkInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
86
+ CreateLinkInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapInput, location_name: "Tags"))
87
+ CreateLinkInput.struct_class = Types::CreateLinkInput
88
+
89
+ CreateLinkOutput.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
90
+ CreateLinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
91
+ CreateLinkOutput.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
92
+ CreateLinkOutput.add_member(:label_template, Shapes::ShapeRef.new(shape: String, location_name: "LabelTemplate"))
93
+ CreateLinkOutput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
94
+ CreateLinkOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
95
+ CreateLinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
96
+ CreateLinkOutput.struct_class = Types::CreateLinkOutput
97
+
98
+ CreateSinkInput.add_member(:name, Shapes::ShapeRef.new(shape: SinkName, required: true, location_name: "Name"))
99
+ CreateSinkInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapInput, location_name: "Tags"))
100
+ CreateSinkInput.struct_class = Types::CreateSinkInput
101
+
102
+ CreateSinkOutput.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
103
+ CreateSinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
104
+ CreateSinkOutput.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
105
+ CreateSinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
106
+ CreateSinkOutput.struct_class = Types::CreateSinkOutput
107
+
108
+ DeleteLinkInput.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Identifier"))
109
+ DeleteLinkInput.struct_class = Types::DeleteLinkInput
110
+
111
+ DeleteLinkOutput.struct_class = Types::DeleteLinkOutput
112
+
113
+ DeleteSinkInput.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Identifier"))
114
+ DeleteSinkInput.struct_class = Types::DeleteSinkInput
115
+
116
+ DeleteSinkOutput.struct_class = Types::DeleteSinkOutput
117
+
118
+ GetLinkInput.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Identifier"))
119
+ GetLinkInput.struct_class = Types::GetLinkInput
120
+
121
+ GetLinkOutput.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
122
+ GetLinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
123
+ GetLinkOutput.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
124
+ GetLinkOutput.add_member(:label_template, Shapes::ShapeRef.new(shape: String, location_name: "LabelTemplate"))
125
+ GetLinkOutput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
126
+ GetLinkOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
127
+ GetLinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
128
+ GetLinkOutput.struct_class = Types::GetLinkOutput
129
+
130
+ GetSinkInput.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Identifier"))
131
+ GetSinkInput.struct_class = Types::GetSinkInput
132
+
133
+ GetSinkOutput.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
134
+ GetSinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
135
+ GetSinkOutput.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
136
+ GetSinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
137
+ GetSinkOutput.struct_class = Types::GetSinkOutput
138
+
139
+ GetSinkPolicyInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
140
+ GetSinkPolicyInput.struct_class = Types::GetSinkPolicyInput
141
+
142
+ GetSinkPolicyOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
143
+ GetSinkPolicyOutput.add_member(:sink_id, Shapes::ShapeRef.new(shape: String, location_name: "SinkId"))
144
+ GetSinkPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
145
+ GetSinkPolicyOutput.struct_class = Types::GetSinkPolicyOutput
146
+
147
+ InternalServiceFault.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
148
+ InternalServiceFault.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
149
+ InternalServiceFault.struct_class = Types::InternalServiceFault
150
+
151
+ InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
152
+ InvalidParameterException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
153
+ InvalidParameterException.struct_class = Types::InvalidParameterException
154
+
155
+ ListAttachedLinksInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAttachedLinksMaxResults, location_name: "MaxResults"))
156
+ ListAttachedLinksInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
157
+ ListAttachedLinksInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
158
+ ListAttachedLinksInput.struct_class = Types::ListAttachedLinksInput
159
+
160
+ ListAttachedLinksItem.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
161
+ ListAttachedLinksItem.add_member(:link_arn, Shapes::ShapeRef.new(shape: String, location_name: "LinkArn"))
162
+ ListAttachedLinksItem.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
163
+ ListAttachedLinksItem.struct_class = Types::ListAttachedLinksItem
164
+
165
+ ListAttachedLinksItems.member = Shapes::ShapeRef.new(shape: ListAttachedLinksItem)
166
+
167
+ ListAttachedLinksOutput.add_member(:items, Shapes::ShapeRef.new(shape: ListAttachedLinksItems, required: true, location_name: "Items"))
168
+ ListAttachedLinksOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
169
+ ListAttachedLinksOutput.struct_class = Types::ListAttachedLinksOutput
170
+
171
+ ListLinksInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListLinksMaxResults, location_name: "MaxResults"))
172
+ ListLinksInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
173
+ ListLinksInput.struct_class = Types::ListLinksInput
174
+
175
+ ListLinksItem.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
176
+ ListLinksItem.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
177
+ ListLinksItem.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
178
+ ListLinksItem.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
179
+ ListLinksItem.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
180
+ ListLinksItem.struct_class = Types::ListLinksItem
181
+
182
+ ListLinksItems.member = Shapes::ShapeRef.new(shape: ListLinksItem)
183
+
184
+ ListLinksOutput.add_member(:items, Shapes::ShapeRef.new(shape: ListLinksItems, required: true, location_name: "Items"))
185
+ ListLinksOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
186
+ ListLinksOutput.struct_class = Types::ListLinksOutput
187
+
188
+ ListSinksInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListSinksMaxResults, location_name: "MaxResults"))
189
+ ListSinksInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
190
+ ListSinksInput.struct_class = Types::ListSinksInput
191
+
192
+ ListSinksItem.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
193
+ ListSinksItem.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
194
+ ListSinksItem.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
195
+ ListSinksItem.struct_class = Types::ListSinksItem
196
+
197
+ ListSinksItems.member = Shapes::ShapeRef.new(shape: ListSinksItem)
198
+
199
+ ListSinksOutput.add_member(:items, Shapes::ShapeRef.new(shape: ListSinksItems, required: true, location_name: "Items"))
200
+ ListSinksOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
201
+ ListSinksOutput.struct_class = Types::ListSinksOutput
202
+
203
+ ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
204
+ ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
205
+
206
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
207
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
208
+
209
+ MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
210
+ MissingRequiredParameterException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
211
+ MissingRequiredParameterException.struct_class = Types::MissingRequiredParameterException
212
+
213
+ PutSinkPolicyInput.add_member(:sink_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "SinkIdentifier"))
214
+ PutSinkPolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: SinkPolicy, required: true, location_name: "Policy"))
215
+ PutSinkPolicyInput.struct_class = Types::PutSinkPolicyInput
216
+
217
+ PutSinkPolicyOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
218
+ PutSinkPolicyOutput.add_member(:sink_id, Shapes::ShapeRef.new(shape: String, location_name: "SinkId"))
219
+ PutSinkPolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: String, location_name: "Policy"))
220
+ PutSinkPolicyOutput.struct_class = Types::PutSinkPolicyOutput
221
+
222
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
223
+ ResourceNotFoundException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
224
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
225
+
226
+ ResourceTypesInput.member = Shapes::ShapeRef.new(shape: ResourceType)
227
+
228
+ ResourceTypesOutput.member = Shapes::ShapeRef.new(shape: String)
229
+
230
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
231
+ ServiceQuotaExceededException.add_member(:amzn_error_type, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amzn-ErrorType"))
232
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
233
+
234
+ TagKeys.member = Shapes::ShapeRef.new(shape: TagKey)
235
+
236
+ TagMapInput.key = Shapes::ShapeRef.new(shape: TagKey)
237
+ TagMapInput.value = Shapes::ShapeRef.new(shape: TagValue)
238
+
239
+ TagMapOutput.key = Shapes::ShapeRef.new(shape: String)
240
+ TagMapOutput.value = Shapes::ShapeRef.new(shape: String)
241
+
242
+ TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
243
+ TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapInput, required: true, location_name: "Tags"))
244
+ TagResourceInput.struct_class = Types::TagResourceInput
245
+
246
+ TagResourceOutput.struct_class = Types::TagResourceOutput
247
+
248
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
249
+ TooManyTagsException.struct_class = Types::TooManyTagsException
250
+
251
+ UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "ResourceArn"))
252
+ UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location: "querystring", location_name: "tagKeys"))
253
+ UntagResourceInput.struct_class = Types::UntagResourceInput
254
+
255
+ UntagResourceOutput.struct_class = Types::UntagResourceOutput
256
+
257
+ UpdateLinkInput.add_member(:identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, required: true, location_name: "Identifier"))
258
+ UpdateLinkInput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesInput, required: true, location_name: "ResourceTypes"))
259
+ UpdateLinkInput.struct_class = Types::UpdateLinkInput
260
+
261
+ UpdateLinkOutput.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "Arn"))
262
+ UpdateLinkOutput.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
263
+ UpdateLinkOutput.add_member(:label, Shapes::ShapeRef.new(shape: String, location_name: "Label"))
264
+ UpdateLinkOutput.add_member(:label_template, Shapes::ShapeRef.new(shape: LabelTemplate, location_name: "LabelTemplate"))
265
+ UpdateLinkOutput.add_member(:resource_types, Shapes::ShapeRef.new(shape: ResourceTypesOutput, location_name: "ResourceTypes"))
266
+ UpdateLinkOutput.add_member(:sink_arn, Shapes::ShapeRef.new(shape: String, location_name: "SinkArn"))
267
+ UpdateLinkOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagMapOutput, location_name: "Tags"))
268
+ UpdateLinkOutput.struct_class = Types::UpdateLinkOutput
269
+
270
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
271
+ ValidationException.struct_class = Types::ValidationException
272
+
273
+
274
+ # @api private
275
+ API = Seahorse::Model::Api.new.tap do |api|
276
+
277
+ api.version = "2022-06-10"
278
+
279
+ api.metadata = {
280
+ "apiVersion" => "2022-06-10",
281
+ "endpointPrefix" => "oam",
282
+ "jsonVersion" => "1.1",
283
+ "protocol" => "rest-json",
284
+ "serviceFullName" => "CloudWatch Observability Access Manager",
285
+ "serviceId" => "OAM",
286
+ "signatureVersion" => "v4",
287
+ "signingName" => "oam",
288
+ "uid" => "oam-2022-06-10",
289
+ }
290
+
291
+ api.add_operation(:create_link, Seahorse::Model::Operation.new.tap do |o|
292
+ o.name = "CreateLink"
293
+ o.http_method = "POST"
294
+ o.http_request_uri = "/CreateLink"
295
+ o.input = Shapes::ShapeRef.new(shape: CreateLinkInput)
296
+ o.output = Shapes::ShapeRef.new(shape: CreateLinkOutput)
297
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
298
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
299
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
300
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
301
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
302
+ end)
303
+
304
+ api.add_operation(:create_sink, Seahorse::Model::Operation.new.tap do |o|
305
+ o.name = "CreateSink"
306
+ o.http_method = "POST"
307
+ o.http_request_uri = "/CreateSink"
308
+ o.input = Shapes::ShapeRef.new(shape: CreateSinkInput)
309
+ o.output = Shapes::ShapeRef.new(shape: CreateSinkOutput)
310
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
311
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
312
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
313
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
314
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
315
+ end)
316
+
317
+ api.add_operation(:delete_link, Seahorse::Model::Operation.new.tap do |o|
318
+ o.name = "DeleteLink"
319
+ o.http_method = "POST"
320
+ o.http_request_uri = "/DeleteLink"
321
+ o.input = Shapes::ShapeRef.new(shape: DeleteLinkInput)
322
+ o.output = Shapes::ShapeRef.new(shape: DeleteLinkOutput)
323
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
324
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
325
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
326
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
327
+ end)
328
+
329
+ api.add_operation(:delete_sink, Seahorse::Model::Operation.new.tap do |o|
330
+ o.name = "DeleteSink"
331
+ o.http_method = "POST"
332
+ o.http_request_uri = "/DeleteSink"
333
+ o.input = Shapes::ShapeRef.new(shape: DeleteSinkInput)
334
+ o.output = Shapes::ShapeRef.new(shape: DeleteSinkOutput)
335
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
336
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
337
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
338
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
339
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
340
+ end)
341
+
342
+ api.add_operation(:get_link, Seahorse::Model::Operation.new.tap do |o|
343
+ o.name = "GetLink"
344
+ o.http_method = "POST"
345
+ o.http_request_uri = "/GetLink"
346
+ o.input = Shapes::ShapeRef.new(shape: GetLinkInput)
347
+ o.output = Shapes::ShapeRef.new(shape: GetLinkOutput)
348
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
349
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
350
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
351
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
352
+ end)
353
+
354
+ api.add_operation(:get_sink, Seahorse::Model::Operation.new.tap do |o|
355
+ o.name = "GetSink"
356
+ o.http_method = "POST"
357
+ o.http_request_uri = "/GetSink"
358
+ o.input = Shapes::ShapeRef.new(shape: GetSinkInput)
359
+ o.output = Shapes::ShapeRef.new(shape: GetSinkOutput)
360
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
361
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
362
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
363
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
364
+ end)
365
+
366
+ api.add_operation(:get_sink_policy, Seahorse::Model::Operation.new.tap do |o|
367
+ o.name = "GetSinkPolicy"
368
+ o.http_method = "POST"
369
+ o.http_request_uri = "/GetSinkPolicy"
370
+ o.input = Shapes::ShapeRef.new(shape: GetSinkPolicyInput)
371
+ o.output = Shapes::ShapeRef.new(shape: GetSinkPolicyOutput)
372
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
373
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
374
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
375
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
376
+ end)
377
+
378
+ api.add_operation(:list_attached_links, Seahorse::Model::Operation.new.tap do |o|
379
+ o.name = "ListAttachedLinks"
380
+ o.http_method = "POST"
381
+ o.http_request_uri = "/ListAttachedLinks"
382
+ o.input = Shapes::ShapeRef.new(shape: ListAttachedLinksInput)
383
+ o.output = Shapes::ShapeRef.new(shape: ListAttachedLinksOutput)
384
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
385
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
386
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
387
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
388
+ o[:pager] = Aws::Pager.new(
389
+ limit_key: "max_results",
390
+ tokens: {
391
+ "next_token" => "next_token"
392
+ }
393
+ )
394
+ end)
395
+
396
+ api.add_operation(:list_links, Seahorse::Model::Operation.new.tap do |o|
397
+ o.name = "ListLinks"
398
+ o.http_method = "POST"
399
+ o.http_request_uri = "/ListLinks"
400
+ o.input = Shapes::ShapeRef.new(shape: ListLinksInput)
401
+ o.output = Shapes::ShapeRef.new(shape: ListLinksOutput)
402
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
403
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
405
+ o[:pager] = Aws::Pager.new(
406
+ limit_key: "max_results",
407
+ tokens: {
408
+ "next_token" => "next_token"
409
+ }
410
+ )
411
+ end)
412
+
413
+ api.add_operation(:list_sinks, Seahorse::Model::Operation.new.tap do |o|
414
+ o.name = "ListSinks"
415
+ o.http_method = "POST"
416
+ o.http_request_uri = "/ListSinks"
417
+ o.input = Shapes::ShapeRef.new(shape: ListSinksInput)
418
+ o.output = Shapes::ShapeRef.new(shape: ListSinksOutput)
419
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
420
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
421
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
422
+ o[:pager] = Aws::Pager.new(
423
+ limit_key: "max_results",
424
+ tokens: {
425
+ "next_token" => "next_token"
426
+ }
427
+ )
428
+ end)
429
+
430
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
431
+ o.name = "ListTagsForResource"
432
+ o.http_method = "GET"
433
+ o.http_request_uri = "/tags/{ResourceArn}"
434
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
435
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
436
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
437
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
438
+ end)
439
+
440
+ api.add_operation(:put_sink_policy, Seahorse::Model::Operation.new.tap do |o|
441
+ o.name = "PutSinkPolicy"
442
+ o.http_method = "POST"
443
+ o.http_request_uri = "/PutSinkPolicy"
444
+ o.input = Shapes::ShapeRef.new(shape: PutSinkPolicyInput)
445
+ o.output = Shapes::ShapeRef.new(shape: PutSinkPolicyOutput)
446
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
447
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
448
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
449
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
450
+ end)
451
+
452
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
453
+ o.name = "TagResource"
454
+ o.http_method = "PUT"
455
+ o.http_request_uri = "/tags/{ResourceArn}"
456
+ o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
457
+ o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
458
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
459
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
460
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
461
+ end)
462
+
463
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
464
+ o.name = "UntagResource"
465
+ o.http_method = "DELETE"
466
+ o.http_request_uri = "/tags/{ResourceArn}"
467
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
468
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
469
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
470
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
471
+ end)
472
+
473
+ api.add_operation(:update_link, Seahorse::Model::Operation.new.tap do |o|
474
+ o.name = "UpdateLink"
475
+ o.http_method = "POST"
476
+ o.http_request_uri = "/UpdateLink"
477
+ o.input = Shapes::ShapeRef.new(shape: UpdateLinkInput)
478
+ o.output = Shapes::ShapeRef.new(shape: UpdateLinkOutput)
479
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
480
+ o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
481
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
482
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
483
+ end)
484
+ end
485
+
486
+ end
487
+ 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::OAM
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
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end