aws-sdk-redshiftdataapiservice 1.2.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 +43 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-redshiftdataapiservice.rb +2 -2
- data/lib/aws-sdk-redshiftdataapiservice/client.rb +56 -13
- data/lib/aws-sdk-redshiftdataapiservice/client_api.rb +25 -2
- data/lib/aws-sdk-redshiftdataapiservice/errors.rb +17 -1
- data/lib/aws-sdk-redshiftdataapiservice/resource.rb +1 -1
- data/lib/aws-sdk-redshiftdataapiservice/types.rb +115 -9
- metadata +11 -9
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
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
1.7.0 (2021-06-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Redshift Data API service now supports SQL parameterization.
|
8
|
+
|
9
|
+
1.6.0 (2021-03-10)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.5.0 (2021-02-23)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release adds an additional parameter 'ConnectedDatabase' into ListSchemasRequest, ListTablesRequest and DescribeTableRequest to support the metadata sharing across databases.
|
18
|
+
|
19
|
+
1.4.0 (2021-02-15)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release enables fine grant access control in ListStatements, GetStatementResult, CancelStatement and DescribeStatement.
|
23
|
+
|
24
|
+
1.3.0 (2021-02-02)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
28
|
+
|
29
|
+
1.2.0 (2020-09-30)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
34
|
+
1.1.0 (2020-09-15)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
38
|
+
|
39
|
+
1.0.0 (2020-09-09)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Initial release of `aws-sdk-redshiftdataapiservice`.
|
43
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.7.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-redshiftdataapiservice/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::RedshiftDataAPIService
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.7.0'
|
52
52
|
|
53
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -387,7 +387,9 @@ module Aws::RedshiftDataAPIService
|
|
387
387
|
# * {Types::DescribeStatementResponse#db_user #db_user} => String
|
388
388
|
# * {Types::DescribeStatementResponse#duration #duration} => Integer
|
389
389
|
# * {Types::DescribeStatementResponse#error #error} => String
|
390
|
+
# * {Types::DescribeStatementResponse#has_result_set #has_result_set} => Boolean
|
390
391
|
# * {Types::DescribeStatementResponse#id #id} => String
|
392
|
+
# * {Types::DescribeStatementResponse#query_parameters #query_parameters} => Array<Types::SqlParameter>
|
391
393
|
# * {Types::DescribeStatementResponse#query_string #query_string} => String
|
392
394
|
# * {Types::DescribeStatementResponse#redshift_pid #redshift_pid} => Integer
|
393
395
|
# * {Types::DescribeStatementResponse#redshift_query_id #redshift_query_id} => Integer
|
@@ -411,14 +413,18 @@ module Aws::RedshiftDataAPIService
|
|
411
413
|
# resp.db_user #=> String
|
412
414
|
# resp.duration #=> Integer
|
413
415
|
# resp.error #=> String
|
416
|
+
# resp.has_result_set #=> Boolean
|
414
417
|
# resp.id #=> String
|
418
|
+
# resp.query_parameters #=> Array
|
419
|
+
# resp.query_parameters[0].name #=> String
|
420
|
+
# resp.query_parameters[0].value #=> String
|
415
421
|
# resp.query_string #=> String
|
416
422
|
# resp.redshift_pid #=> Integer
|
417
423
|
# resp.redshift_query_id #=> Integer
|
418
424
|
# resp.result_rows #=> Integer
|
419
425
|
# resp.result_size #=> Integer
|
420
426
|
# resp.secret_arn #=> String
|
421
|
-
# resp.status #=> String, one of "
|
427
|
+
# resp.status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
422
428
|
# resp.updated_at #=> Time
|
423
429
|
#
|
424
430
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatement AWS API Documentation
|
@@ -448,9 +454,14 @@ module Aws::RedshiftDataAPIService
|
|
448
454
|
# The cluster identifier. This parameter is required when authenticating
|
449
455
|
# using either AWS Secrets Manager or temporary credentials.
|
450
456
|
#
|
451
|
-
# @option params [String] :
|
452
|
-
#
|
453
|
-
#
|
457
|
+
# @option params [String] :connected_database
|
458
|
+
# A database name. The connected database is specified when you connect
|
459
|
+
# with your authentication credentials.
|
460
|
+
#
|
461
|
+
# @option params [required, String] :database
|
462
|
+
# The name of the database that contains the tables to be described. If
|
463
|
+
# `ConnectedDatabase` is not specified, this is also the database to
|
464
|
+
# connect to with your authentication credentials.
|
454
465
|
#
|
455
466
|
# @option params [String] :db_user
|
456
467
|
# The database user name. This parameter is required when authenticating
|
@@ -495,7 +506,8 @@ module Aws::RedshiftDataAPIService
|
|
495
506
|
#
|
496
507
|
# resp = client.describe_table({
|
497
508
|
# cluster_identifier: "Location", # required
|
498
|
-
#
|
509
|
+
# connected_database: "String",
|
510
|
+
# database: "String", # required
|
499
511
|
# db_user: "String",
|
500
512
|
# max_results: 1,
|
501
513
|
# next_token: "String",
|
@@ -558,6 +570,9 @@ module Aws::RedshiftDataAPIService
|
|
558
570
|
# The database user name. This parameter is required when authenticating
|
559
571
|
# using temporary credentials.
|
560
572
|
#
|
573
|
+
# @option params [Array<Types::SqlParameter>] :parameters
|
574
|
+
# The parameters for the SQL statement.
|
575
|
+
#
|
561
576
|
# @option params [String] :secret_arn
|
562
577
|
# The name or ARN of the secret that enables access to the database.
|
563
578
|
# This parameter is required when authenticating using AWS Secrets
|
@@ -589,6 +604,12 @@ module Aws::RedshiftDataAPIService
|
|
589
604
|
# cluster_identifier: "Location", # required
|
590
605
|
# database: "String",
|
591
606
|
# db_user: "String",
|
607
|
+
# parameters: [
|
608
|
+
# {
|
609
|
+
# name: "ParameterName", # required
|
610
|
+
# value: "ParameterValue", # required
|
611
|
+
# },
|
612
|
+
# ],
|
592
613
|
# secret_arn: "SecretArn",
|
593
614
|
# sql: "StatementString", # required
|
594
615
|
# statement_name: "StatementNameString",
|
@@ -775,9 +796,14 @@ module Aws::RedshiftDataAPIService
|
|
775
796
|
# The cluster identifier. This parameter is required when authenticating
|
776
797
|
# using either AWS Secrets Manager or temporary credentials.
|
777
798
|
#
|
799
|
+
# @option params [String] :connected_database
|
800
|
+
# A database name. The connected database is specified when you connect
|
801
|
+
# with your authentication credentials.
|
802
|
+
#
|
778
803
|
# @option params [required, String] :database
|
779
|
-
# The name of the database
|
780
|
-
#
|
804
|
+
# The name of the database that contains the schemas to list. If
|
805
|
+
# `ConnectedDatabase` is not specified, this is also the database to
|
806
|
+
# connect to with your authentication credentials.
|
781
807
|
#
|
782
808
|
# @option params [String] :db_user
|
783
809
|
# The database user name. This parameter is required when authenticating
|
@@ -818,6 +844,7 @@ module Aws::RedshiftDataAPIService
|
|
818
844
|
#
|
819
845
|
# resp = client.list_schemas({
|
820
846
|
# cluster_identifier: "Location", # required
|
847
|
+
# connected_database: "String",
|
821
848
|
# database: "String", # required
|
822
849
|
# db_user: "String",
|
823
850
|
# max_results: 1,
|
@@ -857,6 +884,12 @@ module Aws::RedshiftDataAPIService
|
|
857
884
|
# command. If the NextToken field is empty, all response records have
|
858
885
|
# been retrieved for the request.
|
859
886
|
#
|
887
|
+
# @option params [Boolean] :role_level
|
888
|
+
# A value that filters which statements to return in the response. If
|
889
|
+
# true, all statements run by the caller's IAM role are returned. If
|
890
|
+
# false, only statements run by the caller's IAM role in the current
|
891
|
+
# IAM session are returned. The default is true.
|
892
|
+
#
|
860
893
|
# @option params [String] :statement_name
|
861
894
|
# The name of the SQL statement specified as input to `ExecuteStatement`
|
862
895
|
# to identify the query. You can list multiple statements by providing a
|
@@ -896,8 +929,9 @@ module Aws::RedshiftDataAPIService
|
|
896
929
|
# resp = client.list_statements({
|
897
930
|
# max_results: 1,
|
898
931
|
# next_token: "String",
|
932
|
+
# role_level: false,
|
899
933
|
# statement_name: "StatementNameString",
|
900
|
-
# status: "
|
934
|
+
# status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
|
901
935
|
# })
|
902
936
|
#
|
903
937
|
# @example Response structure
|
@@ -906,10 +940,13 @@ module Aws::RedshiftDataAPIService
|
|
906
940
|
# resp.statements #=> Array
|
907
941
|
# resp.statements[0].created_at #=> Time
|
908
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
|
909
946
|
# resp.statements[0].query_string #=> String
|
910
947
|
# resp.statements[0].secret_arn #=> String
|
911
948
|
# resp.statements[0].statement_name #=> String
|
912
|
-
# resp.statements[0].status #=> String, one of "
|
949
|
+
# resp.statements[0].status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
|
913
950
|
# resp.statements[0].updated_at #=> Time
|
914
951
|
#
|
915
952
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ListStatements AWS API Documentation
|
@@ -940,9 +977,14 @@ module Aws::RedshiftDataAPIService
|
|
940
977
|
# The cluster identifier. This parameter is required when authenticating
|
941
978
|
# using either AWS Secrets Manager or temporary credentials.
|
942
979
|
#
|
980
|
+
# @option params [String] :connected_database
|
981
|
+
# A database name. The connected database is specified when you connect
|
982
|
+
# with your authentication credentials.
|
983
|
+
#
|
943
984
|
# @option params [required, String] :database
|
944
|
-
# The name of the database
|
945
|
-
#
|
985
|
+
# The name of the database that contains the tables to list. If
|
986
|
+
# `ConnectedDatabase` is not specified, this is also the database to
|
987
|
+
# connect to with your authentication credentials.
|
946
988
|
#
|
947
989
|
# @option params [String] :db_user
|
948
990
|
# The database user name. This parameter is required when authenticating
|
@@ -995,6 +1037,7 @@ module Aws::RedshiftDataAPIService
|
|
995
1037
|
#
|
996
1038
|
# resp = client.list_tables({
|
997
1039
|
# cluster_identifier: "Location", # required
|
1040
|
+
# connected_database: "String",
|
998
1041
|
# database: "String", # required
|
999
1042
|
# db_user: "String",
|
1000
1043
|
# max_results: 1,
|
@@ -1034,7 +1077,7 @@ module Aws::RedshiftDataAPIService
|
|
1034
1077
|
params: params,
|
1035
1078
|
config: config)
|
1036
1079
|
context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
|
1037
|
-
context[:gem_version] = '1.
|
1080
|
+
context[:gem_version] = '1.7.0'
|
1038
1081
|
Seahorse::Client::Request.new(handlers, context)
|
1039
1082
|
end
|
1040
1083
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -13,6 +13,7 @@ module Aws::RedshiftDataAPIService
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
ActiveStatementsExceededException = Shapes::StructureShape.new(name: 'ActiveStatementsExceededException')
|
16
17
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
17
18
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
18
19
|
BoxedBoolean = Shapes::BooleanShape.new(name: 'BoxedBoolean')
|
@@ -49,9 +50,13 @@ module Aws::RedshiftDataAPIService
|
|
49
50
|
Location = Shapes::StringShape.new(name: 'Location')
|
50
51
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
51
52
|
PageSize = Shapes::IntegerShape.new(name: 'PageSize')
|
53
|
+
ParameterName = Shapes::StringShape.new(name: 'ParameterName')
|
54
|
+
ParameterValue = Shapes::StringShape.new(name: 'ParameterValue')
|
52
55
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
53
56
|
SchemaList = Shapes::ListShape.new(name: 'SchemaList')
|
54
57
|
SecretArn = Shapes::StringShape.new(name: 'SecretArn')
|
58
|
+
SqlParameter = Shapes::StructureShape.new(name: 'SqlParameter')
|
59
|
+
SqlParametersList = Shapes::ListShape.new(name: 'SqlParametersList')
|
55
60
|
SqlRecords = Shapes::ListShape.new(name: 'SqlRecords')
|
56
61
|
StatementData = Shapes::StructureShape.new(name: 'StatementData')
|
57
62
|
StatementList = Shapes::ListShape.new(name: 'StatementList')
|
@@ -66,6 +71,9 @@ module Aws::RedshiftDataAPIService
|
|
66
71
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
67
72
|
bool = Shapes::BooleanShape.new(name: 'bool')
|
68
73
|
|
74
|
+
ActiveStatementsExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
75
|
+
ActiveStatementsExceededException.struct_class = Types::ActiveStatementsExceededException
|
76
|
+
|
69
77
|
CancelStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
|
70
78
|
CancelStatementRequest.struct_class = Types::CancelStatementRequest
|
71
79
|
|
@@ -102,7 +110,9 @@ module Aws::RedshiftDataAPIService
|
|
102
110
|
DescribeStatementResponse.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
103
111
|
DescribeStatementResponse.add_member(:duration, Shapes::ShapeRef.new(shape: Long, location_name: "Duration"))
|
104
112
|
DescribeStatementResponse.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "Error"))
|
113
|
+
DescribeStatementResponse.add_member(:has_result_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasResultSet"))
|
105
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"))
|
106
116
|
DescribeStatementResponse.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
107
117
|
DescribeStatementResponse.add_member(:redshift_pid, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftPid"))
|
108
118
|
DescribeStatementResponse.add_member(:redshift_query_id, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftQueryId"))
|
@@ -114,7 +124,8 @@ module Aws::RedshiftDataAPIService
|
|
114
124
|
DescribeStatementResponse.struct_class = Types::DescribeStatementResponse
|
115
125
|
|
116
126
|
DescribeTableRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
|
117
|
-
DescribeTableRequest.add_member(:
|
127
|
+
DescribeTableRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
|
128
|
+
DescribeTableRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
118
129
|
DescribeTableRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
119
130
|
DescribeTableRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
120
131
|
DescribeTableRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
@@ -135,6 +146,7 @@ module Aws::RedshiftDataAPIService
|
|
135
146
|
ExecuteStatementInput.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
|
136
147
|
ExecuteStatementInput.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
|
137
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"))
|
138
150
|
ExecuteStatementInput.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
139
151
|
ExecuteStatementInput.add_member(:sql, Shapes::ShapeRef.new(shape: StatementString, required: true, location_name: "Sql"))
|
140
152
|
ExecuteStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
@@ -185,6 +197,7 @@ module Aws::RedshiftDataAPIService
|
|
185
197
|
ListDatabasesResponse.struct_class = Types::ListDatabasesResponse
|
186
198
|
|
187
199
|
ListSchemasRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
|
200
|
+
ListSchemasRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
|
188
201
|
ListSchemasRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
189
202
|
ListSchemasRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
190
203
|
ListSchemasRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
@@ -199,6 +212,7 @@ module Aws::RedshiftDataAPIService
|
|
199
212
|
|
200
213
|
ListStatementsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListStatementsLimit, location_name: "MaxResults"))
|
201
214
|
ListStatementsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
215
|
+
ListStatementsRequest.add_member(:role_level, Shapes::ShapeRef.new(shape: Boolean, location_name: "RoleLevel"))
|
202
216
|
ListStatementsRequest.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
203
217
|
ListStatementsRequest.add_member(:status, Shapes::ShapeRef.new(shape: StatusString, location_name: "Status"))
|
204
218
|
ListStatementsRequest.struct_class = Types::ListStatementsRequest
|
@@ -208,6 +222,7 @@ module Aws::RedshiftDataAPIService
|
|
208
222
|
ListStatementsResponse.struct_class = Types::ListStatementsResponse
|
209
223
|
|
210
224
|
ListTablesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
|
225
|
+
ListTablesRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
|
211
226
|
ListTablesRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
|
212
227
|
ListTablesRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
|
213
228
|
ListTablesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
|
@@ -227,10 +242,17 @@ module Aws::RedshiftDataAPIService
|
|
227
242
|
|
228
243
|
SchemaList.member = Shapes::ShapeRef.new(shape: String)
|
229
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
|
+
|
230
251
|
SqlRecords.member = Shapes::ShapeRef.new(shape: FieldList)
|
231
252
|
|
232
253
|
StatementData.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
233
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"))
|
234
256
|
StatementData.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
|
235
257
|
StatementData.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
236
258
|
StatementData.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
|
@@ -314,6 +336,7 @@ module Aws::RedshiftDataAPIService
|
|
314
336
|
o.output = Shapes::ShapeRef.new(shape: ExecuteStatementOutput)
|
315
337
|
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
316
338
|
o.errors << Shapes::ShapeRef.new(shape: ExecuteStatementException)
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: ActiveStatementsExceededException)
|
317
340
|
end)
|
318
341
|
|
319
342
|
api.add_operation(:get_statement_result, Seahorse::Model::Operation.new.tap do |o|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -27,6 +27,7 @@ module Aws::RedshiftDataAPIService
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {ActiveStatementsExceededException}
|
30
31
|
# * {ExecuteStatementException}
|
31
32
|
# * {InternalServerException}
|
32
33
|
# * {ResourceNotFoundException}
|
@@ -38,6 +39,21 @@ module Aws::RedshiftDataAPIService
|
|
38
39
|
|
39
40
|
extend Aws::Errors::DynamicErrors
|
40
41
|
|
42
|
+
class ActiveStatementsExceededException < ServiceError
|
43
|
+
|
44
|
+
# @param [Seahorse::Client::RequestContext] context
|
45
|
+
# @param [String] message
|
46
|
+
# @param [Aws::RedshiftDataAPIService::Types::ActiveStatementsExceededException] data
|
47
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
48
|
+
super(context, message, data)
|
49
|
+
end
|
50
|
+
|
51
|
+
# @return [String]
|
52
|
+
def message
|
53
|
+
@message || @data[:message]
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
41
57
|
class ExecuteStatementException < ServiceError
|
42
58
|
|
43
59
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -3,13 +3,26 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
10
|
module Aws::RedshiftDataAPIService
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# The number of active statements exceeds the limit.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ActiveStatementsExceededException AWS API Documentation
|
19
|
+
#
|
20
|
+
class ActiveStatementsExceededException < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
13
26
|
# @note When making an API call, you may pass CancelStatementRequest
|
14
27
|
# data as a hash:
|
15
28
|
#
|
@@ -167,12 +180,21 @@ module Aws::RedshiftDataAPIService
|
|
167
180
|
# an error while running.
|
168
181
|
# @return [String]
|
169
182
|
#
|
183
|
+
# @!attribute [rw] has_result_set
|
184
|
+
# A value that indicates whether the statement has a result set. The
|
185
|
+
# result set can be empty.
|
186
|
+
# @return [Boolean]
|
187
|
+
#
|
170
188
|
# @!attribute [rw] id
|
171
189
|
# The identifier of the SQL statement described. This value is a
|
172
190
|
# universally unique identifier (UUID) generated by Amazon Redshift
|
173
191
|
# Data API.
|
174
192
|
# @return [String]
|
175
193
|
#
|
194
|
+
# @!attribute [rw] query_parameters
|
195
|
+
# The parameters for the SQL statement.
|
196
|
+
# @return [Array<Types::SqlParameter>]
|
197
|
+
#
|
176
198
|
# @!attribute [rw] query_string
|
177
199
|
# The SQL statement text.
|
178
200
|
# @return [String]
|
@@ -237,7 +259,9 @@ module Aws::RedshiftDataAPIService
|
|
237
259
|
:db_user,
|
238
260
|
:duration,
|
239
261
|
:error,
|
262
|
+
:has_result_set,
|
240
263
|
:id,
|
264
|
+
:query_parameters,
|
241
265
|
:query_string,
|
242
266
|
:redshift_pid,
|
243
267
|
:redshift_query_id,
|
@@ -255,7 +279,8 @@ module Aws::RedshiftDataAPIService
|
|
255
279
|
#
|
256
280
|
# {
|
257
281
|
# cluster_identifier: "Location", # required
|
258
|
-
#
|
282
|
+
# connected_database: "String",
|
283
|
+
# database: "String", # required
|
259
284
|
# db_user: "String",
|
260
285
|
# max_results: 1,
|
261
286
|
# next_token: "String",
|
@@ -270,9 +295,15 @@ module Aws::RedshiftDataAPIService
|
|
270
295
|
# credentials.
|
271
296
|
# @return [String]
|
272
297
|
#
|
298
|
+
# @!attribute [rw] connected_database
|
299
|
+
# A database name. The connected database is specified when you
|
300
|
+
# connect with your authentication credentials.
|
301
|
+
# @return [String]
|
302
|
+
#
|
273
303
|
# @!attribute [rw] database
|
274
|
-
# The name of the database
|
275
|
-
#
|
304
|
+
# The name of the database that contains the tables to be described.
|
305
|
+
# If `ConnectedDatabase` is not specified, this is also the database
|
306
|
+
# to connect to with your authentication credentials.
|
276
307
|
# @return [String]
|
277
308
|
#
|
278
309
|
# @!attribute [rw] db_user
|
@@ -317,6 +348,7 @@ module Aws::RedshiftDataAPIService
|
|
317
348
|
#
|
318
349
|
class DescribeTableRequest < Struct.new(
|
319
350
|
:cluster_identifier,
|
351
|
+
:connected_database,
|
320
352
|
:database,
|
321
353
|
:db_user,
|
322
354
|
:max_results,
|
@@ -381,6 +413,12 @@ module Aws::RedshiftDataAPIService
|
|
381
413
|
# cluster_identifier: "Location", # required
|
382
414
|
# database: "String",
|
383
415
|
# db_user: "String",
|
416
|
+
# parameters: [
|
417
|
+
# {
|
418
|
+
# name: "ParameterName", # required
|
419
|
+
# value: "ParameterValue", # required
|
420
|
+
# },
|
421
|
+
# ],
|
384
422
|
# secret_arn: "SecretArn",
|
385
423
|
# sql: "StatementString", # required
|
386
424
|
# statement_name: "StatementNameString",
|
@@ -403,6 +441,10 @@ module Aws::RedshiftDataAPIService
|
|
403
441
|
# authenticating using temporary credentials.
|
404
442
|
# @return [String]
|
405
443
|
#
|
444
|
+
# @!attribute [rw] parameters
|
445
|
+
# The parameters for the SQL statement.
|
446
|
+
# @return [Array<Types::SqlParameter>]
|
447
|
+
#
|
406
448
|
# @!attribute [rw] secret_arn
|
407
449
|
# The name or ARN of the secret that enables access to the database.
|
408
450
|
# This parameter is required when authenticating using AWS Secrets
|
@@ -429,6 +471,7 @@ module Aws::RedshiftDataAPIService
|
|
429
471
|
:cluster_identifier,
|
430
472
|
:database,
|
431
473
|
:db_user,
|
474
|
+
:parameters,
|
432
475
|
:secret_arn,
|
433
476
|
:sql,
|
434
477
|
:statement_name,
|
@@ -685,6 +728,7 @@ module Aws::RedshiftDataAPIService
|
|
685
728
|
#
|
686
729
|
# {
|
687
730
|
# cluster_identifier: "Location", # required
|
731
|
+
# connected_database: "String",
|
688
732
|
# database: "String", # required
|
689
733
|
# db_user: "String",
|
690
734
|
# max_results: 1,
|
@@ -699,9 +743,15 @@ module Aws::RedshiftDataAPIService
|
|
699
743
|
# credentials.
|
700
744
|
# @return [String]
|
701
745
|
#
|
746
|
+
# @!attribute [rw] connected_database
|
747
|
+
# A database name. The connected database is specified when you
|
748
|
+
# connect with your authentication credentials.
|
749
|
+
# @return [String]
|
750
|
+
#
|
702
751
|
# @!attribute [rw] database
|
703
|
-
# The name of the database
|
704
|
-
#
|
752
|
+
# The name of the database that contains the schemas to list. If
|
753
|
+
# `ConnectedDatabase` is not specified, this is also the database to
|
754
|
+
# connect to with your authentication credentials.
|
705
755
|
# @return [String]
|
706
756
|
#
|
707
757
|
# @!attribute [rw] db_user
|
@@ -741,6 +791,7 @@ module Aws::RedshiftDataAPIService
|
|
741
791
|
#
|
742
792
|
class ListSchemasRequest < Struct.new(
|
743
793
|
:cluster_identifier,
|
794
|
+
:connected_database,
|
744
795
|
:database,
|
745
796
|
:db_user,
|
746
797
|
:max_results,
|
@@ -779,8 +830,9 @@ module Aws::RedshiftDataAPIService
|
|
779
830
|
# {
|
780
831
|
# max_results: 1,
|
781
832
|
# next_token: "String",
|
833
|
+
# role_level: false,
|
782
834
|
# statement_name: "StatementNameString",
|
783
|
-
# status: "
|
835
|
+
# status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
|
784
836
|
# }
|
785
837
|
#
|
786
838
|
# @!attribute [rw] max_results
|
@@ -798,6 +850,13 @@ module Aws::RedshiftDataAPIService
|
|
798
850
|
# records have been retrieved for the request.
|
799
851
|
# @return [String]
|
800
852
|
#
|
853
|
+
# @!attribute [rw] role_level
|
854
|
+
# A value that filters which statements to return in the response. If
|
855
|
+
# true, all statements run by the caller's IAM role are returned. If
|
856
|
+
# false, only statements run by the caller's IAM role in the current
|
857
|
+
# IAM session are returned. The default is true.
|
858
|
+
# @return [Boolean]
|
859
|
+
#
|
801
860
|
# @!attribute [rw] statement_name
|
802
861
|
# The name of the SQL statement specified as input to
|
803
862
|
# `ExecuteStatement` to identify the query. You can list multiple
|
@@ -833,6 +892,7 @@ module Aws::RedshiftDataAPIService
|
|
833
892
|
class ListStatementsRequest < Struct.new(
|
834
893
|
:max_results,
|
835
894
|
:next_token,
|
895
|
+
:role_level,
|
836
896
|
:statement_name,
|
837
897
|
:status)
|
838
898
|
SENSITIVE = []
|
@@ -866,6 +926,7 @@ module Aws::RedshiftDataAPIService
|
|
866
926
|
#
|
867
927
|
# {
|
868
928
|
# cluster_identifier: "Location", # required
|
929
|
+
# connected_database: "String",
|
869
930
|
# database: "String", # required
|
870
931
|
# db_user: "String",
|
871
932
|
# max_results: 1,
|
@@ -881,9 +942,15 @@ module Aws::RedshiftDataAPIService
|
|
881
942
|
# credentials.
|
882
943
|
# @return [String]
|
883
944
|
#
|
945
|
+
# @!attribute [rw] connected_database
|
946
|
+
# A database name. The connected database is specified when you
|
947
|
+
# connect with your authentication credentials.
|
948
|
+
# @return [String]
|
949
|
+
#
|
884
950
|
# @!attribute [rw] database
|
885
|
-
# The name of the database
|
886
|
-
#
|
951
|
+
# The name of the database that contains the tables to list. If
|
952
|
+
# `ConnectedDatabase` is not specified, this is also the database to
|
953
|
+
# connect to with your authentication credentials.
|
887
954
|
# @return [String]
|
888
955
|
#
|
889
956
|
# @!attribute [rw] db_user
|
@@ -936,6 +1003,7 @@ module Aws::RedshiftDataAPIService
|
|
936
1003
|
#
|
937
1004
|
class ListTablesRequest < Struct.new(
|
938
1005
|
:cluster_identifier,
|
1006
|
+
:connected_database,
|
939
1007
|
:database,
|
940
1008
|
:db_user,
|
941
1009
|
:max_results,
|
@@ -989,6 +1057,39 @@ module Aws::RedshiftDataAPIService
|
|
989
1057
|
include Aws::Structure
|
990
1058
|
end
|
991
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
|
+
|
992
1093
|
# The SQL statement to run.
|
993
1094
|
#
|
994
1095
|
# @!attribute [rw] created_at
|
@@ -1000,6 +1101,10 @@ module Aws::RedshiftDataAPIService
|
|
1000
1101
|
# identifier (UUID) generated by Amazon Redshift Data API.
|
1001
1102
|
# @return [String]
|
1002
1103
|
#
|
1104
|
+
# @!attribute [rw] query_parameters
|
1105
|
+
# The parameters used in a SQL statement.
|
1106
|
+
# @return [Array<Types::SqlParameter>]
|
1107
|
+
#
|
1003
1108
|
# @!attribute [rw] query_string
|
1004
1109
|
# The SQL statement.
|
1005
1110
|
# @return [String]
|
@@ -1028,6 +1133,7 @@ module Aws::RedshiftDataAPIService
|
|
1028
1133
|
class StatementData < Struct.new(
|
1029
1134
|
:created_at,
|
1030
1135
|
:id,
|
1136
|
+
:query_parameters,
|
1031
1137
|
:query_string,
|
1032
1138
|
:secret_arn,
|
1033
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:
|
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
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.112.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.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,11 +47,14 @@ dependencies:
|
|
47
47
|
description: Official AWS Ruby gem for Redshift Data API Service. This gem is part
|
48
48
|
of the AWS SDK for Ruby.
|
49
49
|
email:
|
50
|
-
-
|
50
|
+
- aws-dr-rubygems@amazon.com
|
51
51
|
executables: []
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
+
- CHANGELOG.md
|
56
|
+
- LICENSE.txt
|
57
|
+
- VERSION
|
55
58
|
- lib/aws-sdk-redshiftdataapiservice.rb
|
56
59
|
- lib/aws-sdk-redshiftdataapiservice/client.rb
|
57
60
|
- lib/aws-sdk-redshiftdataapiservice/client_api.rb
|
@@ -63,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
63
66
|
licenses:
|
64
67
|
- Apache-2.0
|
65
68
|
metadata:
|
66
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
67
|
-
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
|
68
71
|
post_install_message:
|
69
72
|
rdoc_options: []
|
70
73
|
require_paths:
|
@@ -80,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
83
|
- !ruby/object:Gem::Version
|
81
84
|
version: '0'
|
82
85
|
requirements: []
|
83
|
-
|
84
|
-
rubygems_version: 2.7.6.2
|
86
|
+
rubygems_version: 3.1.6
|
85
87
|
signing_key:
|
86
88
|
specification_version: 4
|
87
89
|
summary: AWS SDK for Ruby - Redshift Data API Service
|