aws-sdk-finspace 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,295 @@
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::Finspace
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AttributeMap = Shapes::MapShape.new(name: 'AttributeMap')
18
+ CreateEnvironmentRequest = Shapes::StructureShape.new(name: 'CreateEnvironmentRequest')
19
+ CreateEnvironmentResponse = Shapes::StructureShape.new(name: 'CreateEnvironmentResponse')
20
+ DeleteEnvironmentRequest = Shapes::StructureShape.new(name: 'DeleteEnvironmentRequest')
21
+ DeleteEnvironmentResponse = Shapes::StructureShape.new(name: 'DeleteEnvironmentResponse')
22
+ Description = Shapes::StringShape.new(name: 'Description')
23
+ Environment = Shapes::StructureShape.new(name: 'Environment')
24
+ EnvironmentArn = Shapes::StringShape.new(name: 'EnvironmentArn')
25
+ EnvironmentList = Shapes::ListShape.new(name: 'EnvironmentList')
26
+ EnvironmentName = Shapes::StringShape.new(name: 'EnvironmentName')
27
+ EnvironmentStatus = Shapes::StringShape.new(name: 'EnvironmentStatus')
28
+ FederationAttributeKey = Shapes::StringShape.new(name: 'FederationAttributeKey')
29
+ FederationMode = Shapes::StringShape.new(name: 'FederationMode')
30
+ FederationParameters = Shapes::StructureShape.new(name: 'FederationParameters')
31
+ FederationProviderName = Shapes::StringShape.new(name: 'FederationProviderName')
32
+ GetEnvironmentRequest = Shapes::StructureShape.new(name: 'GetEnvironmentRequest')
33
+ GetEnvironmentResponse = Shapes::StructureShape.new(name: 'GetEnvironmentResponse')
34
+ IdType = Shapes::StringShape.new(name: 'IdType')
35
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
36
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
37
+ KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
38
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
39
+ ListEnvironmentsRequest = Shapes::StructureShape.new(name: 'ListEnvironmentsRequest')
40
+ ListEnvironmentsResponse = Shapes::StructureShape.new(name: 'ListEnvironmentsResponse')
41
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
42
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
43
+ PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
44
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
45
+ ResultLimit = Shapes::IntegerShape.new(name: 'ResultLimit')
46
+ SamlMetadataDocument = Shapes::StringShape.new(name: 'SamlMetadataDocument')
47
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
48
+ SmsDomainUrl = Shapes::StringShape.new(name: 'SmsDomainUrl')
49
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
50
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
51
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
52
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
53
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
54
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
55
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
56
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
57
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
58
+ UpdateEnvironmentRequest = Shapes::StructureShape.new(name: 'UpdateEnvironmentRequest')
59
+ UpdateEnvironmentResponse = Shapes::StructureShape.new(name: 'UpdateEnvironmentResponse')
60
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
61
+ errorMessage = Shapes::StringShape.new(name: 'errorMessage')
62
+ url = Shapes::StringShape.new(name: 'url')
63
+ urn = Shapes::StringShape.new(name: 'urn')
64
+
65
+ AccessDeniedException.struct_class = Types::AccessDeniedException
66
+
67
+ AttributeMap.key = Shapes::ShapeRef.new(shape: FederationAttributeKey)
68
+ AttributeMap.value = Shapes::ShapeRef.new(shape: url)
69
+
70
+ CreateEnvironmentRequest.add_member(:name, Shapes::ShapeRef.new(shape: EnvironmentName, required: true, location_name: "name"))
71
+ CreateEnvironmentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
72
+ CreateEnvironmentRequest.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
73
+ CreateEnvironmentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
74
+ CreateEnvironmentRequest.add_member(:federation_mode, Shapes::ShapeRef.new(shape: FederationMode, location_name: "federationMode"))
75
+ CreateEnvironmentRequest.add_member(:federation_parameters, Shapes::ShapeRef.new(shape: FederationParameters, location_name: "federationParameters"))
76
+ CreateEnvironmentRequest.struct_class = Types::CreateEnvironmentRequest
77
+
78
+ CreateEnvironmentResponse.add_member(:environment_id, Shapes::ShapeRef.new(shape: IdType, location_name: "environmentId"))
79
+ CreateEnvironmentResponse.add_member(:environment_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, location_name: "environmentArn"))
80
+ CreateEnvironmentResponse.add_member(:environment_url, Shapes::ShapeRef.new(shape: url, location_name: "environmentUrl"))
81
+ CreateEnvironmentResponse.struct_class = Types::CreateEnvironmentResponse
82
+
83
+ DeleteEnvironmentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: IdType, required: true, location: "uri", location_name: "environmentId"))
84
+ DeleteEnvironmentRequest.struct_class = Types::DeleteEnvironmentRequest
85
+
86
+ DeleteEnvironmentResponse.struct_class = Types::DeleteEnvironmentResponse
87
+
88
+ Environment.add_member(:name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "name"))
89
+ Environment.add_member(:environment_id, Shapes::ShapeRef.new(shape: IdType, location_name: "environmentId"))
90
+ Environment.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: IdType, location_name: "awsAccountId"))
91
+ Environment.add_member(:status, Shapes::ShapeRef.new(shape: EnvironmentStatus, location_name: "status"))
92
+ Environment.add_member(:environment_url, Shapes::ShapeRef.new(shape: url, location_name: "environmentUrl"))
93
+ Environment.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
94
+ Environment.add_member(:environment_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, location_name: "environmentArn"))
95
+ Environment.add_member(:sage_maker_studio_domain_url, Shapes::ShapeRef.new(shape: SmsDomainUrl, location_name: "sageMakerStudioDomainUrl"))
96
+ Environment.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
97
+ Environment.add_member(:dedicated_service_account_id, Shapes::ShapeRef.new(shape: IdType, location_name: "dedicatedServiceAccountId"))
98
+ Environment.add_member(:federation_mode, Shapes::ShapeRef.new(shape: FederationMode, location_name: "federationMode"))
99
+ Environment.add_member(:federation_parameters, Shapes::ShapeRef.new(shape: FederationParameters, location_name: "federationParameters"))
100
+ Environment.struct_class = Types::Environment
101
+
102
+ EnvironmentList.member = Shapes::ShapeRef.new(shape: Environment)
103
+
104
+ FederationParameters.add_member(:saml_metadata_document, Shapes::ShapeRef.new(shape: SamlMetadataDocument, location_name: "samlMetadataDocument"))
105
+ FederationParameters.add_member(:saml_metadata_url, Shapes::ShapeRef.new(shape: url, location_name: "samlMetadataURL"))
106
+ FederationParameters.add_member(:application_call_back_url, Shapes::ShapeRef.new(shape: url, location_name: "applicationCallBackURL"))
107
+ FederationParameters.add_member(:federation_urn, Shapes::ShapeRef.new(shape: urn, location_name: "federationURN"))
108
+ FederationParameters.add_member(:federation_provider_name, Shapes::ShapeRef.new(shape: FederationProviderName, location_name: "federationProviderName"))
109
+ FederationParameters.add_member(:attribute_map, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "attributeMap"))
110
+ FederationParameters.struct_class = Types::FederationParameters
111
+
112
+ GetEnvironmentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: IdType, required: true, location: "uri", location_name: "environmentId"))
113
+ GetEnvironmentRequest.struct_class = Types::GetEnvironmentRequest
114
+
115
+ GetEnvironmentResponse.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "environment"))
116
+ GetEnvironmentResponse.struct_class = Types::GetEnvironmentResponse
117
+
118
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
119
+ InternalServerException.struct_class = Types::InternalServerException
120
+
121
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
122
+ InvalidRequestException.struct_class = Types::InvalidRequestException
123
+
124
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
125
+ LimitExceededException.struct_class = Types::LimitExceededException
126
+
127
+ ListEnvironmentsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location: "querystring", location_name: "nextToken"))
128
+ ListEnvironmentsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ResultLimit, location: "querystring", location_name: "maxResults"))
129
+ ListEnvironmentsRequest.struct_class = Types::ListEnvironmentsRequest
130
+
131
+ ListEnvironmentsResponse.add_member(:environments, Shapes::ShapeRef.new(shape: EnvironmentList, location_name: "environments"))
132
+ ListEnvironmentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "nextToken"))
133
+ ListEnvironmentsResponse.struct_class = Types::ListEnvironmentsResponse
134
+
135
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, required: true, location: "uri", location_name: "resourceArn"))
136
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
137
+
138
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
139
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
140
+
141
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
142
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
143
+
144
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
145
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
146
+
147
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
148
+
149
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
150
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
151
+
152
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, required: true, location: "uri", location_name: "resourceArn"))
153
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
154
+ TagResourceRequest.struct_class = Types::TagResourceRequest
155
+
156
+ TagResourceResponse.struct_class = Types::TagResourceResponse
157
+
158
+ ThrottlingException.struct_class = Types::ThrottlingException
159
+
160
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, required: true, location: "uri", location_name: "resourceArn"))
161
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
162
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
163
+
164
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
165
+
166
+ UpdateEnvironmentRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: IdType, required: true, location: "uri", location_name: "environmentId"))
167
+ UpdateEnvironmentRequest.add_member(:name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "name"))
168
+ UpdateEnvironmentRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
169
+ UpdateEnvironmentRequest.add_member(:federation_mode, Shapes::ShapeRef.new(shape: FederationMode, location_name: "federationMode"))
170
+ UpdateEnvironmentRequest.add_member(:federation_parameters, Shapes::ShapeRef.new(shape: FederationParameters, location_name: "federationParameters"))
171
+ UpdateEnvironmentRequest.struct_class = Types::UpdateEnvironmentRequest
172
+
173
+ UpdateEnvironmentResponse.add_member(:environment, Shapes::ShapeRef.new(shape: Environment, location_name: "environment"))
174
+ UpdateEnvironmentResponse.struct_class = Types::UpdateEnvironmentResponse
175
+
176
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
177
+ ValidationException.struct_class = Types::ValidationException
178
+
179
+
180
+ # @api private
181
+ API = Seahorse::Model::Api.new.tap do |api|
182
+
183
+ api.version = "2021-03-12"
184
+
185
+ api.metadata = {
186
+ "apiVersion" => "2021-03-12",
187
+ "endpointPrefix" => "finspace",
188
+ "jsonVersion" => "1.1",
189
+ "protocol" => "rest-json",
190
+ "serviceAbbreviation" => "finspace",
191
+ "serviceFullName" => "FinSpace User Environment Management service",
192
+ "serviceId" => "finspace",
193
+ "signatureVersion" => "v4",
194
+ "signingName" => "finspace",
195
+ "uid" => "finspace-2021-03-12",
196
+ }
197
+
198
+ api.add_operation(:create_environment, Seahorse::Model::Operation.new.tap do |o|
199
+ o.name = "CreateEnvironment"
200
+ o.http_method = "POST"
201
+ o.http_request_uri = "/environment"
202
+ o.input = Shapes::ShapeRef.new(shape: CreateEnvironmentRequest)
203
+ o.output = Shapes::ShapeRef.new(shape: CreateEnvironmentResponse)
204
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
205
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
206
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
207
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
208
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
209
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
210
+ end)
211
+
212
+ api.add_operation(:delete_environment, Seahorse::Model::Operation.new.tap do |o|
213
+ o.name = "DeleteEnvironment"
214
+ o.http_method = "DELETE"
215
+ o.http_request_uri = "/environment/{environmentId}"
216
+ o.input = Shapes::ShapeRef.new(shape: DeleteEnvironmentRequest)
217
+ o.output = Shapes::ShapeRef.new(shape: DeleteEnvironmentResponse)
218
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
219
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
220
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
221
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
222
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
223
+ end)
224
+
225
+ api.add_operation(:get_environment, Seahorse::Model::Operation.new.tap do |o|
226
+ o.name = "GetEnvironment"
227
+ o.http_method = "GET"
228
+ o.http_request_uri = "/environment/{environmentId}"
229
+ o.input = Shapes::ShapeRef.new(shape: GetEnvironmentRequest)
230
+ o.output = Shapes::ShapeRef.new(shape: GetEnvironmentResponse)
231
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
232
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
233
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
234
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
235
+ end)
236
+
237
+ api.add_operation(:list_environments, Seahorse::Model::Operation.new.tap do |o|
238
+ o.name = "ListEnvironments"
239
+ o.http_method = "GET"
240
+ o.http_request_uri = "/environment"
241
+ o.input = Shapes::ShapeRef.new(shape: ListEnvironmentsRequest)
242
+ o.output = Shapes::ShapeRef.new(shape: ListEnvironmentsResponse)
243
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
244
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
245
+ end)
246
+
247
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
248
+ o.name = "ListTagsForResource"
249
+ o.http_method = "GET"
250
+ o.http_request_uri = "/tags/{resourceArn}"
251
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
252
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
253
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
254
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
255
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
256
+ end)
257
+
258
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
259
+ o.name = "TagResource"
260
+ o.http_method = "POST"
261
+ o.http_request_uri = "/tags/{resourceArn}"
262
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
263
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
264
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
265
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
266
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
267
+ end)
268
+
269
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
270
+ o.name = "UntagResource"
271
+ o.http_method = "DELETE"
272
+ o.http_request_uri = "/tags/{resourceArn}"
273
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
274
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
275
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
276
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
277
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
278
+ end)
279
+
280
+ api.add_operation(:update_environment, Seahorse::Model::Operation.new.tap do |o|
281
+ o.name = "UpdateEnvironment"
282
+ o.http_method = "PUT"
283
+ o.http_request_uri = "/environment/{environmentId}"
284
+ o.input = Shapes::ShapeRef.new(shape: UpdateEnvironmentRequest)
285
+ o.output = Shapes::ShapeRef.new(shape: UpdateEnvironmentResponse)
286
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
287
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
288
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
289
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
290
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
291
+ end)
292
+ end
293
+
294
+ end
295
+ end
File without changes
@@ -0,0 +1,156 @@
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::Finspace
11
+
12
+ # When Finspace returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Finspace::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Finspace errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Finspace::Errors::ServiceError
20
+ # # rescues all Finspace 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
+ # * {InternalServerException}
32
+ # * {InvalidRequestException}
33
+ # * {LimitExceededException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ServiceQuotaExceededException}
36
+ # * {ThrottlingException}
37
+ # * {ValidationException}
38
+ #
39
+ # Additionally, error classes are dynamically generated for service errors based on the error code
40
+ # if they are not defined above.
41
+ module Errors
42
+
43
+ extend Aws::Errors::DynamicErrors
44
+
45
+ class AccessDeniedException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::Finspace::Types::AccessDeniedException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+ end
54
+
55
+ class InternalServerException < ServiceError
56
+
57
+ # @param [Seahorse::Client::RequestContext] context
58
+ # @param [String] message
59
+ # @param [Aws::Finspace::Types::InternalServerException] data
60
+ def initialize(context, message, data = Aws::EmptyStructure.new)
61
+ super(context, message, data)
62
+ end
63
+
64
+ # @return [String]
65
+ def message
66
+ @message || @data[:message]
67
+ end
68
+ end
69
+
70
+ class InvalidRequestException < ServiceError
71
+
72
+ # @param [Seahorse::Client::RequestContext] context
73
+ # @param [String] message
74
+ # @param [Aws::Finspace::Types::InvalidRequestException] data
75
+ def initialize(context, message, data = Aws::EmptyStructure.new)
76
+ super(context, message, data)
77
+ end
78
+
79
+ # @return [String]
80
+ def message
81
+ @message || @data[:message]
82
+ end
83
+ end
84
+
85
+ class LimitExceededException < ServiceError
86
+
87
+ # @param [Seahorse::Client::RequestContext] context
88
+ # @param [String] message
89
+ # @param [Aws::Finspace::Types::LimitExceededException] data
90
+ def initialize(context, message, data = Aws::EmptyStructure.new)
91
+ super(context, message, data)
92
+ end
93
+
94
+ # @return [String]
95
+ def message
96
+ @message || @data[:message]
97
+ end
98
+ end
99
+
100
+ class ResourceNotFoundException < ServiceError
101
+
102
+ # @param [Seahorse::Client::RequestContext] context
103
+ # @param [String] message
104
+ # @param [Aws::Finspace::Types::ResourceNotFoundException] data
105
+ def initialize(context, message, data = Aws::EmptyStructure.new)
106
+ super(context, message, data)
107
+ end
108
+
109
+ # @return [String]
110
+ def message
111
+ @message || @data[:message]
112
+ end
113
+ end
114
+
115
+ class ServiceQuotaExceededException < ServiceError
116
+
117
+ # @param [Seahorse::Client::RequestContext] context
118
+ # @param [String] message
119
+ # @param [Aws::Finspace::Types::ServiceQuotaExceededException] data
120
+ def initialize(context, message, data = Aws::EmptyStructure.new)
121
+ super(context, message, data)
122
+ end
123
+
124
+ # @return [String]
125
+ def message
126
+ @message || @data[:message]
127
+ end
128
+ end
129
+
130
+ class ThrottlingException < ServiceError
131
+
132
+ # @param [Seahorse::Client::RequestContext] context
133
+ # @param [String] message
134
+ # @param [Aws::Finspace::Types::ThrottlingException] data
135
+ def initialize(context, message, data = Aws::EmptyStructure.new)
136
+ super(context, message, data)
137
+ end
138
+ end
139
+
140
+ class ValidationException < ServiceError
141
+
142
+ # @param [Seahorse::Client::RequestContext] context
143
+ # @param [String] message
144
+ # @param [Aws::Finspace::Types::ValidationException] data
145
+ def initialize(context, message, data = Aws::EmptyStructure.new)
146
+ super(context, message, data)
147
+ end
148
+
149
+ # @return [String]
150
+ def message
151
+ @message || @data[:message]
152
+ end
153
+ end
154
+
155
+ end
156
+ end