aws-sdk-appintegrationsservice 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,319 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AppIntegrationsService
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ Arn = Shapes::StringShape.new(name: 'Arn')
18
+ ClientAssociationMetadata = Shapes::MapShape.new(name: 'ClientAssociationMetadata')
19
+ ClientId = Shapes::StringShape.new(name: 'ClientId')
20
+ CreateEventIntegrationRequest = Shapes::StructureShape.new(name: 'CreateEventIntegrationRequest')
21
+ CreateEventIntegrationResponse = Shapes::StructureShape.new(name: 'CreateEventIntegrationResponse')
22
+ DeleteEventIntegrationRequest = Shapes::StructureShape.new(name: 'DeleteEventIntegrationRequest')
23
+ DeleteEventIntegrationResponse = Shapes::StructureShape.new(name: 'DeleteEventIntegrationResponse')
24
+ Description = Shapes::StringShape.new(name: 'Description')
25
+ DuplicateResourceException = Shapes::StructureShape.new(name: 'DuplicateResourceException')
26
+ EventBridgeBus = Shapes::StringShape.new(name: 'EventBridgeBus')
27
+ EventBridgeRuleName = Shapes::StringShape.new(name: 'EventBridgeRuleName')
28
+ EventFilter = Shapes::StructureShape.new(name: 'EventFilter')
29
+ EventIntegration = Shapes::StructureShape.new(name: 'EventIntegration')
30
+ EventIntegrationAssociation = Shapes::StructureShape.new(name: 'EventIntegrationAssociation')
31
+ EventIntegrationAssociationsList = Shapes::ListShape.new(name: 'EventIntegrationAssociationsList')
32
+ EventIntegrationsList = Shapes::ListShape.new(name: 'EventIntegrationsList')
33
+ GetEventIntegrationRequest = Shapes::StructureShape.new(name: 'GetEventIntegrationRequest')
34
+ GetEventIntegrationResponse = Shapes::StructureShape.new(name: 'GetEventIntegrationResponse')
35
+ IdempotencyToken = Shapes::StringShape.new(name: 'IdempotencyToken')
36
+ InternalServiceError = Shapes::StructureShape.new(name: 'InternalServiceError')
37
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
38
+ ListEventIntegrationAssociationsRequest = Shapes::StructureShape.new(name: 'ListEventIntegrationAssociationsRequest')
39
+ ListEventIntegrationAssociationsResponse = Shapes::StructureShape.new(name: 'ListEventIntegrationAssociationsResponse')
40
+ ListEventIntegrationsRequest = Shapes::StructureShape.new(name: 'ListEventIntegrationsRequest')
41
+ ListEventIntegrationsResponse = Shapes::StructureShape.new(name: 'ListEventIntegrationsResponse')
42
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
43
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
44
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
45
+ Message = Shapes::StringShape.new(name: 'Message')
46
+ Name = Shapes::StringShape.new(name: 'Name')
47
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
48
+ NonBlankString = Shapes::StringShape.new(name: 'NonBlankString')
49
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
50
+ ResourceQuotaExceededException = Shapes::StructureShape.new(name: 'ResourceQuotaExceededException')
51
+ Source = Shapes::StringShape.new(name: 'Source')
52
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
53
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
54
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
55
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
56
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
57
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
58
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
59
+ UUID = Shapes::StringShape.new(name: 'UUID')
60
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
61
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
62
+ UpdateEventIntegrationRequest = Shapes::StructureShape.new(name: 'UpdateEventIntegrationRequest')
63
+ UpdateEventIntegrationResponse = Shapes::StructureShape.new(name: 'UpdateEventIntegrationResponse')
64
+
65
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
66
+ AccessDeniedException.struct_class = Types::AccessDeniedException
67
+
68
+ ClientAssociationMetadata.key = Shapes::ShapeRef.new(shape: NonBlankString)
69
+ ClientAssociationMetadata.value = Shapes::ShapeRef.new(shape: NonBlankString)
70
+
71
+ CreateEventIntegrationRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "Name"))
72
+ CreateEventIntegrationRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
73
+ CreateEventIntegrationRequest.add_member(:event_filter, Shapes::ShapeRef.new(shape: EventFilter, required: true, location_name: "EventFilter"))
74
+ CreateEventIntegrationRequest.add_member(:event_bridge_bus, Shapes::ShapeRef.new(shape: EventBridgeBus, required: true, location_name: "EventBridgeBus"))
75
+ CreateEventIntegrationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: IdempotencyToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
76
+ CreateEventIntegrationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
77
+ CreateEventIntegrationRequest.struct_class = Types::CreateEventIntegrationRequest
78
+
79
+ CreateEventIntegrationResponse.add_member(:event_integration_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventIntegrationArn"))
80
+ CreateEventIntegrationResponse.struct_class = Types::CreateEventIntegrationResponse
81
+
82
+ DeleteEventIntegrationRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "Name"))
83
+ DeleteEventIntegrationRequest.struct_class = Types::DeleteEventIntegrationRequest
84
+
85
+ DeleteEventIntegrationResponse.struct_class = Types::DeleteEventIntegrationResponse
86
+
87
+ DuplicateResourceException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
88
+ DuplicateResourceException.struct_class = Types::DuplicateResourceException
89
+
90
+ EventFilter.add_member(:source, Shapes::ShapeRef.new(shape: Source, required: true, location_name: "Source"))
91
+ EventFilter.struct_class = Types::EventFilter
92
+
93
+ EventIntegration.add_member(:event_integration_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventIntegrationArn"))
94
+ EventIntegration.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
95
+ EventIntegration.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
96
+ EventIntegration.add_member(:event_filter, Shapes::ShapeRef.new(shape: EventFilter, location_name: "EventFilter"))
97
+ EventIntegration.add_member(:event_bridge_bus, Shapes::ShapeRef.new(shape: EventBridgeBus, location_name: "EventBridgeBus"))
98
+ EventIntegration.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
99
+ EventIntegration.struct_class = Types::EventIntegration
100
+
101
+ EventIntegrationAssociation.add_member(:event_integration_association_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventIntegrationAssociationArn"))
102
+ EventIntegrationAssociation.add_member(:event_integration_association_id, Shapes::ShapeRef.new(shape: UUID, location_name: "EventIntegrationAssociationId"))
103
+ EventIntegrationAssociation.add_member(:event_integration_name, Shapes::ShapeRef.new(shape: Name, location_name: "EventIntegrationName"))
104
+ EventIntegrationAssociation.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, location_name: "ClientId"))
105
+ EventIntegrationAssociation.add_member(:event_bridge_rule_name, Shapes::ShapeRef.new(shape: EventBridgeRuleName, location_name: "EventBridgeRuleName"))
106
+ EventIntegrationAssociation.add_member(:client_association_metadata, Shapes::ShapeRef.new(shape: ClientAssociationMetadata, location_name: "ClientAssociationMetadata"))
107
+ EventIntegrationAssociation.struct_class = Types::EventIntegrationAssociation
108
+
109
+ EventIntegrationAssociationsList.member = Shapes::ShapeRef.new(shape: EventIntegrationAssociation)
110
+
111
+ EventIntegrationsList.member = Shapes::ShapeRef.new(shape: EventIntegration)
112
+
113
+ GetEventIntegrationRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "Name"))
114
+ GetEventIntegrationRequest.struct_class = Types::GetEventIntegrationRequest
115
+
116
+ GetEventIntegrationResponse.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
117
+ GetEventIntegrationResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
118
+ GetEventIntegrationResponse.add_member(:event_integration_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "EventIntegrationArn"))
119
+ GetEventIntegrationResponse.add_member(:event_bridge_bus, Shapes::ShapeRef.new(shape: EventBridgeBus, location_name: "EventBridgeBus"))
120
+ GetEventIntegrationResponse.add_member(:event_filter, Shapes::ShapeRef.new(shape: EventFilter, location_name: "EventFilter"))
121
+ GetEventIntegrationResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
122
+ GetEventIntegrationResponse.struct_class = Types::GetEventIntegrationResponse
123
+
124
+ InternalServiceError.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
125
+ InternalServiceError.struct_class = Types::InternalServiceError
126
+
127
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
128
+ InvalidRequestException.struct_class = Types::InvalidRequestException
129
+
130
+ ListEventIntegrationAssociationsRequest.add_member(:event_integration_name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "Name"))
131
+ ListEventIntegrationAssociationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
132
+ ListEventIntegrationAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
133
+ ListEventIntegrationAssociationsRequest.struct_class = Types::ListEventIntegrationAssociationsRequest
134
+
135
+ ListEventIntegrationAssociationsResponse.add_member(:event_integration_associations, Shapes::ShapeRef.new(shape: EventIntegrationAssociationsList, location_name: "EventIntegrationAssociations"))
136
+ ListEventIntegrationAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
137
+ ListEventIntegrationAssociationsResponse.struct_class = Types::ListEventIntegrationAssociationsResponse
138
+
139
+ ListEventIntegrationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
140
+ ListEventIntegrationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
141
+ ListEventIntegrationsRequest.struct_class = Types::ListEventIntegrationsRequest
142
+
143
+ ListEventIntegrationsResponse.add_member(:event_integrations, Shapes::ShapeRef.new(shape: EventIntegrationsList, location_name: "EventIntegrations"))
144
+ ListEventIntegrationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
145
+ ListEventIntegrationsResponse.struct_class = Types::ListEventIntegrationsResponse
146
+
147
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
148
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
149
+
150
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
151
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
152
+
153
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
154
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
155
+
156
+ ResourceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
157
+ ResourceQuotaExceededException.struct_class = Types::ResourceQuotaExceededException
158
+
159
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
160
+
161
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
162
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
163
+
164
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
165
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
166
+ TagResourceRequest.struct_class = Types::TagResourceRequest
167
+
168
+ TagResourceResponse.struct_class = Types::TagResourceResponse
169
+
170
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "Message"))
171
+ ThrottlingException.struct_class = Types::ThrottlingException
172
+
173
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
174
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
175
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
176
+
177
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
178
+
179
+ UpdateEventIntegrationRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location: "uri", location_name: "Name"))
180
+ UpdateEventIntegrationRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
181
+ UpdateEventIntegrationRequest.struct_class = Types::UpdateEventIntegrationRequest
182
+
183
+ UpdateEventIntegrationResponse.struct_class = Types::UpdateEventIntegrationResponse
184
+
185
+
186
+ # @api private
187
+ API = Seahorse::Model::Api.new.tap do |api|
188
+
189
+ api.version = "2020-07-29"
190
+
191
+ api.metadata = {
192
+ "apiVersion" => "2020-07-29",
193
+ "endpointPrefix" => "app-integrations",
194
+ "jsonVersion" => "1.1",
195
+ "protocol" => "rest-json",
196
+ "serviceFullName" => "Amazon AppIntegrations Service",
197
+ "serviceId" => "AppIntegrations",
198
+ "signatureVersion" => "v4",
199
+ "signingName" => "app-integrations",
200
+ "uid" => "appintegrations-2020-07-29",
201
+ }
202
+
203
+ api.add_operation(:create_event_integration, Seahorse::Model::Operation.new.tap do |o|
204
+ o.name = "CreateEventIntegration"
205
+ o.http_method = "POST"
206
+ o.http_request_uri = "/eventIntegrations"
207
+ o.input = Shapes::ShapeRef.new(shape: CreateEventIntegrationRequest)
208
+ o.output = Shapes::ShapeRef.new(shape: CreateEventIntegrationResponse)
209
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
210
+ o.errors << Shapes::ShapeRef.new(shape: ResourceQuotaExceededException)
211
+ o.errors << Shapes::ShapeRef.new(shape: DuplicateResourceException)
212
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
213
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
214
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
215
+ end)
216
+
217
+ api.add_operation(:delete_event_integration, Seahorse::Model::Operation.new.tap do |o|
218
+ o.name = "DeleteEventIntegration"
219
+ o.http_method = "DELETE"
220
+ o.http_request_uri = "/eventIntegrations/{Name}"
221
+ o.input = Shapes::ShapeRef.new(shape: DeleteEventIntegrationRequest)
222
+ o.output = Shapes::ShapeRef.new(shape: DeleteEventIntegrationResponse)
223
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
224
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
225
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
226
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
227
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
228
+ end)
229
+
230
+ api.add_operation(:get_event_integration, Seahorse::Model::Operation.new.tap do |o|
231
+ o.name = "GetEventIntegration"
232
+ o.http_method = "GET"
233
+ o.http_request_uri = "/eventIntegrations/{Name}"
234
+ o.input = Shapes::ShapeRef.new(shape: GetEventIntegrationRequest)
235
+ o.output = Shapes::ShapeRef.new(shape: GetEventIntegrationResponse)
236
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
237
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
238
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
239
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
240
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
241
+ end)
242
+
243
+ api.add_operation(:list_event_integration_associations, Seahorse::Model::Operation.new.tap do |o|
244
+ o.name = "ListEventIntegrationAssociations"
245
+ o.http_method = "GET"
246
+ o.http_request_uri = "/eventIntegrations/{Name}/associations"
247
+ o.input = Shapes::ShapeRef.new(shape: ListEventIntegrationAssociationsRequest)
248
+ o.output = Shapes::ShapeRef.new(shape: ListEventIntegrationAssociationsResponse)
249
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
250
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
251
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
252
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
253
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
254
+ end)
255
+
256
+ api.add_operation(:list_event_integrations, Seahorse::Model::Operation.new.tap do |o|
257
+ o.name = "ListEventIntegrations"
258
+ o.http_method = "GET"
259
+ o.http_request_uri = "/eventIntegrations"
260
+ o.input = Shapes::ShapeRef.new(shape: ListEventIntegrationsRequest)
261
+ o.output = Shapes::ShapeRef.new(shape: ListEventIntegrationsResponse)
262
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
263
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
264
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
265
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
266
+ end)
267
+
268
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
269
+ o.name = "ListTagsForResource"
270
+ o.http_method = "GET"
271
+ o.http_request_uri = "/tags/{resourceArn}"
272
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
273
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
274
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
275
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
276
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
277
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
278
+ end)
279
+
280
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
281
+ o.name = "TagResource"
282
+ o.http_method = "POST"
283
+ o.http_request_uri = "/tags/{resourceArn}"
284
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
285
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
286
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
287
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
288
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
289
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
290
+ end)
291
+
292
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
293
+ o.name = "UntagResource"
294
+ o.http_method = "DELETE"
295
+ o.http_request_uri = "/tags/{resourceArn}"
296
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
297
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
298
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
299
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
300
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
301
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
302
+ end)
303
+
304
+ api.add_operation(:update_event_integration, Seahorse::Model::Operation.new.tap do |o|
305
+ o.name = "UpdateEventIntegration"
306
+ o.http_method = "PATCH"
307
+ o.http_request_uri = "/eventIntegrations/{Name}"
308
+ o.input = Shapes::ShapeRef.new(shape: UpdateEventIntegrationRequest)
309
+ o.output = Shapes::ShapeRef.new(shape: UpdateEventIntegrationResponse)
310
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceError)
311
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
312
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
313
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
314
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
315
+ end)
316
+ end
317
+
318
+ end
319
+ end
@@ -0,0 +1,150 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::AppIntegrationsService
11
+
12
+ # When AppIntegrationsService returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::AppIntegrationsService::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all AppIntegrationsService errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::AppIntegrationsService::Errors::ServiceError
20
+ # # rescues all AppIntegrationsService API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {DuplicateResourceException}
32
+ # * {InternalServiceError}
33
+ # * {InvalidRequestException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ResourceQuotaExceededException}
36
+ # * {ThrottlingException}
37
+ #
38
+ # Additionally, error classes are dynamically generated for service errors based on the error code
39
+ # if they are not defined above.
40
+ module Errors
41
+
42
+ extend Aws::Errors::DynamicErrors
43
+
44
+ class AccessDeniedException < ServiceError
45
+
46
+ # @param [Seahorse::Client::RequestContext] context
47
+ # @param [String] message
48
+ # @param [Aws::AppIntegrationsService::Types::AccessDeniedException] data
49
+ def initialize(context, message, data = Aws::EmptyStructure.new)
50
+ super(context, message, data)
51
+ end
52
+
53
+ # @return [String]
54
+ def message
55
+ @message || @data[:message]
56
+ end
57
+ end
58
+
59
+ class DuplicateResourceException < ServiceError
60
+
61
+ # @param [Seahorse::Client::RequestContext] context
62
+ # @param [String] message
63
+ # @param [Aws::AppIntegrationsService::Types::DuplicateResourceException] data
64
+ def initialize(context, message, data = Aws::EmptyStructure.new)
65
+ super(context, message, data)
66
+ end
67
+
68
+ # @return [String]
69
+ def message
70
+ @message || @data[:message]
71
+ end
72
+ end
73
+
74
+ class InternalServiceError < ServiceError
75
+
76
+ # @param [Seahorse::Client::RequestContext] context
77
+ # @param [String] message
78
+ # @param [Aws::AppIntegrationsService::Types::InternalServiceError] data
79
+ def initialize(context, message, data = Aws::EmptyStructure.new)
80
+ super(context, message, data)
81
+ end
82
+
83
+ # @return [String]
84
+ def message
85
+ @message || @data[:message]
86
+ end
87
+ end
88
+
89
+ class InvalidRequestException < ServiceError
90
+
91
+ # @param [Seahorse::Client::RequestContext] context
92
+ # @param [String] message
93
+ # @param [Aws::AppIntegrationsService::Types::InvalidRequestException] data
94
+ def initialize(context, message, data = Aws::EmptyStructure.new)
95
+ super(context, message, data)
96
+ end
97
+
98
+ # @return [String]
99
+ def message
100
+ @message || @data[:message]
101
+ end
102
+ end
103
+
104
+ class ResourceNotFoundException < ServiceError
105
+
106
+ # @param [Seahorse::Client::RequestContext] context
107
+ # @param [String] message
108
+ # @param [Aws::AppIntegrationsService::Types::ResourceNotFoundException] data
109
+ def initialize(context, message, data = Aws::EmptyStructure.new)
110
+ super(context, message, data)
111
+ end
112
+
113
+ # @return [String]
114
+ def message
115
+ @message || @data[:message]
116
+ end
117
+ end
118
+
119
+ class ResourceQuotaExceededException < ServiceError
120
+
121
+ # @param [Seahorse::Client::RequestContext] context
122
+ # @param [String] message
123
+ # @param [Aws::AppIntegrationsService::Types::ResourceQuotaExceededException] data
124
+ def initialize(context, message, data = Aws::EmptyStructure.new)
125
+ super(context, message, data)
126
+ end
127
+
128
+ # @return [String]
129
+ def message
130
+ @message || @data[:message]
131
+ end
132
+ end
133
+
134
+ class ThrottlingException < ServiceError
135
+
136
+ # @param [Seahorse::Client::RequestContext] context
137
+ # @param [String] message
138
+ # @param [Aws::AppIntegrationsService::Types::ThrottlingException] data
139
+ def initialize(context, message, data = Aws::EmptyStructure.new)
140
+ super(context, message, data)
141
+ end
142
+
143
+ # @return [String]
144
+ def message
145
+ @message || @data[:message]
146
+ end
147
+ end
148
+
149
+ end
150
+ end