aws-sdk-rdsdataservice 1.11.0 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-rdsdataservice.rb +1 -1
- data/lib/aws-sdk-rdsdataservice/client.rb +64 -25
- data/lib/aws-sdk-rdsdataservice/client_api.rb +41 -11
- data/lib/aws-sdk-rdsdataservice/errors.rb +6 -6
- data/lib/aws-sdk-rdsdataservice/types.rb +567 -424
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c0cdf2db26f407774001b9f1dd517e9b02e4ba1
|
4
|
+
data.tar.gz: 1f2001b5549b8d2dc300d35be81a0933a0369e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24713a7908f01d801a1b2795f3606405098fd4f615739279670472d1ee1ac5f329304c17891bef9fc6250e1e70870f300e94e12d100e84268ccd3a082669c3a1
|
7
|
+
data.tar.gz: 6516595ea31c82f605b1d3bcd6ecabe501eb83278d8d58db4bb14a3e4079775bc4716991b254069d5899ee14804d052bb631893b834e5e65618316cc3ebbb8ee
|
@@ -261,12 +261,10 @@ module Aws::RDSDataService
|
|
261
261
|
# can provide a significant performance improvement over individual
|
262
262
|
# insert and update operations.
|
263
263
|
#
|
264
|
-
#
|
264
|
+
# If a call isn't part of a transaction because it doesn't include the
|
265
265
|
# `transactionID` parameter, changes that result from the call are
|
266
266
|
# committed automatically.
|
267
267
|
#
|
268
|
-
# </important>
|
269
|
-
#
|
270
268
|
# @option params [String] :database
|
271
269
|
# The name of the database.
|
272
270
|
#
|
@@ -306,6 +304,17 @@ module Aws::RDSDataService
|
|
306
304
|
# {
|
307
305
|
# name: "ParameterName",
|
308
306
|
# value: {
|
307
|
+
# array_value: {
|
308
|
+
# array_values: [
|
309
|
+
# {
|
310
|
+
# # recursive ArrayValue
|
311
|
+
# },
|
312
|
+
# ],
|
313
|
+
# boolean_values: [false],
|
314
|
+
# double_values: [1.0],
|
315
|
+
# long_values: [1],
|
316
|
+
# string_values: ["String"],
|
317
|
+
# },
|
309
318
|
# blob_value: "data",
|
310
319
|
# boolean_value: false,
|
311
320
|
# double_value: 1.0,
|
@@ -327,6 +336,16 @@ module Aws::RDSDataService
|
|
327
336
|
#
|
328
337
|
# resp.update_results #=> Array
|
329
338
|
# resp.update_results[0].generated_fields #=> Array
|
339
|
+
# resp.update_results[0].generated_fields[0].array_value.array_values #=> Array
|
340
|
+
# resp.update_results[0].generated_fields[0].array_value.array_values[0] #=> Types::ArrayValue
|
341
|
+
# resp.update_results[0].generated_fields[0].array_value.boolean_values #=> Array
|
342
|
+
# resp.update_results[0].generated_fields[0].array_value.boolean_values[0] #=> Boolean
|
343
|
+
# resp.update_results[0].generated_fields[0].array_value.double_values #=> Array
|
344
|
+
# resp.update_results[0].generated_fields[0].array_value.double_values[0] #=> Float
|
345
|
+
# resp.update_results[0].generated_fields[0].array_value.long_values #=> Array
|
346
|
+
# resp.update_results[0].generated_fields[0].array_value.long_values[0] #=> Integer
|
347
|
+
# resp.update_results[0].generated_fields[0].array_value.string_values #=> Array
|
348
|
+
# resp.update_results[0].generated_fields[0].array_value.string_values[0] #=> String
|
330
349
|
# resp.update_results[0].generated_fields[0].blob_value #=> String
|
331
350
|
# resp.update_results[0].generated_fields[0].boolean_value #=> Boolean
|
332
351
|
# resp.update_results[0].generated_fields[0].double_value #=> Float
|
@@ -345,18 +364,7 @@ module Aws::RDSDataService
|
|
345
364
|
|
346
365
|
# Starts a SQL transaction.
|
347
366
|
#
|
348
|
-
#
|
349
|
-
# terminated and rolled back automatically after 24 hours.
|
350
|
-
#
|
351
|
-
# A transaction times out if no calls use its transaction ID in three
|
352
|
-
# minutes. If a transaction times out before it's committed, it's
|
353
|
-
# rolled back automatically.
|
354
|
-
#
|
355
|
-
# DDL statements inside a transaction cause an implicit commit. We
|
356
|
-
# recommend that you run each DDL statement in a separate
|
357
|
-
# `ExecuteStatement` call with `continueAfterTimeout` enabled.
|
358
|
-
#
|
359
|
-
# </important>
|
367
|
+
# <important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important>
|
360
368
|
#
|
361
369
|
# @option params [String] :database
|
362
370
|
# The name of the database.
|
@@ -435,11 +443,9 @@ module Aws::RDSDataService
|
|
435
443
|
|
436
444
|
# Runs one or more SQL statements.
|
437
445
|
#
|
438
|
-
#
|
446
|
+
# This operation is deprecated. Use the `BatchExecuteStatement` or
|
439
447
|
# `ExecuteStatement` operation.
|
440
448
|
#
|
441
|
-
# </important>
|
442
|
-
#
|
443
449
|
# @option params [required, String] :aws_secret_store_arn
|
444
450
|
# The Amazon Resource Name (ARN) of the secret that enables access to
|
445
451
|
# the DB cluster.
|
@@ -520,12 +526,10 @@ module Aws::RDSDataService
|
|
520
526
|
|
521
527
|
# Runs a SQL statement against a database.
|
522
528
|
#
|
523
|
-
#
|
529
|
+
# If a call isn't part of a transaction because it doesn't include the
|
524
530
|
# `transactionID` parameter, changes that result from the call are
|
525
531
|
# committed automatically.
|
526
532
|
#
|
527
|
-
# </important>
|
528
|
-
#
|
529
533
|
# The response size limit is 1 MB or 1,000 records. If the call returns
|
530
534
|
# more than 1 MB of response data or over 1,000 records, the call is
|
531
535
|
# terminated.
|
@@ -535,13 +539,11 @@ module Aws::RDSDataService
|
|
535
539
|
# the call times out. By default, the statement stops running when the
|
536
540
|
# call times out.
|
537
541
|
#
|
538
|
-
#
|
542
|
+
# For DDL statements, we recommend continuing to run the statement after
|
539
543
|
# the call times out. When a DDL statement terminates before it is
|
540
544
|
# finished running, it can result in errors and possibly corrupted data
|
541
545
|
# structures.
|
542
546
|
#
|
543
|
-
# </important>
|
544
|
-
#
|
545
547
|
# @option params [String] :database
|
546
548
|
# The name of the database.
|
547
549
|
#
|
@@ -554,6 +556,9 @@ module Aws::RDSDataService
|
|
554
556
|
# @option params [required, String] :resource_arn
|
555
557
|
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
556
558
|
#
|
559
|
+
# @option params [Types::ResultSetOptions] :result_set_options
|
560
|
+
# Options that control how the result set is returned.
|
561
|
+
#
|
557
562
|
# @option params [String] :schema
|
558
563
|
# The name of the database schema.
|
559
564
|
#
|
@@ -588,6 +593,17 @@ module Aws::RDSDataService
|
|
588
593
|
# {
|
589
594
|
# name: "ParameterName",
|
590
595
|
# value: {
|
596
|
+
# array_value: {
|
597
|
+
# array_values: [
|
598
|
+
# {
|
599
|
+
# # recursive ArrayValue
|
600
|
+
# },
|
601
|
+
# ],
|
602
|
+
# boolean_values: [false],
|
603
|
+
# double_values: [1.0],
|
604
|
+
# long_values: [1],
|
605
|
+
# string_values: ["String"],
|
606
|
+
# },
|
591
607
|
# blob_value: "data",
|
592
608
|
# boolean_value: false,
|
593
609
|
# double_value: 1.0,
|
@@ -598,6 +614,9 @@ module Aws::RDSDataService
|
|
598
614
|
# },
|
599
615
|
# ],
|
600
616
|
# resource_arn: "Arn", # required
|
617
|
+
# result_set_options: {
|
618
|
+
# decimal_return_type: "DOUBLE_OR_LONG", # accepts DOUBLE_OR_LONG, STRING
|
619
|
+
# },
|
601
620
|
# schema: "DbName",
|
602
621
|
# secret_arn: "Arn", # required
|
603
622
|
# sql: "SqlStatement", # required
|
@@ -622,6 +641,16 @@ module Aws::RDSDataService
|
|
622
641
|
# resp.column_metadata[0].type #=> Integer
|
623
642
|
# resp.column_metadata[0].type_name #=> String
|
624
643
|
# resp.generated_fields #=> Array
|
644
|
+
# resp.generated_fields[0].array_value.array_values #=> Array
|
645
|
+
# resp.generated_fields[0].array_value.array_values[0] #=> Types::ArrayValue
|
646
|
+
# resp.generated_fields[0].array_value.boolean_values #=> Array
|
647
|
+
# resp.generated_fields[0].array_value.boolean_values[0] #=> Boolean
|
648
|
+
# resp.generated_fields[0].array_value.double_values #=> Array
|
649
|
+
# resp.generated_fields[0].array_value.double_values[0] #=> Float
|
650
|
+
# resp.generated_fields[0].array_value.long_values #=> Array
|
651
|
+
# resp.generated_fields[0].array_value.long_values[0] #=> Integer
|
652
|
+
# resp.generated_fields[0].array_value.string_values #=> Array
|
653
|
+
# resp.generated_fields[0].array_value.string_values[0] #=> String
|
625
654
|
# resp.generated_fields[0].blob_value #=> String
|
626
655
|
# resp.generated_fields[0].boolean_value #=> Boolean
|
627
656
|
# resp.generated_fields[0].double_value #=> Float
|
@@ -631,6 +660,16 @@ module Aws::RDSDataService
|
|
631
660
|
# resp.number_of_records_updated #=> Integer
|
632
661
|
# resp.records #=> Array
|
633
662
|
# resp.records[0] #=> Array
|
663
|
+
# resp.records[0][0].array_value.array_values #=> Array
|
664
|
+
# resp.records[0][0].array_value.array_values[0] #=> Types::ArrayValue
|
665
|
+
# resp.records[0][0].array_value.boolean_values #=> Array
|
666
|
+
# resp.records[0][0].array_value.boolean_values[0] #=> Boolean
|
667
|
+
# resp.records[0][0].array_value.double_values #=> Array
|
668
|
+
# resp.records[0][0].array_value.double_values[0] #=> Float
|
669
|
+
# resp.records[0][0].array_value.long_values #=> Array
|
670
|
+
# resp.records[0][0].array_value.long_values[0] #=> Integer
|
671
|
+
# resp.records[0][0].array_value.string_values #=> Array
|
672
|
+
# resp.records[0][0].array_value.string_values[0] #=> String
|
634
673
|
# resp.records[0][0].blob_value #=> String
|
635
674
|
# resp.records[0][0].boolean_value #=> Boolean
|
636
675
|
# resp.records[0][0].double_value #=> Float
|
@@ -697,7 +736,7 @@ module Aws::RDSDataService
|
|
697
736
|
params: params,
|
698
737
|
config: config)
|
699
738
|
context[:gem_name] = 'aws-sdk-rdsdataservice'
|
700
|
-
context[:gem_version] = '1.
|
739
|
+
context[:gem_version] = '1.12.0'
|
701
740
|
Seahorse::Client::Request.new(handlers, context)
|
702
741
|
end
|
703
742
|
|
@@ -12,6 +12,8 @@ module Aws::RDSDataService
|
|
12
12
|
include Seahorse::Model
|
13
13
|
|
14
14
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
15
|
+
ArrayOfArray = Shapes::ListShape.new(name: 'ArrayOfArray')
|
16
|
+
ArrayValue = Shapes::StructureShape.new(name: 'ArrayValue')
|
15
17
|
ArrayValueList = Shapes::ListShape.new(name: 'ArrayValueList')
|
16
18
|
BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
|
17
19
|
BatchExecuteStatementRequest = Shapes::StructureShape.new(name: 'BatchExecuteStatementRequest')
|
@@ -20,6 +22,7 @@ module Aws::RDSDataService
|
|
20
22
|
BeginTransactionResponse = Shapes::StructureShape.new(name: 'BeginTransactionResponse')
|
21
23
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
22
24
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
25
|
+
BooleanArray = Shapes::ListShape.new(name: 'BooleanArray')
|
23
26
|
BoxedBoolean = Shapes::BooleanShape.new(name: 'BoxedBoolean')
|
24
27
|
BoxedDouble = Shapes::FloatShape.new(name: 'BoxedDouble')
|
25
28
|
BoxedFloat = Shapes::FloatShape.new(name: 'BoxedFloat')
|
@@ -29,6 +32,8 @@ module Aws::RDSDataService
|
|
29
32
|
CommitTransactionRequest = Shapes::StructureShape.new(name: 'CommitTransactionRequest')
|
30
33
|
CommitTransactionResponse = Shapes::StructureShape.new(name: 'CommitTransactionResponse')
|
31
34
|
DbName = Shapes::StringShape.new(name: 'DbName')
|
35
|
+
DecimalReturnType = Shapes::StringShape.new(name: 'DecimalReturnType')
|
36
|
+
DoubleArray = Shapes::ListShape.new(name: 'DoubleArray')
|
32
37
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
33
38
|
ExecuteSqlRequest = Shapes::StructureShape.new(name: 'ExecuteSqlRequest')
|
34
39
|
ExecuteSqlResponse = Shapes::StructureShape.new(name: 'ExecuteSqlResponse')
|
@@ -41,6 +46,7 @@ module Aws::RDSDataService
|
|
41
46
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
42
47
|
InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
|
43
48
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
49
|
+
LongArray = Shapes::ListShape.new(name: 'LongArray')
|
44
50
|
Metadata = Shapes::ListShape.new(name: 'Metadata')
|
45
51
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
46
52
|
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
@@ -49,6 +55,7 @@ module Aws::RDSDataService
|
|
49
55
|
RecordsUpdated = Shapes::IntegerShape.new(name: 'RecordsUpdated')
|
50
56
|
ResultFrame = Shapes::StructureShape.new(name: 'ResultFrame')
|
51
57
|
ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
|
58
|
+
ResultSetOptions = Shapes::StructureShape.new(name: 'ResultSetOptions')
|
52
59
|
RollbackTransactionRequest = Shapes::StructureShape.new(name: 'RollbackTransactionRequest')
|
53
60
|
RollbackTransactionResponse = Shapes::StructureShape.new(name: 'RollbackTransactionResponse')
|
54
61
|
Row = Shapes::ListShape.new(name: 'Row')
|
@@ -62,12 +69,22 @@ module Aws::RDSDataService
|
|
62
69
|
SqlStatementResults = Shapes::ListShape.new(name: 'SqlStatementResults')
|
63
70
|
StatementTimeoutException = Shapes::StructureShape.new(name: 'StatementTimeoutException')
|
64
71
|
String = Shapes::StringShape.new(name: 'String')
|
72
|
+
StringArray = Shapes::ListShape.new(name: 'StringArray')
|
65
73
|
StructValue = Shapes::StructureShape.new(name: 'StructValue')
|
66
74
|
TransactionStatus = Shapes::StringShape.new(name: 'TransactionStatus')
|
67
75
|
UpdateResult = Shapes::StructureShape.new(name: 'UpdateResult')
|
68
76
|
UpdateResults = Shapes::ListShape.new(name: 'UpdateResults')
|
69
77
|
Value = Shapes::StructureShape.new(name: 'Value')
|
70
78
|
|
79
|
+
ArrayOfArray.member = Shapes::ShapeRef.new(shape: ArrayValue)
|
80
|
+
|
81
|
+
ArrayValue.add_member(:array_values, Shapes::ShapeRef.new(shape: ArrayOfArray, location_name: "arrayValues"))
|
82
|
+
ArrayValue.add_member(:boolean_values, Shapes::ShapeRef.new(shape: BooleanArray, location_name: "booleanValues"))
|
83
|
+
ArrayValue.add_member(:double_values, Shapes::ShapeRef.new(shape: DoubleArray, location_name: "doubleValues"))
|
84
|
+
ArrayValue.add_member(:long_values, Shapes::ShapeRef.new(shape: LongArray, location_name: "longValues"))
|
85
|
+
ArrayValue.add_member(:string_values, Shapes::ShapeRef.new(shape: StringArray, location_name: "stringValues"))
|
86
|
+
ArrayValue.struct_class = Types::ArrayValue
|
87
|
+
|
71
88
|
ArrayValueList.member = Shapes::ShapeRef.new(shape: Value)
|
72
89
|
|
73
90
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -94,6 +111,8 @@ module Aws::RDSDataService
|
|
94
111
|
BeginTransactionResponse.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, location_name: "transactionId"))
|
95
112
|
BeginTransactionResponse.struct_class = Types::BeginTransactionResponse
|
96
113
|
|
114
|
+
BooleanArray.member = Shapes::ShapeRef.new(shape: BoxedBoolean)
|
115
|
+
|
97
116
|
ColumnMetadata.add_member(:array_base_column_type, Shapes::ShapeRef.new(shape: Integer, location_name: "arrayBaseColumnType"))
|
98
117
|
ColumnMetadata.add_member(:is_auto_increment, Shapes::ShapeRef.new(shape: Boolean, location_name: "isAutoIncrement"))
|
99
118
|
ColumnMetadata.add_member(:is_case_sensitive, Shapes::ShapeRef.new(shape: Boolean, location_name: "isCaseSensitive"))
|
@@ -118,6 +137,8 @@ module Aws::RDSDataService
|
|
118
137
|
CommitTransactionResponse.add_member(:transaction_status, Shapes::ShapeRef.new(shape: TransactionStatus, location_name: "transactionStatus"))
|
119
138
|
CommitTransactionResponse.struct_class = Types::CommitTransactionResponse
|
120
139
|
|
140
|
+
DoubleArray.member = Shapes::ShapeRef.new(shape: BoxedDouble)
|
141
|
+
|
121
142
|
ExecuteSqlRequest.add_member(:aws_secret_store_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "awsSecretStoreArn"))
|
122
143
|
ExecuteSqlRequest.add_member(:database, Shapes::ShapeRef.new(shape: DbName, location_name: "database"))
|
123
144
|
ExecuteSqlRequest.add_member(:db_cluster_or_instance_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "dbClusterOrInstanceArn"))
|
@@ -133,6 +154,7 @@ module Aws::RDSDataService
|
|
133
154
|
ExecuteStatementRequest.add_member(:include_result_metadata, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeResultMetadata"))
|
134
155
|
ExecuteStatementRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "parameters"))
|
135
156
|
ExecuteStatementRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
157
|
+
ExecuteStatementRequest.add_member(:result_set_options, Shapes::ShapeRef.new(shape: ResultSetOptions, location_name: "resultSetOptions"))
|
136
158
|
ExecuteStatementRequest.add_member(:schema, Shapes::ShapeRef.new(shape: DbName, location_name: "schema"))
|
137
159
|
ExecuteStatementRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
|
138
160
|
ExecuteStatementRequest.add_member(:sql, Shapes::ShapeRef.new(shape: SqlStatement, required: true, location_name: "sql"))
|
@@ -145,6 +167,7 @@ module Aws::RDSDataService
|
|
145
167
|
ExecuteStatementResponse.add_member(:records, Shapes::ShapeRef.new(shape: SqlRecords, location_name: "records"))
|
146
168
|
ExecuteStatementResponse.struct_class = Types::ExecuteStatementResponse
|
147
169
|
|
170
|
+
Field.add_member(:array_value, Shapes::ShapeRef.new(shape: ArrayValue, location_name: "arrayValue"))
|
148
171
|
Field.add_member(:blob_value, Shapes::ShapeRef.new(shape: Blob, location_name: "blobValue"))
|
149
172
|
Field.add_member(:boolean_value, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "booleanValue"))
|
150
173
|
Field.add_member(:double_value, Shapes::ShapeRef.new(shape: BoxedDouble, location_name: "doubleValue"))
|
@@ -158,6 +181,8 @@ module Aws::RDSDataService
|
|
158
181
|
ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
159
182
|
ForbiddenException.struct_class = Types::ForbiddenException
|
160
183
|
|
184
|
+
LongArray.member = Shapes::ShapeRef.new(shape: BoxedLong)
|
185
|
+
|
161
186
|
Metadata.member = Shapes::ShapeRef.new(shape: ColumnMetadata)
|
162
187
|
|
163
188
|
NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -176,6 +201,9 @@ module Aws::RDSDataService
|
|
176
201
|
ResultSetMetadata.add_member(:column_metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "columnMetadata"))
|
177
202
|
ResultSetMetadata.struct_class = Types::ResultSetMetadata
|
178
203
|
|
204
|
+
ResultSetOptions.add_member(:decimal_return_type, Shapes::ShapeRef.new(shape: DecimalReturnType, location_name: "decimalReturnType"))
|
205
|
+
ResultSetOptions.struct_class = Types::ResultSetOptions
|
206
|
+
|
179
207
|
RollbackTransactionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
180
208
|
RollbackTransactionRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "secretArn"))
|
181
209
|
RollbackTransactionRequest.add_member(:transaction_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "transactionId"))
|
@@ -206,6 +234,8 @@ module Aws::RDSDataService
|
|
206
234
|
StatementTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
207
235
|
StatementTimeoutException.struct_class = Types::StatementTimeoutException
|
208
236
|
|
237
|
+
StringArray.member = Shapes::ShapeRef.new(shape: String)
|
238
|
+
|
209
239
|
StructValue.add_member(:attributes, Shapes::ShapeRef.new(shape: ArrayValueList, location_name: "attributes"))
|
210
240
|
StructValue.struct_class = Types::StructValue
|
211
241
|
|
@@ -251,10 +281,10 @@ module Aws::RDSDataService
|
|
251
281
|
o.input = Shapes::ShapeRef.new(shape: BatchExecuteStatementRequest)
|
252
282
|
o.output = Shapes::ShapeRef.new(shape: BatchExecuteStatementResponse)
|
253
283
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
254
|
-
o.errors << Shapes::ShapeRef.new(shape:
|
284
|
+
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
255
285
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
286
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
256
287
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
257
|
-
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
258
288
|
end)
|
259
289
|
|
260
290
|
api.add_operation(:begin_transaction, Seahorse::Model::Operation.new.tap do |o|
|
@@ -264,10 +294,10 @@ module Aws::RDSDataService
|
|
264
294
|
o.input = Shapes::ShapeRef.new(shape: BeginTransactionRequest)
|
265
295
|
o.output = Shapes::ShapeRef.new(shape: BeginTransactionResponse)
|
266
296
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
267
|
-
o.errors << Shapes::ShapeRef.new(shape:
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
268
298
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
299
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
269
300
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
270
|
-
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
271
301
|
end)
|
272
302
|
|
273
303
|
api.add_operation(:commit_transaction, Seahorse::Model::Operation.new.tap do |o|
|
@@ -277,10 +307,10 @@ module Aws::RDSDataService
|
|
277
307
|
o.input = Shapes::ShapeRef.new(shape: CommitTransactionRequest)
|
278
308
|
o.output = Shapes::ShapeRef.new(shape: CommitTransactionResponse)
|
279
309
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
280
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
281
310
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
282
|
-
o.errors << Shapes::ShapeRef.new(shape:
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
283
312
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
284
314
|
end)
|
285
315
|
|
286
316
|
api.add_operation(:execute_sql, Seahorse::Model::Operation.new.tap do |o|
|
@@ -291,8 +321,8 @@ module Aws::RDSDataService
|
|
291
321
|
o.input = Shapes::ShapeRef.new(shape: ExecuteSqlRequest)
|
292
322
|
o.output = Shapes::ShapeRef.new(shape: ExecuteSqlResponse)
|
293
323
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
294
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
295
324
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
296
326
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
297
327
|
end)
|
298
328
|
|
@@ -303,10 +333,10 @@ module Aws::RDSDataService
|
|
303
333
|
o.input = Shapes::ShapeRef.new(shape: ExecuteStatementRequest)
|
304
334
|
o.output = Shapes::ShapeRef.new(shape: ExecuteStatementResponse)
|
305
335
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
306
|
-
o.errors << Shapes::ShapeRef.new(shape:
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
307
337
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
308
339
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
309
|
-
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
310
340
|
end)
|
311
341
|
|
312
342
|
api.add_operation(:rollback_transaction, Seahorse::Model::Operation.new.tap do |o|
|
@@ -316,10 +346,10 @@ module Aws::RDSDataService
|
|
316
346
|
o.input = Shapes::ShapeRef.new(shape: RollbackTransactionRequest)
|
317
347
|
o.output = Shapes::ShapeRef.new(shape: RollbackTransactionResponse)
|
318
348
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
319
|
-
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
320
349
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
321
|
-
o.errors << Shapes::ShapeRef.new(shape:
|
350
|
+
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
322
351
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableError)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
323
353
|
end)
|
324
354
|
end
|
325
355
|
|
@@ -10,11 +10,11 @@ module Aws::RDSDataService
|
|
10
10
|
|
11
11
|
extend Aws::Errors::DynamicErrors
|
12
12
|
|
13
|
-
class
|
13
|
+
class BadRequestException < ServiceError
|
14
14
|
|
15
15
|
# @param [Seahorse::Client::RequestContext] context
|
16
16
|
# @param [String] message
|
17
|
-
# @param [Aws::RDSDataService::Types::
|
17
|
+
# @param [Aws::RDSDataService::Types::BadRequestException] data
|
18
18
|
def initialize(context, message, data = Aws::EmptyStructure.new)
|
19
19
|
super(context, message, data)
|
20
20
|
end
|
@@ -26,11 +26,11 @@ module Aws::RDSDataService
|
|
26
26
|
|
27
27
|
end
|
28
28
|
|
29
|
-
class
|
29
|
+
class ForbiddenException < ServiceError
|
30
30
|
|
31
31
|
# @param [Seahorse::Client::RequestContext] context
|
32
32
|
# @param [String] message
|
33
|
-
# @param [Aws::RDSDataService::Types::
|
33
|
+
# @param [Aws::RDSDataService::Types::ForbiddenException] data
|
34
34
|
def initialize(context, message, data = Aws::EmptyStructure.new)
|
35
35
|
super(context, message, data)
|
36
36
|
end
|
@@ -42,11 +42,11 @@ module Aws::RDSDataService
|
|
42
42
|
|
43
43
|
end
|
44
44
|
|
45
|
-
class
|
45
|
+
class NotFoundException < ServiceError
|
46
46
|
|
47
47
|
# @param [Seahorse::Client::RequestContext] context
|
48
48
|
# @param [String] message
|
49
|
-
# @param [Aws::RDSDataService::Types::
|
49
|
+
# @param [Aws::RDSDataService::Types::NotFoundException] data
|
50
50
|
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
51
|
super(context, message, data)
|
52
52
|
end
|
@@ -8,34 +8,69 @@
|
|
8
8
|
module Aws::RDSDataService
|
9
9
|
module Types
|
10
10
|
|
11
|
-
#
|
11
|
+
# Contains an array.
|
12
12
|
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# @return [Array<Types::Record>]
|
13
|
+
# @note When making an API call, you may pass ArrayValue
|
14
|
+
# data as a hash:
|
16
15
|
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
16
|
+
# {
|
17
|
+
# array_values: [
|
18
|
+
# {
|
19
|
+
# array_values: {
|
20
|
+
# # recursive ArrayOfArray
|
21
|
+
# },
|
22
|
+
# boolean_values: [false],
|
23
|
+
# double_values: [1.0],
|
24
|
+
# long_values: [1],
|
25
|
+
# string_values: ["String"],
|
26
|
+
# },
|
27
|
+
# ],
|
28
|
+
# boolean_values: [false],
|
29
|
+
# double_values: [1.0],
|
30
|
+
# long_values: [1],
|
31
|
+
# string_values: ["String"],
|
32
|
+
# }
|
20
33
|
#
|
21
|
-
#
|
34
|
+
# @!attribute [rw] array_values
|
35
|
+
# An array of arrays.
|
36
|
+
# @return [Array<Types::ArrayValue>]
|
22
37
|
#
|
23
|
-
|
24
|
-
|
25
|
-
|
38
|
+
# @!attribute [rw] boolean_values
|
39
|
+
# An array of Boolean values.
|
40
|
+
# @return [Array<Boolean>]
|
41
|
+
#
|
42
|
+
# @!attribute [rw] double_values
|
43
|
+
# An array of integers.
|
44
|
+
# @return [Array<Float>]
|
45
|
+
#
|
46
|
+
# @!attribute [rw] long_values
|
47
|
+
# An array of floating point numbers.
|
48
|
+
# @return [Array<Integer>]
|
49
|
+
#
|
50
|
+
# @!attribute [rw] string_values
|
51
|
+
# An array of strings.
|
52
|
+
# @return [Array<String>]
|
53
|
+
#
|
54
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ArrayValue AWS API Documentation
|
55
|
+
#
|
56
|
+
class ArrayValue < Struct.new(
|
57
|
+
:array_values,
|
58
|
+
:boolean_values,
|
59
|
+
:double_values,
|
60
|
+
:long_values,
|
61
|
+
:string_values)
|
26
62
|
include Aws::Structure
|
27
63
|
end
|
28
64
|
|
29
|
-
#
|
30
|
-
# found.
|
65
|
+
# There is an error in the call or in a SQL statement.
|
31
66
|
#
|
32
67
|
# @!attribute [rw] message
|
33
|
-
# The error message returned by this `
|
68
|
+
# The error message returned by this `BadRequestException` error.
|
34
69
|
# @return [String]
|
35
70
|
#
|
36
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
71
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BadRequestException AWS API Documentation
|
37
72
|
#
|
38
|
-
class
|
73
|
+
class BadRequestException < Struct.new(
|
39
74
|
:message)
|
40
75
|
include Aws::Structure
|
41
76
|
end
|
@@ -53,6 +88,17 @@ module Aws::RDSDataService
|
|
53
88
|
# {
|
54
89
|
# name: "ParameterName",
|
55
90
|
# value: {
|
91
|
+
# array_value: {
|
92
|
+
# array_values: [
|
93
|
+
# {
|
94
|
+
# # recursive ArrayValue
|
95
|
+
# },
|
96
|
+
# ],
|
97
|
+
# boolean_values: [false],
|
98
|
+
# double_values: [1.0],
|
99
|
+
# long_values: [1],
|
100
|
+
# string_values: ["String"],
|
101
|
+
# },
|
56
102
|
# blob_value: "data",
|
57
103
|
# boolean_value: false,
|
58
104
|
# double_value: 1.0,
|
@@ -116,100 +162,195 @@ module Aws::RDSDataService
|
|
116
162
|
include Aws::Structure
|
117
163
|
end
|
118
164
|
|
119
|
-
# The response elements represent the output of a
|
120
|
-
#
|
165
|
+
# The response elements represent the output of a SQL statement over an
|
166
|
+
# array of data.
|
121
167
|
#
|
122
|
-
# @!attribute [rw]
|
123
|
-
# The
|
124
|
-
# @return [
|
168
|
+
# @!attribute [rw] update_results
|
169
|
+
# The execution results of each batch entry.
|
170
|
+
# @return [Array<Types::UpdateResult>]
|
125
171
|
#
|
126
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
172
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementResponse AWS API Documentation
|
127
173
|
#
|
128
|
-
class
|
129
|
-
:
|
174
|
+
class BatchExecuteStatementResponse < Struct.new(
|
175
|
+
:update_results)
|
130
176
|
include Aws::Structure
|
131
177
|
end
|
132
178
|
|
133
|
-
#
|
179
|
+
# The request parameters represent the input of a request to start a SQL
|
180
|
+
# transaction.
|
134
181
|
#
|
135
|
-
# @note When making an API call, you may pass
|
182
|
+
# @note When making an API call, you may pass BeginTransactionRequest
|
136
183
|
# data as a hash:
|
137
184
|
#
|
138
185
|
# {
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
# double_value: 1.0,
|
144
|
-
# is_null: false,
|
145
|
-
# long_value: 1,
|
146
|
-
# string_value: "String",
|
147
|
-
# },
|
186
|
+
# database: "DbName",
|
187
|
+
# resource_arn: "Arn", # required
|
188
|
+
# schema: "DbName",
|
189
|
+
# secret_arn: "Arn", # required
|
148
190
|
# }
|
149
191
|
#
|
192
|
+
# @!attribute [rw] database
|
193
|
+
# The name of the database.
|
194
|
+
# @return [String]
|
195
|
+
#
|
196
|
+
# @!attribute [rw] resource_arn
|
197
|
+
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
198
|
+
# @return [String]
|
199
|
+
#
|
200
|
+
# @!attribute [rw] schema
|
201
|
+
# The name of the database schema.
|
202
|
+
# @return [String]
|
203
|
+
#
|
204
|
+
# @!attribute [rw] secret_arn
|
205
|
+
# The name or ARN of the secret that enables access to the DB cluster.
|
206
|
+
# @return [String]
|
207
|
+
#
|
208
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionRequest AWS API Documentation
|
209
|
+
#
|
210
|
+
class BeginTransactionRequest < Struct.new(
|
211
|
+
:database,
|
212
|
+
:resource_arn,
|
213
|
+
:schema,
|
214
|
+
:secret_arn)
|
215
|
+
include Aws::Structure
|
216
|
+
end
|
217
|
+
|
218
|
+
# The response elements represent the output of a request to start a SQL
|
219
|
+
# transaction.
|
220
|
+
#
|
221
|
+
# @!attribute [rw] transaction_id
|
222
|
+
# The transaction ID of the transaction started by the call.
|
223
|
+
# @return [String]
|
224
|
+
#
|
225
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionResponse AWS API Documentation
|
226
|
+
#
|
227
|
+
class BeginTransactionResponse < Struct.new(
|
228
|
+
:transaction_id)
|
229
|
+
include Aws::Structure
|
230
|
+
end
|
231
|
+
|
232
|
+
# Contains the metadata for a column.
|
233
|
+
#
|
234
|
+
# @!attribute [rw] array_base_column_type
|
235
|
+
# The type of the column.
|
236
|
+
# @return [Integer]
|
237
|
+
#
|
238
|
+
# @!attribute [rw] is_auto_increment
|
239
|
+
# A value that indicates whether the column increments automatically.
|
240
|
+
# @return [Boolean]
|
241
|
+
#
|
242
|
+
# @!attribute [rw] is_case_sensitive
|
243
|
+
# A value that indicates whether the column is case-sensitive.
|
244
|
+
# @return [Boolean]
|
245
|
+
#
|
246
|
+
# @!attribute [rw] is_currency
|
247
|
+
# A value that indicates whether the column contains currency values.
|
248
|
+
# @return [Boolean]
|
249
|
+
#
|
250
|
+
# @!attribute [rw] is_signed
|
251
|
+
# A value that indicates whether an integer column is signed.
|
252
|
+
# @return [Boolean]
|
253
|
+
#
|
254
|
+
# @!attribute [rw] label
|
255
|
+
# The label for the column.
|
256
|
+
# @return [String]
|
257
|
+
#
|
150
258
|
# @!attribute [rw] name
|
151
|
-
# The name of the
|
259
|
+
# The name of the column.
|
152
260
|
# @return [String]
|
153
261
|
#
|
154
|
-
# @!attribute [rw]
|
155
|
-
#
|
156
|
-
# @return [
|
262
|
+
# @!attribute [rw] nullable
|
263
|
+
# A value that indicates whether the column is nullable.
|
264
|
+
# @return [Integer]
|
157
265
|
#
|
158
|
-
#
|
266
|
+
# @!attribute [rw] precision
|
267
|
+
# The precision value of a decimal number column.
|
268
|
+
# @return [Integer]
|
159
269
|
#
|
160
|
-
|
270
|
+
# @!attribute [rw] scale
|
271
|
+
# The scale value of a decimal number column.
|
272
|
+
# @return [Integer]
|
273
|
+
#
|
274
|
+
# @!attribute [rw] schema_name
|
275
|
+
# The name of the schema that owns the table that includes the column.
|
276
|
+
# @return [String]
|
277
|
+
#
|
278
|
+
# @!attribute [rw] table_name
|
279
|
+
# The name of the table that includes the column.
|
280
|
+
# @return [String]
|
281
|
+
#
|
282
|
+
# @!attribute [rw] type
|
283
|
+
# The type of the column.
|
284
|
+
# @return [Integer]
|
285
|
+
#
|
286
|
+
# @!attribute [rw] type_name
|
287
|
+
# The database-specific data type of the column.
|
288
|
+
# @return [String]
|
289
|
+
#
|
290
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ColumnMetadata AWS API Documentation
|
291
|
+
#
|
292
|
+
class ColumnMetadata < Struct.new(
|
293
|
+
:array_base_column_type,
|
294
|
+
:is_auto_increment,
|
295
|
+
:is_case_sensitive,
|
296
|
+
:is_currency,
|
297
|
+
:is_signed,
|
298
|
+
:label,
|
161
299
|
:name,
|
162
|
-
:
|
300
|
+
:nullable,
|
301
|
+
:precision,
|
302
|
+
:scale,
|
303
|
+
:schema_name,
|
304
|
+
:table_name,
|
305
|
+
:type,
|
306
|
+
:type_name)
|
163
307
|
include Aws::Structure
|
164
308
|
end
|
165
309
|
|
166
|
-
#
|
310
|
+
# The request parameters represent the input of a commit transaction
|
311
|
+
# request.
|
167
312
|
#
|
168
|
-
# @note When making an API call, you may pass
|
313
|
+
# @note When making an API call, you may pass CommitTransactionRequest
|
169
314
|
# data as a hash:
|
170
315
|
#
|
171
316
|
# {
|
172
|
-
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
# is_null: false,
|
176
|
-
# long_value: 1,
|
177
|
-
# string_value: "String",
|
317
|
+
# resource_arn: "Arn", # required
|
318
|
+
# secret_arn: "Arn", # required
|
319
|
+
# transaction_id: "Id", # required
|
178
320
|
# }
|
179
321
|
#
|
180
|
-
# @!attribute [rw]
|
181
|
-
#
|
322
|
+
# @!attribute [rw] resource_arn
|
323
|
+
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
182
324
|
# @return [String]
|
183
325
|
#
|
184
|
-
# @!attribute [rw]
|
185
|
-
#
|
186
|
-
# @return [
|
326
|
+
# @!attribute [rw] secret_arn
|
327
|
+
# The name or ARN of the secret that enables access to the DB cluster.
|
328
|
+
# @return [String]
|
187
329
|
#
|
188
|
-
# @!attribute [rw]
|
189
|
-
#
|
190
|
-
# @return [
|
330
|
+
# @!attribute [rw] transaction_id
|
331
|
+
# The identifier of the transaction to end and commit.
|
332
|
+
# @return [String]
|
191
333
|
#
|
192
|
-
#
|
193
|
-
# A NULL value.
|
194
|
-
# @return [Boolean]
|
334
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionRequest AWS API Documentation
|
195
335
|
#
|
196
|
-
|
197
|
-
|
198
|
-
|
336
|
+
class CommitTransactionRequest < Struct.new(
|
337
|
+
:resource_arn,
|
338
|
+
:secret_arn,
|
339
|
+
:transaction_id)
|
340
|
+
include Aws::Structure
|
341
|
+
end
|
342
|
+
|
343
|
+
# The response elements represent the output of a commit transaction
|
344
|
+
# request.
|
199
345
|
#
|
200
|
-
# @!attribute [rw]
|
201
|
-
#
|
346
|
+
# @!attribute [rw] transaction_status
|
347
|
+
# The status of the commit operation.
|
202
348
|
# @return [String]
|
203
349
|
#
|
204
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
350
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionResponse AWS API Documentation
|
205
351
|
#
|
206
|
-
class
|
207
|
-
:
|
208
|
-
:boolean_value,
|
209
|
-
:double_value,
|
210
|
-
:is_null,
|
211
|
-
:long_value,
|
212
|
-
:string_value)
|
352
|
+
class CommitTransactionResponse < Struct.new(
|
353
|
+
:transaction_status)
|
213
354
|
include Aws::Structure
|
214
355
|
end
|
215
356
|
|
@@ -263,278 +404,363 @@ module Aws::RDSDataService
|
|
263
404
|
include Aws::Structure
|
264
405
|
end
|
265
406
|
|
266
|
-
#
|
407
|
+
# The response elements represent the output of a request to run one or
|
408
|
+
# more SQL statements.
|
267
409
|
#
|
268
|
-
# @!attribute [rw]
|
269
|
-
# The
|
270
|
-
# @return [Array<Types::
|
410
|
+
# @!attribute [rw] sql_statement_results
|
411
|
+
# The results of the SQL statement or statements.
|
412
|
+
# @return [Array<Types::SqlStatementResult>]
|
271
413
|
#
|
272
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
414
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSqlResponse AWS API Documentation
|
273
415
|
#
|
274
|
-
class
|
275
|
-
:
|
276
|
-
include Aws::Structure
|
277
|
-
end
|
278
|
-
|
279
|
-
# There is an error in the call or in a SQL statement.
|
280
|
-
#
|
281
|
-
# @!attribute [rw] message
|
282
|
-
# The error message returned by this `BadRequestException` error.
|
283
|
-
# @return [String]
|
284
|
-
#
|
285
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BadRequestException AWS API Documentation
|
286
|
-
#
|
287
|
-
class BadRequestException < Struct.new(
|
288
|
-
:message)
|
416
|
+
class ExecuteSqlResponse < Struct.new(
|
417
|
+
:sql_statement_results)
|
289
418
|
include Aws::Structure
|
290
419
|
end
|
291
420
|
|
292
|
-
# The request parameters represent the input of a request to
|
293
|
-
#
|
421
|
+
# The request parameters represent the input of a request to run a SQL
|
422
|
+
# statement against a database.
|
294
423
|
#
|
295
|
-
# @note When making an API call, you may pass
|
424
|
+
# @note When making an API call, you may pass ExecuteStatementRequest
|
296
425
|
# data as a hash:
|
297
426
|
#
|
298
427
|
# {
|
428
|
+
# continue_after_timeout: false,
|
429
|
+
# database: "DbName",
|
430
|
+
# include_result_metadata: false,
|
431
|
+
# parameters: [
|
432
|
+
# {
|
433
|
+
# name: "ParameterName",
|
434
|
+
# value: {
|
435
|
+
# array_value: {
|
436
|
+
# array_values: [
|
437
|
+
# {
|
438
|
+
# # recursive ArrayValue
|
439
|
+
# },
|
440
|
+
# ],
|
441
|
+
# boolean_values: [false],
|
442
|
+
# double_values: [1.0],
|
443
|
+
# long_values: [1],
|
444
|
+
# string_values: ["String"],
|
445
|
+
# },
|
446
|
+
# blob_value: "data",
|
447
|
+
# boolean_value: false,
|
448
|
+
# double_value: 1.0,
|
449
|
+
# is_null: false,
|
450
|
+
# long_value: 1,
|
451
|
+
# string_value: "String",
|
452
|
+
# },
|
453
|
+
# },
|
454
|
+
# ],
|
299
455
|
# resource_arn: "Arn", # required
|
456
|
+
# result_set_options: {
|
457
|
+
# decimal_return_type: "DOUBLE_OR_LONG", # accepts DOUBLE_OR_LONG, STRING
|
458
|
+
# },
|
459
|
+
# schema: "DbName",
|
300
460
|
# secret_arn: "Arn", # required
|
301
|
-
#
|
461
|
+
# sql: "SqlStatement", # required
|
462
|
+
# transaction_id: "Id",
|
302
463
|
# }
|
303
464
|
#
|
465
|
+
# @!attribute [rw] continue_after_timeout
|
466
|
+
# A value that indicates whether to continue running the statement
|
467
|
+
# after the call times out. By default, the statement stops running
|
468
|
+
# when the call times out.
|
469
|
+
#
|
470
|
+
# For DDL statements, we recommend continuing to run the statement
|
471
|
+
# after the call times out. When a DDL statement terminates before it
|
472
|
+
# is finished running, it can result in errors and possibly corrupted
|
473
|
+
# data structures.
|
474
|
+
# @return [Boolean]
|
475
|
+
#
|
476
|
+
# @!attribute [rw] database
|
477
|
+
# The name of the database.
|
478
|
+
# @return [String]
|
479
|
+
#
|
480
|
+
# @!attribute [rw] include_result_metadata
|
481
|
+
# A value that indicates whether to include metadata in the results.
|
482
|
+
# @return [Boolean]
|
483
|
+
#
|
484
|
+
# @!attribute [rw] parameters
|
485
|
+
# The parameters for the SQL statement.
|
486
|
+
# @return [Array<Types::SqlParameter>]
|
487
|
+
#
|
304
488
|
# @!attribute [rw] resource_arn
|
305
489
|
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
306
490
|
# @return [String]
|
307
491
|
#
|
492
|
+
# @!attribute [rw] result_set_options
|
493
|
+
# Options that control how the result set is returned.
|
494
|
+
# @return [Types::ResultSetOptions]
|
495
|
+
#
|
496
|
+
# @!attribute [rw] schema
|
497
|
+
# The name of the database schema.
|
498
|
+
# @return [String]
|
499
|
+
#
|
308
500
|
# @!attribute [rw] secret_arn
|
309
501
|
# The name or ARN of the secret that enables access to the DB cluster.
|
310
502
|
# @return [String]
|
311
503
|
#
|
504
|
+
# @!attribute [rw] sql
|
505
|
+
# The SQL statement to run.
|
506
|
+
# @return [String]
|
507
|
+
#
|
312
508
|
# @!attribute [rw] transaction_id
|
313
|
-
# The identifier of
|
509
|
+
# The identifier of a transaction that was started by using the
|
510
|
+
# `BeginTransaction` operation. Specify the transaction ID of the
|
511
|
+
# transaction that you want to include the SQL statement in.
|
512
|
+
#
|
513
|
+
# If the SQL statement is not part of a transaction, don't set this
|
514
|
+
# parameter.
|
314
515
|
# @return [String]
|
315
516
|
#
|
316
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
517
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementRequest AWS API Documentation
|
317
518
|
#
|
318
|
-
class
|
519
|
+
class ExecuteStatementRequest < Struct.new(
|
520
|
+
:continue_after_timeout,
|
521
|
+
:database,
|
522
|
+
:include_result_metadata,
|
523
|
+
:parameters,
|
319
524
|
:resource_arn,
|
525
|
+
:result_set_options,
|
526
|
+
:schema,
|
320
527
|
:secret_arn,
|
528
|
+
:sql,
|
321
529
|
:transaction_id)
|
322
530
|
include Aws::Structure
|
323
531
|
end
|
324
532
|
|
325
|
-
#
|
533
|
+
# The response elements represent the output of a request to run a SQL
|
534
|
+
# statement against a database.
|
326
535
|
#
|
327
|
-
# @!attribute [rw]
|
328
|
-
#
|
329
|
-
# @return [Array<Types::
|
536
|
+
# @!attribute [rw] column_metadata
|
537
|
+
# Metadata for the columns included in the results.
|
538
|
+
# @return [Array<Types::ColumnMetadata>]
|
330
539
|
#
|
331
|
-
#
|
540
|
+
# @!attribute [rw] generated_fields
|
541
|
+
# Values for fields generated during the request.
|
332
542
|
#
|
333
|
-
|
334
|
-
|
335
|
-
include Aws::Structure
|
336
|
-
end
|
337
|
-
|
338
|
-
# There are insufficient privileges to make the call.
|
543
|
+
# <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
|
544
|
+
# @return [Array<Types::Field>]
|
339
545
|
#
|
340
|
-
# @!attribute [rw]
|
341
|
-
# The
|
342
|
-
# @return [
|
546
|
+
# @!attribute [rw] number_of_records_updated
|
547
|
+
# The number of records updated by the request.
|
548
|
+
# @return [Integer]
|
343
549
|
#
|
344
|
-
#
|
550
|
+
# @!attribute [rw] records
|
551
|
+
# The records returned by the SQL statement.
|
552
|
+
# @return [Array<Array<Types::Field>>]
|
345
553
|
#
|
346
|
-
|
347
|
-
|
554
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementResponse AWS API Documentation
|
555
|
+
#
|
556
|
+
class ExecuteStatementResponse < Struct.new(
|
557
|
+
:column_metadata,
|
558
|
+
:generated_fields,
|
559
|
+
:number_of_records_updated,
|
560
|
+
:records)
|
348
561
|
include Aws::Structure
|
349
562
|
end
|
350
563
|
|
351
|
-
# Contains
|
564
|
+
# Contains a value.
|
352
565
|
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
# @return [Array<Types::Value>]
|
566
|
+
# @note When making an API call, you may pass Field
|
567
|
+
# data as a hash:
|
356
568
|
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
569
|
+
# {
|
570
|
+
# array_value: {
|
571
|
+
# array_values: [
|
572
|
+
# {
|
573
|
+
# # recursive ArrayValue
|
574
|
+
# },
|
575
|
+
# ],
|
576
|
+
# boolean_values: [false],
|
577
|
+
# double_values: [1.0],
|
578
|
+
# long_values: [1],
|
579
|
+
# string_values: ["String"],
|
580
|
+
# },
|
581
|
+
# blob_value: "data",
|
582
|
+
# boolean_value: false,
|
583
|
+
# double_value: 1.0,
|
584
|
+
# is_null: false,
|
585
|
+
# long_value: 1,
|
586
|
+
# string_value: "String",
|
587
|
+
# }
|
360
588
|
#
|
361
|
-
# @!attribute [rw]
|
362
|
-
#
|
363
|
-
# @return [
|
589
|
+
# @!attribute [rw] array_value
|
590
|
+
# An array of values.
|
591
|
+
# @return [Types::ArrayValue]
|
364
592
|
#
|
365
593
|
# @!attribute [rw] blob_value
|
366
|
-
# A value
|
594
|
+
# A value of BLOB data type.
|
367
595
|
# @return [String]
|
368
596
|
#
|
597
|
+
# @!attribute [rw] boolean_value
|
598
|
+
# A value of Boolean data type.
|
599
|
+
# @return [Boolean]
|
600
|
+
#
|
369
601
|
# @!attribute [rw] double_value
|
370
|
-
# A value
|
602
|
+
# A value of double data type.
|
371
603
|
# @return [Float]
|
372
604
|
#
|
373
|
-
# @!attribute [rw] int_value
|
374
|
-
# A value for a column of integer data type.
|
375
|
-
# @return [Integer]
|
376
|
-
#
|
377
605
|
# @!attribute [rw] is_null
|
378
606
|
# A NULL value.
|
379
607
|
# @return [Boolean]
|
380
608
|
#
|
381
|
-
# @!attribute [rw]
|
382
|
-
# A value
|
383
|
-
# @return [
|
609
|
+
# @!attribute [rw] long_value
|
610
|
+
# A value of long data type.
|
611
|
+
# @return [Integer]
|
384
612
|
#
|
385
613
|
# @!attribute [rw] string_value
|
386
|
-
# A value
|
614
|
+
# A value of string data type.
|
387
615
|
# @return [String]
|
388
616
|
#
|
389
|
-
#
|
390
|
-
# A value for a column of STRUCT data type.
|
391
|
-
# @return [Types::StructValue]
|
392
|
-
#
|
393
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Value AWS API Documentation
|
617
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Field AWS API Documentation
|
394
618
|
#
|
395
|
-
class
|
396
|
-
:
|
397
|
-
:big_int_value,
|
398
|
-
:bit_value,
|
619
|
+
class Field < Struct.new(
|
620
|
+
:array_value,
|
399
621
|
:blob_value,
|
622
|
+
:boolean_value,
|
400
623
|
:double_value,
|
401
|
-
:int_value,
|
402
624
|
:is_null,
|
403
|
-
:
|
404
|
-
:string_value
|
405
|
-
:struct_value)
|
625
|
+
:long_value,
|
626
|
+
:string_value)
|
406
627
|
include Aws::Structure
|
407
628
|
end
|
408
629
|
|
409
|
-
#
|
410
|
-
#
|
411
|
-
# @!attribute [rw] db_connection_id
|
412
|
-
# The database connection ID that executed the SQL statement.
|
413
|
-
# @return [Integer]
|
630
|
+
# There are insufficient privileges to make the call.
|
414
631
|
#
|
415
632
|
# @!attribute [rw] message
|
416
|
-
# The error message returned by this `
|
417
|
-
# error.
|
633
|
+
# The error message returned by this `ForbiddenException` error.
|
418
634
|
# @return [String]
|
419
635
|
#
|
420
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
636
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ForbiddenException AWS API Documentation
|
421
637
|
#
|
422
|
-
class
|
423
|
-
:db_connection_id,
|
638
|
+
class ForbiddenException < Struct.new(
|
424
639
|
:message)
|
425
640
|
include Aws::Structure
|
426
641
|
end
|
427
642
|
|
428
|
-
# The
|
429
|
-
#
|
430
|
-
#
|
431
|
-
# @!attribute [rw] column_metadata
|
432
|
-
# Metadata for the columns included in the results.
|
433
|
-
# @return [Array<Types::ColumnMetadata>]
|
434
|
-
#
|
435
|
-
# @!attribute [rw] generated_fields
|
436
|
-
# Values for fields generated during the request.
|
437
|
-
# @return [Array<Types::Field>]
|
438
|
-
#
|
439
|
-
# @!attribute [rw] number_of_records_updated
|
440
|
-
# The number of records updated by the request.
|
441
|
-
# @return [Integer]
|
643
|
+
# The `resourceArn`, `secretArn`, or `transactionId` value can't be
|
644
|
+
# found.
|
442
645
|
#
|
443
|
-
# @!attribute [rw]
|
444
|
-
# The
|
445
|
-
# @return [
|
646
|
+
# @!attribute [rw] message
|
647
|
+
# The error message returned by this `NotFoundException` error.
|
648
|
+
# @return [String]
|
446
649
|
#
|
447
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
650
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/NotFoundException AWS API Documentation
|
448
651
|
#
|
449
|
-
class
|
450
|
-
:
|
451
|
-
:generated_fields,
|
452
|
-
:number_of_records_updated,
|
453
|
-
:records)
|
652
|
+
class NotFoundException < Struct.new(
|
653
|
+
:message)
|
454
654
|
include Aws::Structure
|
455
655
|
end
|
456
656
|
|
457
|
-
#
|
657
|
+
# A record returned by a call.
|
458
658
|
#
|
459
|
-
# @!attribute [rw]
|
460
|
-
#
|
461
|
-
# @return [Array<Types::
|
659
|
+
# @!attribute [rw] values
|
660
|
+
# The values returned in the record.
|
661
|
+
# @return [Array<Types::Value>]
|
462
662
|
#
|
463
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
663
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Record AWS API Documentation
|
464
664
|
#
|
465
|
-
class
|
466
|
-
:
|
665
|
+
class Record < Struct.new(
|
666
|
+
:values)
|
467
667
|
include Aws::Structure
|
468
668
|
end
|
469
669
|
|
470
|
-
# The
|
471
|
-
# more SQL statements.
|
670
|
+
# The result set returned by a SQL statement.
|
472
671
|
#
|
473
|
-
# @!attribute [rw]
|
474
|
-
# The
|
475
|
-
# @return [Array<Types::
|
672
|
+
# @!attribute [rw] records
|
673
|
+
# The records in the result set.
|
674
|
+
# @return [Array<Types::Record>]
|
476
675
|
#
|
477
|
-
#
|
676
|
+
# @!attribute [rw] result_set_metadata
|
677
|
+
# The result-set metadata in the result set.
|
678
|
+
# @return [Types::ResultSetMetadata]
|
478
679
|
#
|
479
|
-
|
480
|
-
|
680
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultFrame AWS API Documentation
|
681
|
+
#
|
682
|
+
class ResultFrame < Struct.new(
|
683
|
+
:records,
|
684
|
+
:result_set_metadata)
|
481
685
|
include Aws::Structure
|
482
686
|
end
|
483
687
|
|
484
|
-
# The
|
688
|
+
# The metadata of the result set returned by a SQL statement.
|
485
689
|
#
|
486
|
-
# @!attribute [rw]
|
487
|
-
# The number of
|
690
|
+
# @!attribute [rw] column_count
|
691
|
+
# The number of columns in the result set.
|
488
692
|
# @return [Integer]
|
489
693
|
#
|
490
|
-
# @!attribute [rw]
|
491
|
-
# The
|
492
|
-
# @return [Types::
|
694
|
+
# @!attribute [rw] column_metadata
|
695
|
+
# The metadata of the columns in the result set.
|
696
|
+
# @return [Array<Types::ColumnMetadata>]
|
493
697
|
#
|
494
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetMetadata AWS API Documentation
|
495
699
|
#
|
496
|
-
class
|
497
|
-
:
|
498
|
-
:
|
700
|
+
class ResultSetMetadata < Struct.new(
|
701
|
+
:column_count,
|
702
|
+
:column_metadata)
|
499
703
|
include Aws::Structure
|
500
704
|
end
|
501
705
|
|
502
|
-
#
|
503
|
-
# transaction.
|
706
|
+
# Options that control how the result set is returned.
|
504
707
|
#
|
505
|
-
# @note When making an API call, you may pass
|
708
|
+
# @note When making an API call, you may pass ResultSetOptions
|
506
709
|
# data as a hash:
|
507
710
|
#
|
508
711
|
# {
|
509
|
-
#
|
510
|
-
# resource_arn: "Arn", # required
|
511
|
-
# schema: "DbName",
|
512
|
-
# secret_arn: "Arn", # required
|
712
|
+
# decimal_return_type: "DOUBLE_OR_LONG", # accepts DOUBLE_OR_LONG, STRING
|
513
713
|
# }
|
514
714
|
#
|
515
|
-
# @!attribute [rw]
|
516
|
-
#
|
715
|
+
# @!attribute [rw] decimal_return_type
|
716
|
+
# A value that indicates how a field of `DECIMAL` type is represented
|
717
|
+
# in the response. The value of `STRING`, the default, specifies that
|
718
|
+
# it is converted to a String value. The value of `DOUBLE_OR_LONG`
|
719
|
+
# specifies that it is converted to a Long value if its scale is 0, or
|
720
|
+
# to a Double value otherwise.
|
721
|
+
#
|
722
|
+
# Conversion to Double or Long can result in roundoff errors due to
|
723
|
+
# precision loss. We recommend converting to String, especially when
|
724
|
+
# working with currency values.
|
517
725
|
# @return [String]
|
518
726
|
#
|
727
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetOptions AWS API Documentation
|
728
|
+
#
|
729
|
+
class ResultSetOptions < Struct.new(
|
730
|
+
:decimal_return_type)
|
731
|
+
include Aws::Structure
|
732
|
+
end
|
733
|
+
|
734
|
+
# The request parameters represent the input of a request to perform a
|
735
|
+
# rollback of a transaction.
|
736
|
+
#
|
737
|
+
# @note When making an API call, you may pass RollbackTransactionRequest
|
738
|
+
# data as a hash:
|
739
|
+
#
|
740
|
+
# {
|
741
|
+
# resource_arn: "Arn", # required
|
742
|
+
# secret_arn: "Arn", # required
|
743
|
+
# transaction_id: "Id", # required
|
744
|
+
# }
|
745
|
+
#
|
519
746
|
# @!attribute [rw] resource_arn
|
520
747
|
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
521
748
|
# @return [String]
|
522
749
|
#
|
523
|
-
# @!attribute [rw] schema
|
524
|
-
# The name of the database schema.
|
525
|
-
# @return [String]
|
526
|
-
#
|
527
750
|
# @!attribute [rw] secret_arn
|
528
751
|
# The name or ARN of the secret that enables access to the DB cluster.
|
529
752
|
# @return [String]
|
530
753
|
#
|
531
|
-
#
|
754
|
+
# @!attribute [rw] transaction_id
|
755
|
+
# The identifier of the transaction to roll back.
|
756
|
+
# @return [String]
|
532
757
|
#
|
533
|
-
|
534
|
-
|
758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionRequest AWS API Documentation
|
759
|
+
#
|
760
|
+
class RollbackTransactionRequest < Struct.new(
|
535
761
|
:resource_arn,
|
536
|
-
:
|
537
|
-
:
|
762
|
+
:secret_arn,
|
763
|
+
:transaction_id)
|
538
764
|
include Aws::Structure
|
539
765
|
end
|
540
766
|
|
@@ -552,255 +778,172 @@ module Aws::RDSDataService
|
|
552
778
|
include Aws::Structure
|
553
779
|
end
|
554
780
|
|
555
|
-
#
|
556
|
-
# array of data.
|
557
|
-
#
|
558
|
-
# @!attribute [rw] update_results
|
559
|
-
# The execution results of each batch entry.
|
560
|
-
# @return [Array<Types::UpdateResult>]
|
561
|
-
#
|
562
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementResponse AWS API Documentation
|
563
|
-
#
|
564
|
-
class BatchExecuteStatementResponse < Struct.new(
|
565
|
-
:update_results)
|
566
|
-
include Aws::Structure
|
567
|
-
end
|
568
|
-
|
569
|
-
# The metadata of the result set returned by a SQL statement.
|
570
|
-
#
|
571
|
-
# @!attribute [rw] column_count
|
572
|
-
# The number of columns in the result set.
|
573
|
-
# @return [Integer]
|
574
|
-
#
|
575
|
-
# @!attribute [rw] column_metadata
|
576
|
-
# The metadata of the columns in the result set.
|
577
|
-
# @return [Array<Types::ColumnMetadata>]
|
578
|
-
#
|
579
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetMetadata AWS API Documentation
|
580
|
-
#
|
581
|
-
class ResultSetMetadata < Struct.new(
|
582
|
-
:column_count,
|
583
|
-
:column_metadata)
|
584
|
-
include Aws::Structure
|
585
|
-
end
|
586
|
-
|
587
|
-
# The request parameters represent the input of a request to run a SQL
|
588
|
-
# statement against a database.
|
781
|
+
# A parameter used in a SQL statement.
|
589
782
|
#
|
590
|
-
# @note When making an API call, you may pass
|
783
|
+
# @note When making an API call, you may pass SqlParameter
|
591
784
|
# data as a hash:
|
592
785
|
#
|
593
786
|
# {
|
594
|
-
#
|
595
|
-
#
|
596
|
-
#
|
597
|
-
#
|
598
|
-
#
|
599
|
-
#
|
600
|
-
#
|
601
|
-
#
|
602
|
-
#
|
603
|
-
#
|
604
|
-
#
|
605
|
-
#
|
606
|
-
# string_value: "String",
|
607
|
-
# },
|
787
|
+
# name: "ParameterName",
|
788
|
+
# value: {
|
789
|
+
# array_value: {
|
790
|
+
# array_values: [
|
791
|
+
# {
|
792
|
+
# # recursive ArrayValue
|
793
|
+
# },
|
794
|
+
# ],
|
795
|
+
# boolean_values: [false],
|
796
|
+
# double_values: [1.0],
|
797
|
+
# long_values: [1],
|
798
|
+
# string_values: ["String"],
|
608
799
|
# },
|
609
|
-
#
|
610
|
-
#
|
611
|
-
#
|
612
|
-
#
|
613
|
-
#
|
614
|
-
#
|
800
|
+
# blob_value: "data",
|
801
|
+
# boolean_value: false,
|
802
|
+
# double_value: 1.0,
|
803
|
+
# is_null: false,
|
804
|
+
# long_value: 1,
|
805
|
+
# string_value: "String",
|
806
|
+
# },
|
615
807
|
# }
|
616
808
|
#
|
617
|
-
# @!attribute [rw]
|
618
|
-
#
|
619
|
-
# after the call times out. By default, the statement stops running
|
620
|
-
# when the call times out.
|
621
|
-
#
|
622
|
-
# <important markdown="1"> For DDL statements, we recommend continuing to run the statement
|
623
|
-
# after the call times out. When a DDL statement terminates before it
|
624
|
-
# is finished running, it can result in errors and possibly corrupted
|
625
|
-
# data structures.
|
626
|
-
#
|
627
|
-
# </important>
|
628
|
-
# @return [Boolean]
|
629
|
-
#
|
630
|
-
# @!attribute [rw] database
|
631
|
-
# The name of the database.
|
809
|
+
# @!attribute [rw] name
|
810
|
+
# The name of the parameter.
|
632
811
|
# @return [String]
|
633
812
|
#
|
634
|
-
# @!attribute [rw]
|
635
|
-
#
|
636
|
-
# @return [
|
637
|
-
#
|
638
|
-
# @!attribute [rw] parameters
|
639
|
-
# The parameters for the SQL statement.
|
640
|
-
# @return [Array<Types::SqlParameter>]
|
641
|
-
#
|
642
|
-
# @!attribute [rw] resource_arn
|
643
|
-
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
644
|
-
# @return [String]
|
813
|
+
# @!attribute [rw] value
|
814
|
+
# The value of the parameter.
|
815
|
+
# @return [Types::Field]
|
645
816
|
#
|
646
|
-
#
|
647
|
-
# The name of the database schema.
|
648
|
-
# @return [String]
|
817
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlParameter AWS API Documentation
|
649
818
|
#
|
650
|
-
|
651
|
-
|
652
|
-
|
819
|
+
class SqlParameter < Struct.new(
|
820
|
+
:name,
|
821
|
+
:value)
|
822
|
+
include Aws::Structure
|
823
|
+
end
|
824
|
+
|
825
|
+
# The result of a SQL statement.
|
653
826
|
#
|
654
|
-
#
|
655
|
-
# The SQL statement to run.
|
656
|
-
# @return [String]
|
827
|
+
# <important> <p>This data type is deprecated.</p> </important>
|
657
828
|
#
|
658
|
-
# @!attribute [rw]
|
659
|
-
# The
|
660
|
-
#
|
661
|
-
# transaction that you want to include the SQL statement in.
|
829
|
+
# @!attribute [rw] number_of_records_updated
|
830
|
+
# The number of records updated by a SQL statement.
|
831
|
+
# @return [Integer]
|
662
832
|
#
|
663
|
-
#
|
664
|
-
#
|
665
|
-
# @return [
|
833
|
+
# @!attribute [rw] result_frame
|
834
|
+
# The result set of the SQL statement.
|
835
|
+
# @return [Types::ResultFrame]
|
666
836
|
#
|
667
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
837
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlStatementResult AWS API Documentation
|
668
838
|
#
|
669
|
-
class
|
670
|
-
:
|
671
|
-
:
|
672
|
-
:include_result_metadata,
|
673
|
-
:parameters,
|
674
|
-
:resource_arn,
|
675
|
-
:schema,
|
676
|
-
:secret_arn,
|
677
|
-
:sql,
|
678
|
-
:transaction_id)
|
839
|
+
class SqlStatementResult < Struct.new(
|
840
|
+
:number_of_records_updated,
|
841
|
+
:result_frame)
|
679
842
|
include Aws::Structure
|
680
843
|
end
|
681
844
|
|
682
|
-
# The
|
683
|
-
# transaction.
|
845
|
+
# The execution of the SQL statement timed out.
|
684
846
|
#
|
685
|
-
# @!attribute [rw]
|
686
|
-
# The
|
847
|
+
# @!attribute [rw] db_connection_id
|
848
|
+
# The database connection ID that executed the SQL statement.
|
849
|
+
# @return [Integer]
|
850
|
+
#
|
851
|
+
# @!attribute [rw] message
|
852
|
+
# The error message returned by this `StatementTimeoutException`
|
853
|
+
# error.
|
687
854
|
# @return [String]
|
688
855
|
#
|
689
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
856
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/StatementTimeoutException AWS API Documentation
|
690
857
|
#
|
691
|
-
class
|
692
|
-
:
|
858
|
+
class StatementTimeoutException < Struct.new(
|
859
|
+
:db_connection_id,
|
860
|
+
:message)
|
693
861
|
include Aws::Structure
|
694
862
|
end
|
695
863
|
|
696
|
-
#
|
697
|
-
# request.
|
698
|
-
#
|
699
|
-
# @note When making an API call, you may pass CommitTransactionRequest
|
700
|
-
# data as a hash:
|
864
|
+
# A structure value returned by a call.
|
701
865
|
#
|
702
|
-
#
|
703
|
-
#
|
704
|
-
#
|
705
|
-
# transaction_id: "Id", # required
|
706
|
-
# }
|
866
|
+
# @!attribute [rw] attributes
|
867
|
+
# The attributes returned in the record.
|
868
|
+
# @return [Array<Types::Value>]
|
707
869
|
#
|
708
|
-
#
|
709
|
-
# The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
|
710
|
-
# @return [String]
|
870
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/StructValue AWS API Documentation
|
711
871
|
#
|
712
|
-
|
713
|
-
|
714
|
-
|
872
|
+
class StructValue < Struct.new(
|
873
|
+
:attributes)
|
874
|
+
include Aws::Structure
|
875
|
+
end
|
876
|
+
|
877
|
+
# The response elements represent the results of an update.
|
715
878
|
#
|
716
|
-
# @!attribute [rw]
|
717
|
-
#
|
718
|
-
# @return [
|
879
|
+
# @!attribute [rw] generated_fields
|
880
|
+
# Values for fields generated during the request.
|
881
|
+
# @return [Array<Types::Field>]
|
719
882
|
#
|
720
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
883
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/UpdateResult AWS API Documentation
|
721
884
|
#
|
722
|
-
class
|
723
|
-
:
|
724
|
-
:secret_arn,
|
725
|
-
:transaction_id)
|
885
|
+
class UpdateResult < Struct.new(
|
886
|
+
:generated_fields)
|
726
887
|
include Aws::Structure
|
727
888
|
end
|
728
889
|
|
729
|
-
# Contains the
|
730
|
-
#
|
731
|
-
# @!attribute [rw] array_base_column_type
|
732
|
-
# The type of the column.
|
733
|
-
# @return [Integer]
|
890
|
+
# Contains the value of a column.
|
734
891
|
#
|
735
|
-
#
|
736
|
-
# A value that indicates whether the column increments automatically.
|
737
|
-
# @return [Boolean]
|
892
|
+
# <important> <p>This data type is deprecated.</p> </important>
|
738
893
|
#
|
739
|
-
# @!attribute [rw]
|
740
|
-
#
|
741
|
-
# @return [
|
894
|
+
# @!attribute [rw] array_values
|
895
|
+
# An array of column values.
|
896
|
+
# @return [Array<Types::Value>]
|
742
897
|
#
|
743
|
-
# @!attribute [rw]
|
744
|
-
# A value
|
745
|
-
# @return [
|
898
|
+
# @!attribute [rw] big_int_value
|
899
|
+
# A value for a column of big integer data type.
|
900
|
+
# @return [Integer]
|
746
901
|
#
|
747
|
-
# @!attribute [rw]
|
748
|
-
# A value
|
902
|
+
# @!attribute [rw] bit_value
|
903
|
+
# A value for a column of BIT data type.
|
749
904
|
# @return [Boolean]
|
750
905
|
#
|
751
|
-
# @!attribute [rw]
|
752
|
-
#
|
753
|
-
# @return [String]
|
754
|
-
#
|
755
|
-
# @!attribute [rw] name
|
756
|
-
# The name of the column.
|
906
|
+
# @!attribute [rw] blob_value
|
907
|
+
# A value for a column of BLOB data type.
|
757
908
|
# @return [String]
|
758
909
|
#
|
759
|
-
# @!attribute [rw]
|
760
|
-
# A value
|
761
|
-
# @return [
|
910
|
+
# @!attribute [rw] double_value
|
911
|
+
# A value for a column of double data type.
|
912
|
+
# @return [Float]
|
762
913
|
#
|
763
|
-
# @!attribute [rw]
|
764
|
-
#
|
914
|
+
# @!attribute [rw] int_value
|
915
|
+
# A value for a column of integer data type.
|
765
916
|
# @return [Integer]
|
766
917
|
#
|
767
|
-
# @!attribute [rw]
|
768
|
-
#
|
769
|
-
# @return [
|
918
|
+
# @!attribute [rw] is_null
|
919
|
+
# A NULL value.
|
920
|
+
# @return [Boolean]
|
770
921
|
#
|
771
|
-
# @!attribute [rw]
|
772
|
-
#
|
773
|
-
# @return [
|
922
|
+
# @!attribute [rw] real_value
|
923
|
+
# A value for a column of real data type.
|
924
|
+
# @return [Float]
|
774
925
|
#
|
775
|
-
# @!attribute [rw]
|
776
|
-
#
|
926
|
+
# @!attribute [rw] string_value
|
927
|
+
# A value for a column of string data type.
|
777
928
|
# @return [String]
|
778
929
|
#
|
779
|
-
# @!attribute [rw]
|
780
|
-
#
|
781
|
-
# @return [
|
782
|
-
#
|
783
|
-
# @!attribute [rw] type_name
|
784
|
-
# The database-specific data type of the column.
|
785
|
-
# @return [String]
|
930
|
+
# @!attribute [rw] struct_value
|
931
|
+
# A value for a column of STRUCT data type.
|
932
|
+
# @return [Types::StructValue]
|
786
933
|
#
|
787
|
-
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/
|
934
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Value AWS API Documentation
|
788
935
|
#
|
789
|
-
class
|
790
|
-
:
|
791
|
-
:
|
792
|
-
:
|
793
|
-
:
|
794
|
-
:
|
795
|
-
:
|
796
|
-
:
|
797
|
-
:
|
798
|
-
:
|
799
|
-
:
|
800
|
-
:schema_name,
|
801
|
-
:table_name,
|
802
|
-
:type,
|
803
|
-
:type_name)
|
936
|
+
class Value < Struct.new(
|
937
|
+
:array_values,
|
938
|
+
:big_int_value,
|
939
|
+
:bit_value,
|
940
|
+
:blob_value,
|
941
|
+
:double_value,
|
942
|
+
:int_value,
|
943
|
+
:is_null,
|
944
|
+
:real_value,
|
945
|
+
:string_value,
|
946
|
+
:struct_value)
|
804
947
|
include Aws::Structure
|
805
948
|
end
|
806
949
|
|