aws-sdk-redshiftdataapiservice 1.6.0 → 1.7.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-redshiftdataapiservice.rb +1 -1
- data/lib/aws-sdk-redshiftdataapiservice/client.rb +17 -1
- data/lib/aws-sdk-redshiftdataapiservice/client_api.rb +13 -0
- data/lib/aws-sdk-redshiftdataapiservice/types.rb +54 -0
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50680d0f6a8493a460814387779900f4653e90fe4b67933bf10a87a7407651ee
|
4
|
+
data.tar.gz: 138c67b4bb6a7007de2e4b48a5b4dc65be3395de60ebae768e96eddee86bf119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2b4a13ac7803f56e16cbb8289156814e4b033f84841868b2a34e45a2d7ac1c5ea89aa31e96a438ae052d66e7ca25ddc2cbf99a65d488748d9fa64094f2adde
|
7
|
+
data.tar.gz: 0be5e35c8cfc3756f2c6b4ba676615c1b8101ecf50d060f495d4a0f500c4522f0a813d33481cf0b5d64d66d343e897343ce37552506a6e6a0d9a870bbe10ed60
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.7.0
|
@@ -389,6 +389,7 @@ module Aws::RedshiftDataAPIService
|
|
389
389
|
# * {Types::DescribeStatementResponse#error #error} => String
|
390
390
|
# * {Types::DescribeStatementResponse#has_result_set #has_result_set} => Boolean
|
391
391
|
# * {Types::DescribeStatementResponse#id #id} => String
|
392
|
+
# * {Types::DescribeStatementResponse#query_parameters #query_parameters} => Array<Types::SqlParameter>
|
392
393
|
# * {Types::DescribeStatementResponse#query_string #query_string} => String
|
393
394
|
# * {Types::DescribeStatementResponse#redshift_pid #redshift_pid} => Integer
|
394
395
|
# * {Types::DescribeStatementResponse#redshift_query_id #redshift_query_id} => Integer
|
@@ -414,6 +415,9 @@ module Aws::RedshiftDataAPIService
|
|
414
415
|
# resp.error #=> String
|
415
416
|
# resp.has_result_set #=> Boolean
|
416
417
|
# resp.id #=> String
|
418
|
+
# resp.query_parameters #=> Array
|
419
|
+
# resp.query_parameters[0].name #=> String
|
420
|
+
# resp.query_parameters[0].value #=> String
|
417
421
|
# resp.query_string #=> String
|
418
422
|
# resp.redshift_pid #=> Integer
|
419
423
|
# resp.redshift_query_id #=> Integer
|
@@ -566,6 +570,9 @@ module Aws::RedshiftDataAPIService
|
|
566
570
|
# The database user name. This parameter is required when authenticating
|
567
571
|
# using temporary credentials.
|
568
572
|
#
|
573
|
+
# @option params [Array<Types::SqlParameter>] :parameters
|
574
|
+
# The parameters for the SQL statement.
|
575
|
+
#
|
569
576
|
# @option params [String] :secret_arn
|
570
577
|
# The name or ARN of the secret that enables access to the database.
|
571
578
|
# This parameter is required when authenticating using AWS Secrets
|
@@ -597,6 +604,12 @@ module Aws::RedshiftDataAPIService
|
|
597
604
|
# cluster_identifier: "Location", # required
|
598
605
|
# database: "String",
|
599
606
|
# db_user: "String",
|
607
|
+
# parameters: [
|
608
|
+
# {
|
609
|
+
# name: "ParameterName", # required
|
610
|
+
# value: "ParameterValue", # required
|
611
|
+
# },
|
612
|
+
# ],
|
600
613
|
# secret_arn: "SecretArn",
|
601
614
|
# sql: "StatementString", # required
|
602
615
|
# statement_name: "StatementNameString",
|
@@ -927,6 +940,9 @@ module Aws::RedshiftDataAPIService
|
|
927
940
|
# resp.statements #=> Array
|
928
941
|
# resp.statements[0].created_at #=> Time
|
929
942
|
# resp.statements[0].id #=> String
|
943
|
+
# resp.statements[0].query_parameters #=> Array
|
944
|
+
# resp.statements[0].query_parameters[0].name #=> String
|
945
|
+
# resp.statements[0].query_parameters[0].value #=> String
|
930
946
|
# resp.statements[0].query_string #=> String
|
931
947
|
# resp.statements[0].secret_arn #=> String
|
932
948
|
# resp.statements[0].statement_name #=> String
|
@@ -1061,7 +1077,7 @@ module Aws::RedshiftDataAPIService
|
|
1061
1077
|
params: params,
|
1062
1078
|
config: config)
|
1063
1079
|
context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
|
1064
|
-
context[:gem_version] = '1.
|
1080
|
+
context[:gem_version] = '1.7.0'
|
1065
1081
|
Seahorse::Client::Request.new(handlers, context)
|
1066
1082
|
end
|
1067
1083
|
|
@@ -50,9 +50,13 @@ module Aws::RedshiftDataAPIService
|
|
50
50
|
Location = Shapes::StringShape.new(name: 'Location')
|
51
51
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
52
52
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
53
|
+
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
54
|
+
ParameterValue = Shapes::StringShape.new(name: 'ParameterValue')
|
53
55
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
54
56
|
SchemaList = Shapes::ListShape.new(name: 'SchemaList')
|
55
57
|
SecretArn = Shapes::StringShape.new(name: 'SecretArn')
|
58
|
+
SqlParameter = Shapes::StructureShape.new(name: 'SqlParameter')
|
59
|
+
SqlParametersList = Shapes::ListShape.new(name: 'SqlParametersList')
|
56
60
|
SqlRecords = Shapes::ListShape.new(name: 'SqlRecords')
|
57
61
|
StatementData = Shapes::StructureShape.new(name: 'StatementData')
|
58
62
|
StatementList = Shapes::ListShape.new(name: 'StatementList')
|
@@ -108,6 +112,7 @@ module Aws::RedshiftDataAPIService
|
|
108
112
|
DescribeStatementResponse.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "Error"))
|
109
113
|
DescribeStatementResponse.add_member(:has_result_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasResultSet"))
|
110
114
|
DescribeStatementResponse.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
115
|
+
DescribeStatementResponse.add_member(:query_parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "QueryParameters"))
|
111
116
|
DescribeStatementResponse.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
112
117
|
DescribeStatementResponse.add_member(:redshift_pid, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftPid"))
|
113
118
|
DescribeStatementResponse.add_member(:redshift_query_id, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftQueryId"))
|
@@ -141,6 +146,7 @@ module Aws::RedshiftDataAPIService
|
|
141
146
|
ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
|
142
147
|
ExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
|
143
148
|
ExecuteStatementInput.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
149
|
+
ExecuteStatementInput.add_member(:parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "Parameters"))
|
144
150
|
ExecuteStatementInput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
145
151
|
ExecuteStatementInput.add_member(:sql, Shapes::ShapeRef.new(shape: StatementString, required: true, location_name: "Sql"))
|
146
152
|
ExecuteStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
@@ -236,10 +242,17 @@ module Aws::RedshiftDataAPIService
|
|
236
242
|
|
237
243
|
SchemaList.member = Shapes::ShapeRef.new(shape: String)
|
238
244
|
|
245
|
+
SqlParameter.add_member(:name, Shapes::ShapeRef.new(shape: ParameterName, required: true, location_name: "name"))
|
246
|
+
SqlParameter.add_member(:value, Shapes::ShapeRef.new(shape: ParameterValue, required: true, location_name: "value"))
|
247
|
+
SqlParameter.struct_class = Types::SqlParameter
|
248
|
+
|
249
|
+
SqlParametersList.member = Shapes::ShapeRef.new(shape: SqlParameter)
|
250
|
+
|
239
251
|
SqlRecords.member = Shapes::ShapeRef.new(shape: FieldList)
|
240
252
|
|
241
253
|
StatementData.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
242
254
|
StatementData.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
255
|
+
StatementData.add_member(:query_parameters, Shapes::ShapeRef.new(shape: SqlParametersList, location_name: "QueryParameters"))
|
243
256
|
StatementData.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
244
257
|
StatementData.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
245
258
|
StatementData.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
@@ -191,6 +191,10 @@ module Aws::RedshiftDataAPIService
|
|
191
191
|
# Data API.
|
192
192
|
# @return [String]
|
193
193
|
#
|
194
|
+
# @!attribute [rw] query_parameters
|
195
|
+
# The parameters for the SQL statement.
|
196
|
+
# @return [Array<Types::SqlParameter>]
|
197
|
+
#
|
194
198
|
# @!attribute [rw] query_string
|
195
199
|
# The SQL statement text.
|
196
200
|
# @return [String]
|
@@ -257,6 +261,7 @@ module Aws::RedshiftDataAPIService
|
|
257
261
|
:error,
|
258
262
|
:has_result_set,
|
259
263
|
:id,
|
264
|
+
:query_parameters,
|
260
265
|
:query_string,
|
261
266
|
:redshift_pid,
|
262
267
|
:redshift_query_id,
|
@@ -408,6 +413,12 @@ module Aws::RedshiftDataAPIService
|
|
408
413
|
# cluster_identifier: "Location", # required
|
409
414
|
# database: "String",
|
410
415
|
# db_user: "String",
|
416
|
+
# parameters: [
|
417
|
+
# {
|
418
|
+
# name: "ParameterName", # required
|
419
|
+
# value: "ParameterValue", # required
|
420
|
+
# },
|
421
|
+
# ],
|
411
422
|
# secret_arn: "SecretArn",
|
412
423
|
# sql: "StatementString", # required
|
413
424
|
# statement_name: "StatementNameString",
|
@@ -430,6 +441,10 @@ module Aws::RedshiftDataAPIService
|
|
430
441
|
# authenticating using temporary credentials.
|
431
442
|
# @return [String]
|
432
443
|
#
|
444
|
+
# @!attribute [rw] parameters
|
445
|
+
# The parameters for the SQL statement.
|
446
|
+
# @return [Array<Types::SqlParameter>]
|
447
|
+
#
|
433
448
|
# @!attribute [rw] secret_arn
|
434
449
|
# The name or ARN of the secret that enables access to the database.
|
435
450
|
# This parameter is required when authenticating using AWS Secrets
|
@@ -456,6 +471,7 @@ module Aws::RedshiftDataAPIService
|
|
456
471
|
:cluster_identifier,
|
457
472
|
:database,
|
458
473
|
:db_user,
|
474
|
+
:parameters,
|
459
475
|
:secret_arn,
|
460
476
|
:sql,
|
461
477
|
:statement_name,
|
@@ -1041,6 +1057,39 @@ module Aws::RedshiftDataAPIService
|
|
1041
1057
|
include Aws::Structure
|
1042
1058
|
end
|
1043
1059
|
|
1060
|
+
# A parameter used in a SQL statement.
|
1061
|
+
#
|
1062
|
+
# @note When making an API call, you may pass SqlParameter
|
1063
|
+
# data as a hash:
|
1064
|
+
#
|
1065
|
+
# {
|
1066
|
+
# name: "ParameterName", # required
|
1067
|
+
# value: "ParameterValue", # required
|
1068
|
+
# }
|
1069
|
+
#
|
1070
|
+
# @!attribute [rw] name
|
1071
|
+
# The name of the parameter.
|
1072
|
+
# @return [String]
|
1073
|
+
#
|
1074
|
+
# @!attribute [rw] value
|
1075
|
+
# The value of the parameter. Amazon Redshift implicitly converts to
|
1076
|
+
# the proper data type. For more inforation, see [Data types][1] in
|
1077
|
+
# the *Amazon Redshift Database Developer Guide*.
|
1078
|
+
#
|
1079
|
+
#
|
1080
|
+
#
|
1081
|
+
# [1]: https://docs.aws.amazon.com/redshift/latest/dg/c_Supported_data_types.html
|
1082
|
+
# @return [String]
|
1083
|
+
#
|
1084
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/SqlParameter AWS API Documentation
|
1085
|
+
#
|
1086
|
+
class SqlParameter < Struct.new(
|
1087
|
+
:name,
|
1088
|
+
:value)
|
1089
|
+
SENSITIVE = []
|
1090
|
+
include Aws::Structure
|
1091
|
+
end
|
1092
|
+
|
1044
1093
|
# The SQL statement to run.
|
1045
1094
|
#
|
1046
1095
|
# @!attribute [rw] created_at
|
@@ -1052,6 +1101,10 @@ module Aws::RedshiftDataAPIService
|
|
1052
1101
|
# identifier (UUID) generated by Amazon Redshift Data API.
|
1053
1102
|
# @return [String]
|
1054
1103
|
#
|
1104
|
+
# @!attribute [rw] query_parameters
|
1105
|
+
# The parameters used in a SQL statement.
|
1106
|
+
# @return [Array<Types::SqlParameter>]
|
1107
|
+
#
|
1055
1108
|
# @!attribute [rw] query_string
|
1056
1109
|
# The SQL statement.
|
1057
1110
|
# @return [String]
|
@@ -1080,6 +1133,7 @@ module Aws::RedshiftDataAPIService
|
|
1080
1133
|
class StatementData < Struct.new(
|
1081
1134
|
:created_at,
|
1082
1135
|
:id,
|
1136
|
+
:query_parameters,
|
1083
1137
|
:query_string,
|
1084
1138
|
:secret_arn,
|
1085
1139
|
:statement_name,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-redshiftdataapiservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.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: 2021-
|
11
|
+
date: 2021-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
66
66
|
licenses:
|
67
67
|
- Apache-2.0
|
68
68
|
metadata:
|
69
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
70
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
69
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-redshiftdataapiservice
|
70
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-redshiftdataapiservice/CHANGELOG.md
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.6.2
|
86
|
+
rubygems_version: 3.1.6
|
88
87
|
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: AWS SDK for Ruby - Redshift Data API Service
|