aws-sdk-rdsdataservice 1.32.0 → 1.35.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-rdsdataservice/client.rb +25 -3
- data/lib/aws-sdk-rdsdataservice/client_api.rb +16 -0
- data/lib/aws-sdk-rdsdataservice/errors.rb +16 -0
- data/lib/aws-sdk-rdsdataservice/types.rb +73 -8
- data/lib/aws-sdk-rdsdataservice.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b18cfee3b55ebf273e66c488b4b927b02f7fc0823825bde48bcc4656a080853
|
4
|
+
data.tar.gz: dc5eaede4e2c821e719bd71cd517e46d1cacd1f302af063ae9d7f3446b19886d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b28867ed86d5e9992064439278f38cb759c7e62ededf8cbad4411b86004c76a1311f1a62a696cacb66722572934a2ac300cfa4d81adab886f2302e7f9c73522
|
7
|
+
data.tar.gz: e86e103e4a852ccce205e27e3ca0f68189ded1e8797e9fd2d5e5585e584c0b6823b3f38ec7c9ddb22b7a5f8697731ed0be72fd70d9ed94fab3902083054dfc71
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.35.0 (2022-04-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Support to receive SQL query results in the form of a simplified JSON string. This enables developers using the new JSON string format to more easily convert it to an object using popular JSON string parsing libraries.
|
8
|
+
|
9
|
+
1.34.0 (2022-02-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.33.0 (2022-02-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.32.0 (2021-12-21)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.35.0
|
@@ -27,7 +27,9 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
31
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
32
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
33
35
|
|
@@ -74,7 +76,9 @@ module Aws::RDSDataService
|
|
74
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
75
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
76
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
77
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
78
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
79
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
80
84
|
|
@@ -637,8 +641,8 @@ module Aws::RDSDataService
|
|
637
641
|
# `transactionID` parameter, changes that result from the call are
|
638
642
|
# committed automatically.
|
639
643
|
#
|
640
|
-
#
|
641
|
-
#
|
644
|
+
# If the binary response data from the database is more than 1 MB, the
|
645
|
+
# call is terminated.
|
642
646
|
#
|
643
647
|
# @option params [Boolean] :continue_after_timeout
|
644
648
|
# A value that indicates whether to continue running the statement after
|
@@ -653,6 +657,20 @@ module Aws::RDSDataService
|
|
653
657
|
# @option params [String] :database
|
654
658
|
# The name of the database.
|
655
659
|
#
|
660
|
+
# @option params [String] :format_records_as
|
661
|
+
# A value that indicates whether to format the result set as a single
|
662
|
+
# JSON string. This parameter only applies to `SELECT` statements and is
|
663
|
+
# ignored for other types of statements. Allowed values are `NONE` and
|
664
|
+
# `JSON`. The default value is `NONE`. The result is returned in the
|
665
|
+
# `formattedRecords` field.
|
666
|
+
#
|
667
|
+
# For usage information about the JSON format for result sets, see
|
668
|
+
# [Using the Data API][1] in the *Amazon Aurora User Guide*.
|
669
|
+
#
|
670
|
+
#
|
671
|
+
#
|
672
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
|
673
|
+
#
|
656
674
|
# @option params [Boolean] :include_result_metadata
|
657
675
|
# A value that indicates whether to include metadata in the results.
|
658
676
|
#
|
@@ -693,6 +711,7 @@ module Aws::RDSDataService
|
|
693
711
|
# @return [Types::ExecuteStatementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
694
712
|
#
|
695
713
|
# * {Types::ExecuteStatementResponse#column_metadata #column_metadata} => Array<Types::ColumnMetadata>
|
714
|
+
# * {Types::ExecuteStatementResponse#formatted_records #formatted_records} => String
|
696
715
|
# * {Types::ExecuteStatementResponse#generated_fields #generated_fields} => Array<Types::Field>
|
697
716
|
# * {Types::ExecuteStatementResponse#number_of_records_updated #number_of_records_updated} => Integer
|
698
717
|
# * {Types::ExecuteStatementResponse#records #records} => Array<Array<Types::Field>>
|
@@ -702,6 +721,7 @@ module Aws::RDSDataService
|
|
702
721
|
# resp = client.execute_statement({
|
703
722
|
# continue_after_timeout: false,
|
704
723
|
# database: "DbName",
|
724
|
+
# format_records_as: "NONE", # accepts NONE, JSON
|
705
725
|
# include_result_metadata: false,
|
706
726
|
# parameters: [
|
707
727
|
# {
|
@@ -731,6 +751,7 @@ module Aws::RDSDataService
|
|
731
751
|
# resource_arn: "Arn", # required
|
732
752
|
# result_set_options: {
|
733
753
|
# decimal_return_type: "STRING", # accepts STRING, DOUBLE_OR_LONG
|
754
|
+
# long_return_type: "STRING", # accepts STRING, LONG
|
734
755
|
# },
|
735
756
|
# schema: "DbName",
|
736
757
|
# secret_arn: "Arn", # required
|
@@ -755,6 +776,7 @@ module Aws::RDSDataService
|
|
755
776
|
# resp.column_metadata[0].table_name #=> String
|
756
777
|
# resp.column_metadata[0].type #=> Integer
|
757
778
|
# resp.column_metadata[0].type_name #=> String
|
779
|
+
# resp.formatted_records #=> String
|
758
780
|
# resp.generated_fields #=> Array
|
759
781
|
# resp.generated_fields[0].array_value.array_values #=> Array
|
760
782
|
# resp.generated_fields[0].array_value.array_values[0] #=> Types::ArrayValue
|
@@ -851,7 +873,7 @@ module Aws::RDSDataService
|
|
851
873
|
params: params,
|
852
874
|
config: config)
|
853
875
|
context[:gem_name] = 'aws-sdk-rdsdataservice'
|
854
|
-
context[:gem_version] = '1.
|
876
|
+
context[:gem_version] = '1.35.0'
|
855
877
|
Seahorse::Client::Request.new(handlers, context)
|
856
878
|
end
|
857
879
|
|
@@ -13,6 +13,7 @@ module Aws::RDSDataService
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
16
17
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
17
18
|
ArrayOfArray = Shapes::ListShape.new(name: 'ArrayOfArray')
|
18
19
|
ArrayValue = Shapes::UnionShape.new(name: 'ArrayValue')
|
@@ -44,16 +45,19 @@ module Aws::RDSDataService
|
|
44
45
|
Field = Shapes::UnionShape.new(name: 'Field')
|
45
46
|
FieldList = Shapes::ListShape.new(name: 'FieldList')
|
46
47
|
ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException')
|
48
|
+
FormattedSqlRecords = Shapes::StringShape.new(name: 'FormattedSqlRecords')
|
47
49
|
Id = Shapes::StringShape.new(name: 'Id')
|
48
50
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
49
51
|
InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
|
50
52
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
51
53
|
LongArray = Shapes::ListShape.new(name: 'LongArray')
|
54
|
+
LongReturnType = Shapes::StringShape.new(name: 'LongReturnType')
|
52
55
|
Metadata = Shapes::ListShape.new(name: 'Metadata')
|
53
56
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
54
57
|
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
55
58
|
Record = Shapes::StructureShape.new(name: 'Record')
|
56
59
|
Records = Shapes::ListShape.new(name: 'Records')
|
60
|
+
RecordsFormatType = Shapes::StringShape.new(name: 'RecordsFormatType')
|
57
61
|
RecordsUpdated = Shapes::IntegerShape.new(name: 'RecordsUpdated')
|
58
62
|
ResultFrame = Shapes::StructureShape.new(name: 'ResultFrame')
|
59
63
|
ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
|
@@ -79,6 +83,9 @@ module Aws::RDSDataService
|
|
79
83
|
UpdateResults = Shapes::ListShape.new(name: 'UpdateResults')
|
80
84
|
Value = Shapes::UnionShape.new(name: 'Value')
|
81
85
|
|
86
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
87
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
88
|
+
|
82
89
|
ArrayOfArray.member = Shapes::ShapeRef.new(shape: ArrayValue)
|
83
90
|
|
84
91
|
ArrayValue.add_member(:array_values, Shapes::ShapeRef.new(shape: ArrayOfArray, location_name: "arrayValues"))
|
@@ -161,6 +168,7 @@ module Aws::RDSDataService
|
|
161
168
|
|
162
169
|
ExecuteStatementRequest.add_member(:continue_after_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "continueAfterTimeout"))
|
163
170
|
ExecuteStatementRequest.add_member(:database, Shapes::ShapeRef.new(shape: DbName, location_name: "database"))
|
171
|
+
ExecuteStatementRequest.add_member(:format_records_as, Shapes::ShapeRef.new(shape: RecordsFormatType, location_name: "formatRecordsAs"))
|
164
172
|
ExecuteStatementRequest.add_member(:include_result_metadata, Shapes::ShapeRef.new(shape: Boolean, location_name: "includeResultMetadata"))
|
165
173
|
ExecuteStatementRequest.add_member(:parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "parameters"))
|
166
174
|
ExecuteStatementRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
@@ -172,6 +180,7 @@ module Aws::RDSDataService
|
|
172
180
|
ExecuteStatementRequest.struct_class = Types::ExecuteStatementRequest
|
173
181
|
|
174
182
|
ExecuteStatementResponse.add_member(:column_metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "columnMetadata"))
|
183
|
+
ExecuteStatementResponse.add_member(:formatted_records, Shapes::ShapeRef.new(shape: FormattedSqlRecords, location_name: "formattedRecords"))
|
175
184
|
ExecuteStatementResponse.add_member(:generated_fields, Shapes::ShapeRef.new(shape: FieldList, location_name: "generatedFields"))
|
176
185
|
ExecuteStatementResponse.add_member(:number_of_records_updated, Shapes::ShapeRef.new(shape: RecordsUpdated, location_name: "numberOfRecordsUpdated"))
|
177
186
|
ExecuteStatementResponse.add_member(:records, Shapes::ShapeRef.new(shape: SqlRecords, location_name: "records"))
|
@@ -223,6 +232,7 @@ module Aws::RDSDataService
|
|
223
232
|
ResultSetMetadata.struct_class = Types::ResultSetMetadata
|
224
233
|
|
225
234
|
ResultSetOptions.add_member(:decimal_return_type, Shapes::ShapeRef.new(shape: DecimalReturnType, location_name: "decimalReturnType"))
|
235
|
+
ResultSetOptions.add_member(:long_return_type, Shapes::ShapeRef.new(shape: LongReturnType, location_name: "longReturnType"))
|
226
236
|
ResultSetOptions.struct_class = Types::ResultSetOptions
|
227
237
|
|
228
238
|
RollbackTransactionRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
|
@@ -316,6 +326,7 @@ module Aws::RDSDataService
|
|
316
326
|
o.http_request_uri = "/BatchExecute"
|
317
327
|
o.input = Shapes::ShapeRef.new(shape: BatchExecuteStatementRequest)
|
318
328
|
o.output = Shapes::ShapeRef.new(shape: BatchExecuteStatementResponse)
|
329
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
319
330
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
320
331
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
321
332
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
@@ -329,6 +340,7 @@ module Aws::RDSDataService
|
|
329
340
|
o.http_request_uri = "/BeginTransaction"
|
330
341
|
o.input = Shapes::ShapeRef.new(shape: BeginTransactionRequest)
|
331
342
|
o.output = Shapes::ShapeRef.new(shape: BeginTransactionResponse)
|
343
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
332
344
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
333
345
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
334
346
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
@@ -342,6 +354,7 @@ module Aws::RDSDataService
|
|
342
354
|
o.http_request_uri = "/CommitTransaction"
|
343
355
|
o.input = Shapes::ShapeRef.new(shape: CommitTransactionRequest)
|
344
356
|
o.output = Shapes::ShapeRef.new(shape: CommitTransactionResponse)
|
357
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
345
358
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
346
359
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
347
360
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
@@ -357,6 +370,7 @@ module Aws::RDSDataService
|
|
357
370
|
o.deprecated = true
|
358
371
|
o.input = Shapes::ShapeRef.new(shape: ExecuteSqlRequest)
|
359
372
|
o.output = Shapes::ShapeRef.new(shape: ExecuteSqlResponse)
|
373
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
360
374
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
361
375
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
362
376
|
o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
|
@@ -369,6 +383,7 @@ module Aws::RDSDataService
|
|
369
383
|
o.http_request_uri = "/Execute"
|
370
384
|
o.input = Shapes::ShapeRef.new(shape: ExecuteStatementRequest)
|
371
385
|
o.output = Shapes::ShapeRef.new(shape: ExecuteStatementResponse)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
372
387
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
373
388
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
374
389
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
@@ -382,6 +397,7 @@ module Aws::RDSDataService
|
|
382
397
|
o.http_request_uri = "/RollbackTransaction"
|
383
398
|
o.input = Shapes::ShapeRef.new(shape: RollbackTransactionRequest)
|
384
399
|
o.output = Shapes::ShapeRef.new(shape: RollbackTransactionResponse)
|
400
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
385
401
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
386
402
|
o.errors << Shapes::ShapeRef.new(shape: StatementTimeoutException)
|
387
403
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
|
@@ -27,6 +27,7 @@ module Aws::RDSDataService
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
30
31
|
# * {BadRequestException}
|
31
32
|
# * {ForbiddenException}
|
32
33
|
# * {InternalServerErrorException}
|
@@ -40,6 +41,21 @@ module Aws::RDSDataService
|
|
40
41
|
|
41
42
|
extend Aws::Errors::DynamicErrors
|
42
43
|
|
44
|
+
class AccessDeniedException < ServiceError
|
45
|
+
|
46
|
+
# @param [Seahorse::Client::RequestContext] context
|
47
|
+
# @param [String] message
|
48
|
+
# @param [Aws::RDSDataService::Types::AccessDeniedException] data
|
49
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
50
|
+
super(context, message, data)
|
51
|
+
end
|
52
|
+
|
53
|
+
# @return [String]
|
54
|
+
def message
|
55
|
+
@message || @data[:message]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
43
59
|
class BadRequestException < ServiceError
|
44
60
|
|
45
61
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -10,6 +10,19 @@
|
|
10
10
|
module Aws::RDSDataService
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# You do not have sufficient access to perform this action.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/AccessDeniedException AWS API Documentation
|
19
|
+
#
|
20
|
+
class AccessDeniedException < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
13
26
|
# Contains an array.
|
14
27
|
#
|
15
28
|
# @note ArrayValue is a union - when making an API calls you must set exactly one of the members.
|
@@ -25,11 +38,11 @@ module Aws::RDSDataService
|
|
25
38
|
# @return [Array<Boolean>]
|
26
39
|
#
|
27
40
|
# @!attribute [rw] double_values
|
28
|
-
# An array of
|
41
|
+
# An array of floating-point numbers.
|
29
42
|
# @return [Array<Float>]
|
30
43
|
#
|
31
44
|
# @!attribute [rw] long_values
|
32
|
-
# An array of
|
45
|
+
# An array of integers.
|
33
46
|
# @return [Array<Integer>]
|
34
47
|
#
|
35
48
|
# @!attribute [rw] string_values
|
@@ -446,6 +459,7 @@ module Aws::RDSDataService
|
|
446
459
|
# {
|
447
460
|
# continue_after_timeout: false,
|
448
461
|
# database: "DbName",
|
462
|
+
# format_records_as: "NONE", # accepts NONE, JSON
|
449
463
|
# include_result_metadata: false,
|
450
464
|
# parameters: [
|
451
465
|
# {
|
@@ -475,6 +489,7 @@ module Aws::RDSDataService
|
|
475
489
|
# resource_arn: "Arn", # required
|
476
490
|
# result_set_options: {
|
477
491
|
# decimal_return_type: "STRING", # accepts STRING, DOUBLE_OR_LONG
|
492
|
+
# long_return_type: "STRING", # accepts STRING, LONG
|
478
493
|
# },
|
479
494
|
# schema: "DbName",
|
480
495
|
# secret_arn: "Arn", # required
|
@@ -497,6 +512,21 @@ module Aws::RDSDataService
|
|
497
512
|
# The name of the database.
|
498
513
|
# @return [String]
|
499
514
|
#
|
515
|
+
# @!attribute [rw] format_records_as
|
516
|
+
# A value that indicates whether to format the result set as a single
|
517
|
+
# JSON string. This parameter only applies to `SELECT` statements and
|
518
|
+
# is ignored for other types of statements. Allowed values are `NONE`
|
519
|
+
# and `JSON`. The default value is `NONE`. The result is returned in
|
520
|
+
# the `formattedRecords` field.
|
521
|
+
#
|
522
|
+
# For usage information about the JSON format for result sets, see
|
523
|
+
# [Using the Data API][1] in the *Amazon Aurora User Guide*.
|
524
|
+
#
|
525
|
+
#
|
526
|
+
#
|
527
|
+
# [1]: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html
|
528
|
+
# @return [String]
|
529
|
+
#
|
500
530
|
# @!attribute [rw] include_result_metadata
|
501
531
|
# A value that indicates whether to include metadata in the results.
|
502
532
|
# @return [Boolean]
|
@@ -547,6 +577,7 @@ module Aws::RDSDataService
|
|
547
577
|
class ExecuteStatementRequest < Struct.new(
|
548
578
|
:continue_after_timeout,
|
549
579
|
:database,
|
580
|
+
:format_records_as,
|
550
581
|
:include_result_metadata,
|
551
582
|
:parameters,
|
552
583
|
:resource_arn,
|
@@ -563,11 +594,22 @@ module Aws::RDSDataService
|
|
563
594
|
# statement against a database.
|
564
595
|
#
|
565
596
|
# @!attribute [rw] column_metadata
|
566
|
-
# Metadata for the columns included in the results.
|
597
|
+
# Metadata for the columns included in the results. This field is
|
598
|
+
# blank if the `formatRecordsAs` parameter is set to `JSON`.
|
567
599
|
# @return [Array<Types::ColumnMetadata>]
|
568
600
|
#
|
601
|
+
# @!attribute [rw] formatted_records
|
602
|
+
# A string value that represents the result set of a `SELECT`
|
603
|
+
# statement in JSON format. This value is only present when the
|
604
|
+
# `formatRecordsAs` parameter is set to `JSON`.
|
605
|
+
#
|
606
|
+
# The size limit for this field is currently 10 MB. If the
|
607
|
+
# JSON-formatted string representing the result set requires more than
|
608
|
+
# 10 MB, the call returns an error.
|
609
|
+
# @return [String]
|
610
|
+
#
|
569
611
|
# @!attribute [rw] generated_fields
|
570
|
-
# Values for fields generated during
|
612
|
+
# Values for fields generated during a DML request.
|
571
613
|
#
|
572
614
|
# <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>
|
573
615
|
# @return [Array<Types::Field>]
|
@@ -577,13 +619,15 @@ module Aws::RDSDataService
|
|
577
619
|
# @return [Integer]
|
578
620
|
#
|
579
621
|
# @!attribute [rw] records
|
580
|
-
# The records returned by the SQL statement.
|
622
|
+
# The records returned by the SQL statement. This field is blank if
|
623
|
+
# the `formatRecordsAs` parameter is set to `JSON`.
|
581
624
|
# @return [Array<Array<Types::Field>>]
|
582
625
|
#
|
583
626
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementResponse AWS API Documentation
|
584
627
|
#
|
585
628
|
class ExecuteStatementResponse < Struct.new(
|
586
629
|
:column_metadata,
|
630
|
+
:formatted_records,
|
587
631
|
:generated_fields,
|
588
632
|
:number_of_records_updated,
|
589
633
|
:records)
|
@@ -687,6 +731,10 @@ module Aws::RDSDataService
|
|
687
731
|
|
688
732
|
# A record returned by a call.
|
689
733
|
#
|
734
|
+
# This data structure is only used with the deprecated `ExecuteSql`
|
735
|
+
# operation. Use the `BatchExecuteStatement` or `ExecuteStatement`
|
736
|
+
# operation instead.
|
737
|
+
#
|
690
738
|
# @!attribute [rw] values
|
691
739
|
# The values returned in the record.
|
692
740
|
# @return [Array<Types::Value>]
|
@@ -701,6 +749,10 @@ module Aws::RDSDataService
|
|
701
749
|
|
702
750
|
# The result set returned by a SQL statement.
|
703
751
|
#
|
752
|
+
# This data structure is only used with the deprecated `ExecuteSql`
|
753
|
+
# operation. Use the `BatchExecuteStatement` or `ExecuteStatement`
|
754
|
+
# operation instead.
|
755
|
+
#
|
704
756
|
# @!attribute [rw] records
|
705
757
|
# The records in the result set.
|
706
758
|
# @return [Array<Types::Record>]
|
@@ -744,6 +796,7 @@ module Aws::RDSDataService
|
|
744
796
|
#
|
745
797
|
# {
|
746
798
|
# decimal_return_type: "STRING", # accepts STRING, DOUBLE_OR_LONG
|
799
|
+
# long_return_type: "STRING", # accepts STRING, LONG
|
747
800
|
# }
|
748
801
|
#
|
749
802
|
# @!attribute [rw] decimal_return_type
|
@@ -758,10 +811,18 @@ module Aws::RDSDataService
|
|
758
811
|
# working with currency values.
|
759
812
|
# @return [String]
|
760
813
|
#
|
814
|
+
# @!attribute [rw] long_return_type
|
815
|
+
# A value that indicates how a field of `LONG` type is represented.
|
816
|
+
# Allowed values are `LONG` and `STRING`. The default is `LONG`.
|
817
|
+
# Specify `STRING` if the length or precision of numeric values might
|
818
|
+
# cause truncation or rounding errors.
|
819
|
+
# @return [String]
|
820
|
+
#
|
761
821
|
# @see http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetOptions AWS API Documentation
|
762
822
|
#
|
763
823
|
class ResultSetOptions < Struct.new(
|
764
|
-
:decimal_return_type
|
824
|
+
:decimal_return_type,
|
825
|
+
:long_return_type)
|
765
826
|
SENSITIVE = []
|
766
827
|
include Aws::Structure
|
767
828
|
end
|
@@ -896,7 +957,7 @@ module Aws::RDSDataService
|
|
896
957
|
|
897
958
|
# The result of a SQL statement.
|
898
959
|
#
|
899
|
-
# <important> <p>This data
|
960
|
+
# <important> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </important>
|
900
961
|
#
|
901
962
|
# @!attribute [rw] number_of_records_updated
|
902
963
|
# The number of records updated by a SQL statement.
|
@@ -937,6 +998,10 @@ module Aws::RDSDataService
|
|
937
998
|
|
938
999
|
# A structure value returned by a call.
|
939
1000
|
#
|
1001
|
+
# This data structure is only used with the deprecated `ExecuteSql`
|
1002
|
+
# operation. Use the `BatchExecuteStatement` or `ExecuteStatement`
|
1003
|
+
# operation instead.
|
1004
|
+
#
|
940
1005
|
# @!attribute [rw] attributes
|
941
1006
|
# The attributes returned in the record.
|
942
1007
|
# @return [Array<Types::Value>]
|
@@ -965,7 +1030,7 @@ module Aws::RDSDataService
|
|
965
1030
|
|
966
1031
|
# Contains the value of a column.
|
967
1032
|
#
|
968
|
-
# <important> <p>This data
|
1033
|
+
# <important> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </important>
|
969
1034
|
#
|
970
1035
|
# @note Value is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Value corresponding to the set member.
|
971
1036
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-rdsdataservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|