aws-sdk-rdsdataservice 1.49.0 → 1.51.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rdsdataservice/client.rb +4 -2
- data/lib/aws-sdk-rdsdataservice/client_api.rb +87 -20
- data/lib/aws-sdk-rdsdataservice/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-rdsdataservice/errors.rb +123 -0
- data/lib/aws-sdk-rdsdataservice/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-rdsdataservice/types.rb +136 -6
- data/lib/aws-sdk-rdsdataservice.rb +1 -1
- data/sig/client.rbs +217 -0
- data/sig/errors.rbs +59 -0
- data/sig/resource.rbs +79 -0
- data/sig/types.rbs +326 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fe5b76664f50b1d01635f48f5e276184df76f3c427d83f63e6ab09b8428c929
|
4
|
+
data.tar.gz: 74cf815310d29c0b5cb402e1281a525aeb82428afb09443356256b67f93b4d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bce34d62427c15ce7d1bf3b33e20544b78883e4ae62d99934749a4fcded3672f32e5410d6abc6d01ef07e460637f7b76fefff974bd682a8bf927ab3972338f7
|
7
|
+
data.tar.gz: 001a2b76a7a8aff4fd159025b0ca05914132176b0ee9d6a939f94f715846a1e77d68579657c52545636c433e82893b5bb76460b90067a9c1527b957933e48fc2
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.51.0 (2024-01-26)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.50.0 (2023-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds support for using RDS Data API with Aurora PostgreSQL Serverless v2 and provisioned DB clusters.
|
13
|
+
|
4
14
|
1.49.0 (2023-11-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.51.0
|
@@ -629,7 +629,9 @@ module Aws::RDSDataService
|
|
629
629
|
|
630
630
|
# Runs one or more SQL statements.
|
631
631
|
#
|
632
|
-
# <note markdown="1"> This operation
|
632
|
+
# <note markdown="1"> This operation isn't supported for Aurora PostgreSQL Serverless v2
|
633
|
+
# and provisioned DB clusters, and for Aurora Serverless v1 DB clusters,
|
634
|
+
# the operation is deprecated. Use the `BatchExecuteStatement` or
|
633
635
|
# `ExecuteStatement` operation.
|
634
636
|
#
|
635
637
|
# </note>
|
@@ -970,7 +972,7 @@ module Aws::RDSDataService
|
|
970
972
|
params: params,
|
971
973
|
config: config)
|
972
974
|
context[:gem_name] = 'aws-sdk-rdsdataservice'
|
973
|
-
context[:gem_version] = '1.
|
975
|
+
context[:gem_version] = '1.51.0'
|
974
976
|
Seahorse::Client::Request.new(handlers, context)
|
975
977
|
end
|
976
978
|
|
@@ -34,6 +34,9 @@ module Aws::RDSDataService
|
|
34
34
|
ColumnMetadata = Shapes::StructureShape.new(name: 'ColumnMetadata')
|
35
35
|
CommitTransactionRequest = Shapes::StructureShape.new(name: 'CommitTransactionRequest')
|
36
36
|
CommitTransactionResponse = Shapes::StructureShape.new(name: 'CommitTransactionResponse')
|
37
|
+
DatabaseErrorException = Shapes::StructureShape.new(name: 'DatabaseErrorException')
|
38
|
+
DatabaseNotFoundException = Shapes::StructureShape.new(name: 'DatabaseNotFoundException')
|
39
|
+
DatabaseUnavailableException = Shapes::StructureShape.new(name: 'DatabaseUnavailableException')
|
37
40
|
DbName = Shapes::StringShape.new(name: 'DbName')
|
38
41
|
DecimalReturnType = Shapes::StringShape.new(name: 'DecimalReturnType')
|
39
42
|
DoubleArray = Shapes::ListShape.new(name: 'DoubleArray')
|
@@ -46,9 +49,11 @@ module Aws::RDSDataService
|
|
46
49
|
FieldList = Shapes::ListShape.new(name: 'FieldList')
|
47
50
|
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
48
51
|
FormattedSqlRecords = Shapes::StringShape.new(name: 'FormattedSqlRecords')
|
52
|
+
HttpEndpointNotEnabledException = Shapes::StructureShape.new(name: 'HttpEndpointNotEnabledException')
|
49
53
|
Id = Shapes::StringShape.new(name: 'Id')
|
50
54
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
51
55
|
InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
|
56
|
+
InvalidSecretException = Shapes::StructureShape.new(name: 'InvalidSecretException')
|
52
57
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
53
58
|
LongArray = Shapes::ListShape.new(name: 'LongArray')
|
54
59
|
LongReturnType = Shapes::StringShape.new(name: 'LongReturnType')
|
@@ -65,6 +70,7 @@ module Aws::RDSDataService
|
|
65
70
|
RollbackTransactionRequest = Shapes::StructureShape.new(name: 'RollbackTransactionRequest')
|
66
71
|
RollbackTransactionResponse = Shapes::StructureShape.new(name: 'RollbackTransactionResponse')
|
67
72
|
Row = Shapes::ListShape.new(name: 'Row')
|
73
|
+
SecretsErrorException = Shapes::StructureShape.new(name: 'SecretsErrorException')
|
68
74
|
ServiceUnavailableError = Shapes::StructureShape.new(name: 'ServiceUnavailableError')
|
69
75
|
SqlParameter = Shapes::StructureShape.new(name: 'SqlParameter')
|
70
76
|
SqlParameterSets = Shapes::ListShape.new(name: 'SqlParameterSets')
|
@@ -77,8 +83,10 @@ module Aws::RDSDataService
|
|
77
83
|
String = Shapes::StringShape.new(name: 'String')
|
78
84
|
StringArray = Shapes::ListShape.new(name: 'StringArray')
|
79
85
|
StructValue = Shapes::StructureShape.new(name: 'StructValue')
|
86
|
+
TransactionNotFoundException = Shapes::StructureShape.new(name: 'TransactionNotFoundException')
|
80
87
|
TransactionStatus = Shapes::StringShape.new(name: 'TransactionStatus')
|
81
88
|
TypeHint = Shapes::StringShape.new(name: 'TypeHint')
|
89
|
+
UnsupportedResultException = Shapes::StructureShape.new(name: 'UnsupportedResultException')
|
82
90
|
UpdateResult = Shapes::StructureShape.new(name: 'UpdateResult')
|
83
91
|
UpdateResults = Shapes::ListShape.new(name: 'UpdateResults')
|
84
92
|
Value = Shapes::UnionShape.new(name: 'Value')
|
@@ -154,6 +162,14 @@ module Aws::RDSDataService
|
|
154
162
|
CommitTransactionResponse.add_member(:transaction_status, Shapes::ShapeRef.new(shape: TransactionStatus, location_name: "transactionStatus"))
|
155
163
|
CommitTransactionResponse.struct_class = Types::CommitTransactionResponse
|
156
164
|
|
165
|
+
DatabaseErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
166
|
+
DatabaseErrorException.struct_class = Types::DatabaseErrorException
|
167
|
+
|
168
|
+
DatabaseNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
169
|
+
DatabaseNotFoundException.struct_class = Types::DatabaseNotFoundException
|
170
|
+
|
171
|
+
DatabaseUnavailableException.struct_class = Types::DatabaseUnavailableException
|
172
|
+
|
157
173
|
DoubleArray.member = Shapes::ShapeRef.new(shape: BoxedDouble)
|
158
174
|
|
159
175
|
ExecuteSqlRequest.add_member(:db_cluster_or_instance_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "dbClusterOrInstanceArn"))
|
@@ -186,10 +202,10 @@ module Aws::RDSDataService
|
|
186
202
|
ExecuteStatementResponse.add_member(:formatted_records, Shapes::ShapeRef.new(shape: FormattedSqlRecords, location_name: "formattedRecords"))
|
187
203
|
ExecuteStatementResponse.struct_class = Types::ExecuteStatementResponse
|
188
204
|
|
189
|
-
Field.add_member(:is_null, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "isNull"
|
190
|
-
Field.add_member(:boolean_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "booleanValue"
|
191
|
-
Field.add_member(:long_value, Shapes::ShapeRef.new(shape: BoxedLong, location_name: "longValue"
|
192
|
-
Field.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"
|
205
|
+
Field.add_member(:is_null, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "isNull"))
|
206
|
+
Field.add_member(:boolean_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "booleanValue"))
|
207
|
+
Field.add_member(:long_value, Shapes::ShapeRef.new(shape: BoxedLong, location_name: "longValue"))
|
208
|
+
Field.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"))
|
193
209
|
Field.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "stringValue"))
|
194
210
|
Field.add_member(:blob_value, Shapes::ShapeRef.new(shape: Blob, location_name: "blobValue"))
|
195
211
|
Field.add_member(:array_value, Shapes::ShapeRef.new(shape: ArrayValue, location_name: "arrayValue"))
|
@@ -209,8 +225,14 @@ module Aws::RDSDataService
|
|
209
225
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
210
226
|
ForbiddenException.struct_class = Types::ForbiddenException
|
211
227
|
|
228
|
+
HttpEndpointNotEnabledException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
229
|
+
HttpEndpointNotEnabledException.struct_class = Types::HttpEndpointNotEnabledException
|
230
|
+
|
212
231
|
InternalServerErrorException.struct_class = Types::InternalServerErrorException
|
213
232
|
|
233
|
+
InvalidSecretException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
234
|
+
InvalidSecretException.struct_class = Types::InvalidSecretException
|
235
|
+
|
214
236
|
LongArray.member = Shapes::ShapeRef.new(shape: BoxedLong)
|
215
237
|
|
216
238
|
Metadata.member = Shapes::ShapeRef.new(shape: ColumnMetadata)
|
@@ -245,6 +267,9 @@ module Aws::RDSDataService
|
|
245
267
|
|
246
268
|
Row.member = Shapes::ShapeRef.new(shape: Value)
|
247
269
|
|
270
|
+
SecretsErrorException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
271
|
+
SecretsErrorException.struct_class = Types::SecretsErrorException
|
272
|
+
|
248
273
|
ServiceUnavailableError.struct_class = Types::ServiceUnavailableError
|
249
274
|
|
250
275
|
SqlParameter.add_member(:name, Shapes::ShapeRef.new(shape: ParameterName, location_name: "name"))
|
@@ -273,17 +298,23 @@ module Aws::RDSDataService
|
|
273
298
|
StructValue.add_member(:attributes, Shapes::ShapeRef.new(shape: ArrayValueList, location_name: "attributes"))
|
274
299
|
StructValue.struct_class = Types::StructValue
|
275
300
|
|
301
|
+
TransactionNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
302
|
+
TransactionNotFoundException.struct_class = Types::TransactionNotFoundException
|
303
|
+
|
304
|
+
UnsupportedResultException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
305
|
+
UnsupportedResultException.struct_class = Types::UnsupportedResultException
|
306
|
+
|
276
307
|
UpdateResult.add_member(:generated_fields, Shapes::ShapeRef.new(shape: FieldList, location_name: "generatedFields"))
|
277
308
|
UpdateResult.struct_class = Types::UpdateResult
|
278
309
|
|
279
310
|
UpdateResults.member = Shapes::ShapeRef.new(shape: UpdateResult)
|
280
311
|
|
281
|
-
Value.add_member(:is_null, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "isNull"
|
282
|
-
Value.add_member(:bit_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "bitValue"
|
283
|
-
Value.add_member(:big_int_value, Shapes::ShapeRef.new(shape: BoxedLong, location_name: "bigIntValue"
|
284
|
-
Value.add_member(:int_value, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "intValue"
|
285
|
-
Value.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"
|
286
|
-
Value.add_member(:real_value, Shapes::ShapeRef.new(shape: BoxedFloat, location_name: "realValue"
|
312
|
+
Value.add_member(:is_null, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "isNull"))
|
313
|
+
Value.add_member(:bit_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "bitValue"))
|
314
|
+
Value.add_member(:big_int_value, Shapes::ShapeRef.new(shape: BoxedLong, location_name: "bigIntValue"))
|
315
|
+
Value.add_member(:int_value, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "intValue"))
|
316
|
+
Value.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"))
|
317
|
+
Value.add_member(:real_value, Shapes::ShapeRef.new(shape: BoxedFloat, location_name: "realValue"))
|
287
318
|
Value.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "stringValue"))
|
288
319
|
Value.add_member(:blob_value, Shapes::ShapeRef.new(shape: Blob, location_name: "blobValue"))
|
289
320
|
Value.add_member(:array_values, Shapes::ShapeRef.new(shape: ArrayValueList, location_name: "arrayValues"))
|
@@ -326,12 +357,19 @@ module Aws::RDSDataService
|
|
326
357
|
o.http_request_uri = "/BatchExecute"
|
327
358
|
o.input = Shapes::ShapeRef.new(shape: BatchExecuteStatementRequest)
|
328
359
|
o.output = Shapes::ShapeRef.new(shape: BatchExecuteStatementResponse)
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: SecretsErrorException)
|
361
|
+
o.errors << Shapes::ShapeRef.new(shape: HttpEndpointNotEnabledException)
|
362
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseErrorException)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseUnavailableException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: TransactionNotFoundException)
|
365
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecretException)
|
366
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
367
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseNotFoundException)
|
329
369
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
330
370
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
331
371
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
332
372
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
333
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
334
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
335
373
|
end)
|
336
374
|
|
337
375
|
api.add_operation(:begin_transaction, Seahorse::Model::Operation.new.tap do |o|
|
@@ -340,12 +378,19 @@ module Aws::RDSDataService
|
|
340
378
|
o.http_request_uri = "/BeginTransaction"
|
341
379
|
o.input = Shapes::ShapeRef.new(shape: BeginTransactionRequest)
|
342
380
|
o.output = Shapes::ShapeRef.new(shape: BeginTransactionResponse)
|
381
|
+
o.errors << Shapes::ShapeRef.new(shape: SecretsErrorException)
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: HttpEndpointNotEnabledException)
|
383
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseErrorException)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseUnavailableException)
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: TransactionNotFoundException)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecretException)
|
387
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
388
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
389
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseNotFoundException)
|
343
390
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
344
391
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
345
392
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
346
393
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
347
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
348
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
349
394
|
end)
|
350
395
|
|
351
396
|
api.add_operation(:commit_transaction, Seahorse::Model::Operation.new.tap do |o|
|
@@ -354,12 +399,19 @@ module Aws::RDSDataService
|
|
354
399
|
o.http_request_uri = "/CommitTransaction"
|
355
400
|
o.input = Shapes::ShapeRef.new(shape: CommitTransactionRequest)
|
356
401
|
o.output = Shapes::ShapeRef.new(shape: CommitTransactionResponse)
|
402
|
+
o.errors << Shapes::ShapeRef.new(shape: SecretsErrorException)
|
403
|
+
o.errors << Shapes::ShapeRef.new(shape: HttpEndpointNotEnabledException)
|
404
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseErrorException)
|
405
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseUnavailableException)
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: TransactionNotFoundException)
|
407
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecretException)
|
408
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
409
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
410
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseNotFoundException)
|
357
411
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
358
412
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
359
413
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
360
414
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
361
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
362
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
363
415
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
364
416
|
end)
|
365
417
|
|
@@ -383,12 +435,20 @@ module Aws::RDSDataService
|
|
383
435
|
o.http_request_uri = "/Execute"
|
384
436
|
o.input = Shapes::ShapeRef.new(shape: ExecuteStatementRequest)
|
385
437
|
o.output = Shapes::ShapeRef.new(shape: ExecuteStatementResponse)
|
438
|
+
o.errors << Shapes::ShapeRef.new(shape: SecretsErrorException)
|
439
|
+
o.errors << Shapes::ShapeRef.new(shape: HttpEndpointNotEnabledException)
|
440
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseErrorException)
|
441
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseUnavailableException)
|
442
|
+
o.errors << Shapes::ShapeRef.new(shape: TransactionNotFoundException)
|
443
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecretException)
|
444
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
445
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
446
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseNotFoundException)
|
386
447
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
387
448
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
388
449
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
389
450
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
390
|
-
o.errors << Shapes::ShapeRef.new(shape:
|
391
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedResultException)
|
392
452
|
end)
|
393
453
|
|
394
454
|
api.add_operation(:rollback_transaction, Seahorse::Model::Operation.new.tap do |o|
|
@@ -397,12 +457,19 @@ module Aws::RDSDataService
|
|
397
457
|
o.http_request_uri = "/RollbackTransaction"
|
398
458
|
o.input = Shapes::ShapeRef.new(shape: RollbackTransactionRequest)
|
399
459
|
o.output = Shapes::ShapeRef.new(shape: RollbackTransactionResponse)
|
460
|
+
o.errors << Shapes::ShapeRef.new(shape: SecretsErrorException)
|
461
|
+
o.errors << Shapes::ShapeRef.new(shape: HttpEndpointNotEnabledException)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseErrorException)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseUnavailableException)
|
464
|
+
o.errors << Shapes::ShapeRef.new(shape: TransactionNotFoundException)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecretException)
|
466
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
467
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
468
|
+
o.errors << Shapes::ShapeRef.new(shape: DatabaseNotFoundException)
|
400
469
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
401
470
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
402
471
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
403
472
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
404
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
405
|
-
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
406
473
|
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
407
474
|
end)
|
408
475
|
end
|
@@ -32,7 +32,7 @@ module Aws::RDSDataService
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://rds-data-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -29,11 +29,19 @@ module Aws::RDSDataService
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AccessDeniedException}
|
31
31
|
# * {BadRequestException}
|
32
|
+
# * {DatabaseErrorException}
|
33
|
+
# * {DatabaseNotFoundException}
|
34
|
+
# * {DatabaseUnavailableException}
|
32
35
|
# * {ForbiddenException}
|
36
|
+
# * {HttpEndpointNotEnabledException}
|
33
37
|
# * {InternalServerErrorException}
|
38
|
+
# * {InvalidSecretException}
|
34
39
|
# * {NotFoundException}
|
40
|
+
# * {SecretsErrorException}
|
35
41
|
# * {ServiceUnavailableError}
|
36
42
|
# * {StatementTimeoutException}
|
43
|
+
# * {TransactionNotFoundException}
|
44
|
+
# * {UnsupportedResultException}
|
37
45
|
#
|
38
46
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
39
47
|
# if they are not defined above.
|
@@ -71,6 +79,46 @@ module Aws::RDSDataService
|
|
71
79
|
end
|
72
80
|
end
|
73
81
|
|
82
|
+
class DatabaseErrorException < ServiceError
|
83
|
+
|
84
|
+
# @param [Seahorse::Client::RequestContext] context
|
85
|
+
# @param [String] message
|
86
|
+
# @param [Aws::RDSDataService::Types::DatabaseErrorException] data
|
87
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
88
|
+
super(context, message, data)
|
89
|
+
end
|
90
|
+
|
91
|
+
# @return [String]
|
92
|
+
def message
|
93
|
+
@message || @data[:message]
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class DatabaseNotFoundException < ServiceError
|
98
|
+
|
99
|
+
# @param [Seahorse::Client::RequestContext] context
|
100
|
+
# @param [String] message
|
101
|
+
# @param [Aws::RDSDataService::Types::DatabaseNotFoundException] data
|
102
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
103
|
+
super(context, message, data)
|
104
|
+
end
|
105
|
+
|
106
|
+
# @return [String]
|
107
|
+
def message
|
108
|
+
@message || @data[:message]
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class DatabaseUnavailableException < ServiceError
|
113
|
+
|
114
|
+
# @param [Seahorse::Client::RequestContext] context
|
115
|
+
# @param [String] message
|
116
|
+
# @param [Aws::RDSDataService::Types::DatabaseUnavailableException] data
|
117
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
118
|
+
super(context, message, data)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
74
122
|
class ForbiddenException < ServiceError
|
75
123
|
|
76
124
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -86,6 +134,21 @@ module Aws::RDSDataService
|
|
86
134
|
end
|
87
135
|
end
|
88
136
|
|
137
|
+
class HttpEndpointNotEnabledException < ServiceError
|
138
|
+
|
139
|
+
# @param [Seahorse::Client::RequestContext] context
|
140
|
+
# @param [String] message
|
141
|
+
# @param [Aws::RDSDataService::Types::HttpEndpointNotEnabledException] data
|
142
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
143
|
+
super(context, message, data)
|
144
|
+
end
|
145
|
+
|
146
|
+
# @return [String]
|
147
|
+
def message
|
148
|
+
@message || @data[:message]
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
89
152
|
class InternalServerErrorException < ServiceError
|
90
153
|
|
91
154
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -96,6 +159,21 @@ module Aws::RDSDataService
|
|
96
159
|
end
|
97
160
|
end
|
98
161
|
|
162
|
+
class InvalidSecretException < ServiceError
|
163
|
+
|
164
|
+
# @param [Seahorse::Client::RequestContext] context
|
165
|
+
# @param [String] message
|
166
|
+
# @param [Aws::RDSDataService::Types::InvalidSecretException] data
|
167
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
168
|
+
super(context, message, data)
|
169
|
+
end
|
170
|
+
|
171
|
+
# @return [String]
|
172
|
+
def message
|
173
|
+
@message || @data[:message]
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
99
177
|
class NotFoundException < ServiceError
|
100
178
|
|
101
179
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -111,6 +189,21 @@ module Aws::RDSDataService
|
|
111
189
|
end
|
112
190
|
end
|
113
191
|
|
192
|
+
class SecretsErrorException < ServiceError
|
193
|
+
|
194
|
+
# @param [Seahorse::Client::RequestContext] context
|
195
|
+
# @param [String] message
|
196
|
+
# @param [Aws::RDSDataService::Types::SecretsErrorException] data
|
197
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
198
|
+
super(context, message, data)
|
199
|
+
end
|
200
|
+
|
201
|
+
# @return [String]
|
202
|
+
def message
|
203
|
+
@message || @data[:message]
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
114
207
|
class ServiceUnavailableError < ServiceError
|
115
208
|
|
116
209
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -141,5 +234,35 @@ module Aws::RDSDataService
|
|
141
234
|
end
|
142
235
|
end
|
143
236
|
|
237
|
+
class TransactionNotFoundException < ServiceError
|
238
|
+
|
239
|
+
# @param [Seahorse::Client::RequestContext] context
|
240
|
+
# @param [String] message
|
241
|
+
# @param [Aws::RDSDataService::Types::TransactionNotFoundException] data
|
242
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
243
|
+
super(context, message, data)
|
244
|
+
end
|
245
|
+
|
246
|
+
# @return [String]
|
247
|
+
def message
|
248
|
+
@message || @data[:message]
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class UnsupportedResultException < ServiceError
|
253
|
+
|
254
|
+
# @param [Seahorse::Client::RequestContext] context
|
255
|
+
# @param [String] message
|
256
|
+
# @param [Aws::RDSDataService::Types::UnsupportedResultException] data
|
257
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
258
|
+
super(context, message, data)
|
259
|
+
end
|
260
|
+
|
261
|
+
# @return [String]
|
262
|
+
def message
|
263
|
+
@message || @data[:message]
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
144
267
|
end
|
145
268
|
end
|
@@ -14,6 +14,7 @@ module Aws::RDSDataService
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::RDSDataService::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|