aws-sdk-supportapp 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,294 @@
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::SupportApp
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
18
+ CreateSlackChannelConfigurationRequest = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationRequest')
19
+ CreateSlackChannelConfigurationResult = Shapes::StructureShape.new(name: 'CreateSlackChannelConfigurationResult')
20
+ DeleteAccountAliasRequest = Shapes::StructureShape.new(name: 'DeleteAccountAliasRequest')
21
+ DeleteAccountAliasResult = Shapes::StructureShape.new(name: 'DeleteAccountAliasResult')
22
+ DeleteSlackChannelConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteSlackChannelConfigurationRequest')
23
+ DeleteSlackChannelConfigurationResult = Shapes::StructureShape.new(name: 'DeleteSlackChannelConfigurationResult')
24
+ DeleteSlackWorkspaceConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteSlackWorkspaceConfigurationRequest')
25
+ DeleteSlackWorkspaceConfigurationResult = Shapes::StructureShape.new(name: 'DeleteSlackWorkspaceConfigurationResult')
26
+ GetAccountAliasRequest = Shapes::StructureShape.new(name: 'GetAccountAliasRequest')
27
+ GetAccountAliasResult = Shapes::StructureShape.new(name: 'GetAccountAliasResult')
28
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
29
+ ListSlackChannelConfigurationsRequest = Shapes::StructureShape.new(name: 'ListSlackChannelConfigurationsRequest')
30
+ ListSlackChannelConfigurationsResult = Shapes::StructureShape.new(name: 'ListSlackChannelConfigurationsResult')
31
+ ListSlackWorkspaceConfigurationsRequest = Shapes::StructureShape.new(name: 'ListSlackWorkspaceConfigurationsRequest')
32
+ ListSlackWorkspaceConfigurationsResult = Shapes::StructureShape.new(name: 'ListSlackWorkspaceConfigurationsResult')
33
+ NotificationSeverityLevel = Shapes::StringShape.new(name: 'NotificationSeverityLevel')
34
+ PutAccountAliasRequest = Shapes::StructureShape.new(name: 'PutAccountAliasRequest')
35
+ PutAccountAliasResult = Shapes::StructureShape.new(name: 'PutAccountAliasResult')
36
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
37
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
38
+ SlackChannelConfiguration = Shapes::StructureShape.new(name: 'SlackChannelConfiguration')
39
+ SlackWorkspaceConfiguration = Shapes::StructureShape.new(name: 'SlackWorkspaceConfiguration')
40
+ SlackWorkspaceConfigurationList = Shapes::ListShape.new(name: 'SlackWorkspaceConfigurationList')
41
+ UpdateSlackChannelConfigurationRequest = Shapes::StructureShape.new(name: 'UpdateSlackChannelConfigurationRequest')
42
+ UpdateSlackChannelConfigurationResult = Shapes::StructureShape.new(name: 'UpdateSlackChannelConfigurationResult')
43
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
44
+ awsAccountAlias = Shapes::StringShape.new(name: 'awsAccountAlias')
45
+ booleanValue = Shapes::BooleanShape.new(name: 'booleanValue')
46
+ channelId = Shapes::StringShape.new(name: 'channelId')
47
+ channelName = Shapes::StringShape.new(name: 'channelName')
48
+ errorMessage = Shapes::StringShape.new(name: 'errorMessage')
49
+ paginationToken = Shapes::StringShape.new(name: 'paginationToken')
50
+ roleArn = Shapes::StringShape.new(name: 'roleArn')
51
+ slackChannelConfigurationList = Shapes::ListShape.new(name: 'slackChannelConfigurationList')
52
+ teamId = Shapes::StringShape.new(name: 'teamId')
53
+
54
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
55
+ AccessDeniedException.struct_class = Types::AccessDeniedException
56
+
57
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
58
+ ConflictException.struct_class = Types::ConflictException
59
+
60
+ CreateSlackChannelConfigurationRequest.add_member(:channel_id, Shapes::ShapeRef.new(shape: channelId, required: true, location_name: "channelId"))
61
+ CreateSlackChannelConfigurationRequest.add_member(:channel_name, Shapes::ShapeRef.new(shape: channelName, location_name: "channelName"))
62
+ CreateSlackChannelConfigurationRequest.add_member(:channel_role_arn, Shapes::ShapeRef.new(shape: roleArn, required: true, location_name: "channelRoleArn"))
63
+ CreateSlackChannelConfigurationRequest.add_member(:notify_on_add_correspondence_to_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnAddCorrespondenceToCase"))
64
+ CreateSlackChannelConfigurationRequest.add_member(:notify_on_case_severity, Shapes::ShapeRef.new(shape: NotificationSeverityLevel, required: true, location_name: "notifyOnCaseSeverity"))
65
+ CreateSlackChannelConfigurationRequest.add_member(:notify_on_create_or_reopen_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnCreateOrReopenCase"))
66
+ CreateSlackChannelConfigurationRequest.add_member(:notify_on_resolve_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnResolveCase"))
67
+ CreateSlackChannelConfigurationRequest.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
68
+ CreateSlackChannelConfigurationRequest.struct_class = Types::CreateSlackChannelConfigurationRequest
69
+
70
+ CreateSlackChannelConfigurationResult.struct_class = Types::CreateSlackChannelConfigurationResult
71
+
72
+ DeleteAccountAliasRequest.struct_class = Types::DeleteAccountAliasRequest
73
+
74
+ DeleteAccountAliasResult.struct_class = Types::DeleteAccountAliasResult
75
+
76
+ DeleteSlackChannelConfigurationRequest.add_member(:channel_id, Shapes::ShapeRef.new(shape: channelId, required: true, location_name: "channelId"))
77
+ DeleteSlackChannelConfigurationRequest.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
78
+ DeleteSlackChannelConfigurationRequest.struct_class = Types::DeleteSlackChannelConfigurationRequest
79
+
80
+ DeleteSlackChannelConfigurationResult.struct_class = Types::DeleteSlackChannelConfigurationResult
81
+
82
+ DeleteSlackWorkspaceConfigurationRequest.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
83
+ DeleteSlackWorkspaceConfigurationRequest.struct_class = Types::DeleteSlackWorkspaceConfigurationRequest
84
+
85
+ DeleteSlackWorkspaceConfigurationResult.struct_class = Types::DeleteSlackWorkspaceConfigurationResult
86
+
87
+ GetAccountAliasRequest.struct_class = Types::GetAccountAliasRequest
88
+
89
+ GetAccountAliasResult.add_member(:account_alias, Shapes::ShapeRef.new(shape: awsAccountAlias, location_name: "accountAlias"))
90
+ GetAccountAliasResult.struct_class = Types::GetAccountAliasResult
91
+
92
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
93
+ InternalServerException.struct_class = Types::InternalServerException
94
+
95
+ ListSlackChannelConfigurationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: paginationToken, location_name: "nextToken"))
96
+ ListSlackChannelConfigurationsRequest.struct_class = Types::ListSlackChannelConfigurationsRequest
97
+
98
+ ListSlackChannelConfigurationsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: paginationToken, location_name: "nextToken"))
99
+ ListSlackChannelConfigurationsResult.add_member(:slack_channel_configurations, Shapes::ShapeRef.new(shape: slackChannelConfigurationList, required: true, location_name: "slackChannelConfigurations"))
100
+ ListSlackChannelConfigurationsResult.struct_class = Types::ListSlackChannelConfigurationsResult
101
+
102
+ ListSlackWorkspaceConfigurationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: paginationToken, location_name: "nextToken"))
103
+ ListSlackWorkspaceConfigurationsRequest.struct_class = Types::ListSlackWorkspaceConfigurationsRequest
104
+
105
+ ListSlackWorkspaceConfigurationsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: paginationToken, location_name: "nextToken"))
106
+ ListSlackWorkspaceConfigurationsResult.add_member(:slack_workspace_configurations, Shapes::ShapeRef.new(shape: SlackWorkspaceConfigurationList, location_name: "slackWorkspaceConfigurations"))
107
+ ListSlackWorkspaceConfigurationsResult.struct_class = Types::ListSlackWorkspaceConfigurationsResult
108
+
109
+ PutAccountAliasRequest.add_member(:account_alias, Shapes::ShapeRef.new(shape: awsAccountAlias, required: true, location_name: "accountAlias"))
110
+ PutAccountAliasRequest.struct_class = Types::PutAccountAliasRequest
111
+
112
+ PutAccountAliasResult.struct_class = Types::PutAccountAliasResult
113
+
114
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
115
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
116
+
117
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
118
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
119
+
120
+ SlackChannelConfiguration.add_member(:channel_id, Shapes::ShapeRef.new(shape: channelId, required: true, location_name: "channelId"))
121
+ SlackChannelConfiguration.add_member(:channel_name, Shapes::ShapeRef.new(shape: channelName, location_name: "channelName"))
122
+ SlackChannelConfiguration.add_member(:channel_role_arn, Shapes::ShapeRef.new(shape: roleArn, location_name: "channelRoleArn"))
123
+ SlackChannelConfiguration.add_member(:notify_on_add_correspondence_to_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnAddCorrespondenceToCase"))
124
+ SlackChannelConfiguration.add_member(:notify_on_case_severity, Shapes::ShapeRef.new(shape: NotificationSeverityLevel, location_name: "notifyOnCaseSeverity"))
125
+ SlackChannelConfiguration.add_member(:notify_on_create_or_reopen_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnCreateOrReopenCase"))
126
+ SlackChannelConfiguration.add_member(:notify_on_resolve_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnResolveCase"))
127
+ SlackChannelConfiguration.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
128
+ SlackChannelConfiguration.struct_class = Types::SlackChannelConfiguration
129
+
130
+ SlackWorkspaceConfiguration.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
131
+ SlackWorkspaceConfiguration.struct_class = Types::SlackWorkspaceConfiguration
132
+
133
+ SlackWorkspaceConfigurationList.member = Shapes::ShapeRef.new(shape: SlackWorkspaceConfiguration)
134
+
135
+ UpdateSlackChannelConfigurationRequest.add_member(:channel_id, Shapes::ShapeRef.new(shape: channelId, required: true, location_name: "channelId"))
136
+ UpdateSlackChannelConfigurationRequest.add_member(:channel_name, Shapes::ShapeRef.new(shape: channelName, location_name: "channelName"))
137
+ UpdateSlackChannelConfigurationRequest.add_member(:channel_role_arn, Shapes::ShapeRef.new(shape: roleArn, location_name: "channelRoleArn"))
138
+ UpdateSlackChannelConfigurationRequest.add_member(:notify_on_add_correspondence_to_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnAddCorrespondenceToCase"))
139
+ UpdateSlackChannelConfigurationRequest.add_member(:notify_on_case_severity, Shapes::ShapeRef.new(shape: NotificationSeverityLevel, location_name: "notifyOnCaseSeverity"))
140
+ UpdateSlackChannelConfigurationRequest.add_member(:notify_on_create_or_reopen_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnCreateOrReopenCase"))
141
+ UpdateSlackChannelConfigurationRequest.add_member(:notify_on_resolve_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnResolveCase"))
142
+ UpdateSlackChannelConfigurationRequest.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, required: true, location_name: "teamId"))
143
+ UpdateSlackChannelConfigurationRequest.struct_class = Types::UpdateSlackChannelConfigurationRequest
144
+
145
+ UpdateSlackChannelConfigurationResult.add_member(:channel_id, Shapes::ShapeRef.new(shape: channelId, location_name: "channelId"))
146
+ UpdateSlackChannelConfigurationResult.add_member(:channel_name, Shapes::ShapeRef.new(shape: channelName, location_name: "channelName"))
147
+ UpdateSlackChannelConfigurationResult.add_member(:channel_role_arn, Shapes::ShapeRef.new(shape: roleArn, location_name: "channelRoleArn"))
148
+ UpdateSlackChannelConfigurationResult.add_member(:notify_on_add_correspondence_to_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnAddCorrespondenceToCase"))
149
+ UpdateSlackChannelConfigurationResult.add_member(:notify_on_case_severity, Shapes::ShapeRef.new(shape: NotificationSeverityLevel, location_name: "notifyOnCaseSeverity"))
150
+ UpdateSlackChannelConfigurationResult.add_member(:notify_on_create_or_reopen_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnCreateOrReopenCase"))
151
+ UpdateSlackChannelConfigurationResult.add_member(:notify_on_resolve_case, Shapes::ShapeRef.new(shape: booleanValue, location_name: "notifyOnResolveCase"))
152
+ UpdateSlackChannelConfigurationResult.add_member(:team_id, Shapes::ShapeRef.new(shape: teamId, location_name: "teamId"))
153
+ UpdateSlackChannelConfigurationResult.struct_class = Types::UpdateSlackChannelConfigurationResult
154
+
155
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
156
+ ValidationException.struct_class = Types::ValidationException
157
+
158
+ slackChannelConfigurationList.member = Shapes::ShapeRef.new(shape: SlackChannelConfiguration)
159
+
160
+
161
+ # @api private
162
+ API = Seahorse::Model::Api.new.tap do |api|
163
+
164
+ api.version = "2021-08-20"
165
+
166
+ api.metadata = {
167
+ "apiVersion" => "2021-08-20",
168
+ "endpointPrefix" => "supportapp",
169
+ "jsonVersion" => "1.1",
170
+ "protocol" => "rest-json",
171
+ "serviceAbbreviation" => "SupportApp",
172
+ "serviceFullName" => "AWS Support App",
173
+ "serviceId" => "Support App",
174
+ "signatureVersion" => "v4",
175
+ "signingName" => "supportapp",
176
+ "uid" => "support-app-2021-08-20",
177
+ }
178
+
179
+ api.add_operation(:create_slack_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
180
+ o.name = "CreateSlackChannelConfiguration"
181
+ o.http_method = "POST"
182
+ o.http_request_uri = "/control/create-slack-channel-configuration"
183
+ o.input = Shapes::ShapeRef.new(shape: CreateSlackChannelConfigurationRequest)
184
+ o.output = Shapes::ShapeRef.new(shape: CreateSlackChannelConfigurationResult)
185
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
186
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
187
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
188
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
189
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
190
+ end)
191
+
192
+ api.add_operation(:delete_account_alias, Seahorse::Model::Operation.new.tap do |o|
193
+ o.name = "DeleteAccountAlias"
194
+ o.http_method = "POST"
195
+ o.http_request_uri = "/control/delete-account-alias"
196
+ o.input = Shapes::ShapeRef.new(shape: DeleteAccountAliasRequest)
197
+ o.output = Shapes::ShapeRef.new(shape: DeleteAccountAliasResult)
198
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
199
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
200
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
201
+ end)
202
+
203
+ api.add_operation(:delete_slack_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
204
+ o.name = "DeleteSlackChannelConfiguration"
205
+ o.http_method = "POST"
206
+ o.http_request_uri = "/control/delete-slack-channel-configuration"
207
+ o.input = Shapes::ShapeRef.new(shape: DeleteSlackChannelConfigurationRequest)
208
+ o.output = Shapes::ShapeRef.new(shape: DeleteSlackChannelConfigurationResult)
209
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
210
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
211
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
212
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
213
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
214
+ end)
215
+
216
+ api.add_operation(:delete_slack_workspace_configuration, Seahorse::Model::Operation.new.tap do |o|
217
+ o.name = "DeleteSlackWorkspaceConfiguration"
218
+ o.http_method = "POST"
219
+ o.http_request_uri = "/control/delete-slack-workspace-configuration"
220
+ o.input = Shapes::ShapeRef.new(shape: DeleteSlackWorkspaceConfigurationRequest)
221
+ o.output = Shapes::ShapeRef.new(shape: DeleteSlackWorkspaceConfigurationResult)
222
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
223
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
224
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
225
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
226
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
227
+ end)
228
+
229
+ api.add_operation(:get_account_alias, Seahorse::Model::Operation.new.tap do |o|
230
+ o.name = "GetAccountAlias"
231
+ o.http_method = "POST"
232
+ o.http_request_uri = "/control/get-account-alias"
233
+ o.input = Shapes::ShapeRef.new(shape: GetAccountAliasRequest)
234
+ o.output = Shapes::ShapeRef.new(shape: GetAccountAliasResult)
235
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
236
+ end)
237
+
238
+ api.add_operation(:list_slack_channel_configurations, Seahorse::Model::Operation.new.tap do |o|
239
+ o.name = "ListSlackChannelConfigurations"
240
+ o.http_method = "POST"
241
+ o.http_request_uri = "/control/list-slack-channel-configurations"
242
+ o.input = Shapes::ShapeRef.new(shape: ListSlackChannelConfigurationsRequest)
243
+ o.output = Shapes::ShapeRef.new(shape: ListSlackChannelConfigurationsResult)
244
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
245
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
246
+ o[:pager] = Aws::Pager.new(
247
+ tokens: {
248
+ "next_token" => "next_token"
249
+ }
250
+ )
251
+ end)
252
+
253
+ api.add_operation(:list_slack_workspace_configurations, Seahorse::Model::Operation.new.tap do |o|
254
+ o.name = "ListSlackWorkspaceConfigurations"
255
+ o.http_method = "POST"
256
+ o.http_request_uri = "/control/list-slack-workspace-configurations"
257
+ o.input = Shapes::ShapeRef.new(shape: ListSlackWorkspaceConfigurationsRequest)
258
+ o.output = Shapes::ShapeRef.new(shape: ListSlackWorkspaceConfigurationsResult)
259
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
260
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
261
+ o[:pager] = Aws::Pager.new(
262
+ tokens: {
263
+ "next_token" => "next_token"
264
+ }
265
+ )
266
+ end)
267
+
268
+ api.add_operation(:put_account_alias, Seahorse::Model::Operation.new.tap do |o|
269
+ o.name = "PutAccountAlias"
270
+ o.http_method = "POST"
271
+ o.http_request_uri = "/control/put-account-alias"
272
+ o.input = Shapes::ShapeRef.new(shape: PutAccountAliasRequest)
273
+ o.output = Shapes::ShapeRef.new(shape: PutAccountAliasResult)
274
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
275
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
276
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
277
+ end)
278
+
279
+ api.add_operation(:update_slack_channel_configuration, Seahorse::Model::Operation.new.tap do |o|
280
+ o.name = "UpdateSlackChannelConfiguration"
281
+ o.http_method = "POST"
282
+ o.http_request_uri = "/control/update-slack-channel-configuration"
283
+ o.input = Shapes::ShapeRef.new(shape: UpdateSlackChannelConfigurationRequest)
284
+ o.output = Shapes::ShapeRef.new(shape: UpdateSlackChannelConfigurationResult)
285
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
286
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
287
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
288
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
289
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
290
+ end)
291
+ end
292
+
293
+ end
294
+ end
File without changes
@@ -0,0 +1,134 @@
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::SupportApp
11
+
12
+ # When SupportApp returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::SupportApp::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all SupportApp errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::SupportApp::Errors::ServiceError
20
+ # # rescues all SupportApp 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
+ # * {ConflictException}
32
+ # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
35
+ # * {ValidationException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
39
+ module Errors
40
+
41
+ extend Aws::Errors::DynamicErrors
42
+
43
+ class AccessDeniedException < ServiceError
44
+
45
+ # @param [Seahorse::Client::RequestContext] context
46
+ # @param [String] message
47
+ # @param [Aws::SupportApp::Types::AccessDeniedException] data
48
+ def initialize(context, message, data = Aws::EmptyStructure.new)
49
+ super(context, message, data)
50
+ end
51
+
52
+ # @return [String]
53
+ def message
54
+ @message || @data[:message]
55
+ end
56
+ end
57
+
58
+ class ConflictException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::SupportApp::Types::ConflictException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+
67
+ # @return [String]
68
+ def message
69
+ @message || @data[:message]
70
+ end
71
+ end
72
+
73
+ class InternalServerException < ServiceError
74
+
75
+ # @param [Seahorse::Client::RequestContext] context
76
+ # @param [String] message
77
+ # @param [Aws::SupportApp::Types::InternalServerException] data
78
+ def initialize(context, message, data = Aws::EmptyStructure.new)
79
+ super(context, message, data)
80
+ end
81
+
82
+ # @return [String]
83
+ def message
84
+ @message || @data[:message]
85
+ end
86
+ end
87
+
88
+ class ResourceNotFoundException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::SupportApp::Types::ResourceNotFoundException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+
97
+ # @return [String]
98
+ def message
99
+ @message || @data[:message]
100
+ end
101
+ end
102
+
103
+ class ServiceQuotaExceededException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::SupportApp::Types::ServiceQuotaExceededException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+
112
+ # @return [String]
113
+ def message
114
+ @message || @data[:message]
115
+ end
116
+ end
117
+
118
+ class ValidationException < ServiceError
119
+
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::SupportApp::Types::ValidationException] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
126
+
127
+ # @return [String]
128
+ def message
129
+ @message || @data[:message]
130
+ end
131
+ end
132
+
133
+ end
134
+ 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::SupportApp
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