aws-sdk-redshiftdataapiservice 1.1.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c0dbd147cef7463ca1abfff3dfe31e04b47d06588541f487967bb0a2eca2093
4
- data.tar.gz: 62bd217e4649b3b33f3da61fa124443dc11f0702c03a7242c8a7a80cb6c29a0c
3
+ metadata.gz: db757f2e1e55d2dfdc2b9870ffa0e6f7578b531ccb7dedd5f17c99cee6ed1261
4
+ data.tar.gz: cae17742ef8294622a038f2fcad37ab503340d46fcab447c91b4f848529b79ac
5
5
  SHA512:
6
- metadata.gz: 502d016992e4c90792062a46fabef4953f53766000493cf7fd0622b6314625a4d82069d4b0d11c0417dcbf4f873057f9c1e433f5ef6e958e8d77f050fd574da7
7
- data.tar.gz: a972fa0110670819878d4d107c916e009be98a3fca12e2934158f8bf28ccdf4487d5e7d6bf994b7da3fc552191b081070aa0a9a18e1a71329ab5e5ad857f63a5
6
+ metadata.gz: addb578b4de8100d0c60576adfb63f38708c475ac8d8e2504d11f48aa598c191f9c997de2410a03456b0ae82244cea54964d2e2a63a4447e529fa97a753c1994
7
+ data.tar.gz: 76860b18b8c8a43f3e9ff8a4d770b5e70cb1b6962a516a0fec4d2446be2c04459e32b4dabbaabedf9eef06e365e39ae9672b9a24f57757c2a6e34125596987d9
data/CHANGELOG.md ADDED
@@ -0,0 +1,38 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.6.0 (2021-03-10)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.5.0 (2021-02-23)
10
+ ------------------
11
+
12
+ * Feature - This release adds an additional parameter 'ConnectedDatabase' into ListSchemasRequest, ListTablesRequest and DescribeTableRequest to support the metadata sharing across databases.
13
+
14
+ 1.4.0 (2021-02-15)
15
+ ------------------
16
+
17
+ * Feature - This release enables fine grant access control in ListStatements, GetStatementResult, CancelStatement and DescribeStatement.
18
+
19
+ 1.3.0 (2021-02-02)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.2.0 (2020-09-30)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.1.0 (2020-09-15)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.0.0 (2020-09-09)
35
+ ------------------
36
+
37
+ * Feature - Initial release of `aws-sdk-redshiftdataapiservice`.
38
+
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.6.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/master/CONTRIBUTING.md
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.1.0'
51
+ GEM_VERSION = '1.6.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/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -387,6 +387,7 @@ 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
391
392
  # * {Types::DescribeStatementResponse#query_string #query_string} => String
392
393
  # * {Types::DescribeStatementResponse#redshift_pid #redshift_pid} => Integer
@@ -411,6 +412,7 @@ module Aws::RedshiftDataAPIService
411
412
  # resp.db_user #=> String
412
413
  # resp.duration #=> Integer
413
414
  # resp.error #=> String
415
+ # resp.has_result_set #=> Boolean
414
416
  # resp.id #=> String
415
417
  # resp.query_string #=> String
416
418
  # resp.redshift_pid #=> Integer
@@ -418,7 +420,7 @@ module Aws::RedshiftDataAPIService
418
420
  # resp.result_rows #=> Integer
419
421
  # resp.result_size #=> Integer
420
422
  # resp.secret_arn #=> String
421
- # resp.status #=> String, one of "ABORTED", "ALL", "FAILED", "FINISHED", "PICKED", "STARTED", "SUBMITTED"
423
+ # resp.status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
422
424
  # resp.updated_at #=> Time
423
425
  #
424
426
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/DescribeStatement AWS API Documentation
@@ -448,9 +450,14 @@ module Aws::RedshiftDataAPIService
448
450
  # The cluster identifier. This parameter is required when authenticating
449
451
  # using either AWS Secrets Manager or temporary credentials.
450
452
  #
451
- # @option params [String] :database
452
- # The name of the database. This parameter is required when
453
- # authenticating using temporary credentials.
453
+ # @option params [String] :connected_database
454
+ # A database name. The connected database is specified when you connect
455
+ # with your authentication credentials.
456
+ #
457
+ # @option params [required, String] :database
458
+ # The name of the database that contains the tables to be described. If
459
+ # `ConnectedDatabase` is not specified, this is also the database to
460
+ # connect to with your authentication credentials.
454
461
  #
455
462
  # @option params [String] :db_user
456
463
  # The database user name. This parameter is required when authenticating
@@ -495,7 +502,8 @@ module Aws::RedshiftDataAPIService
495
502
  #
496
503
  # resp = client.describe_table({
497
504
  # cluster_identifier: "Location", # required
498
- # database: "String",
505
+ # connected_database: "String",
506
+ # database: "String", # required
499
507
  # db_user: "String",
500
508
  # max_results: 1,
501
509
  # next_token: "String",
@@ -775,9 +783,14 @@ module Aws::RedshiftDataAPIService
775
783
  # The cluster identifier. This parameter is required when authenticating
776
784
  # using either AWS Secrets Manager or temporary credentials.
777
785
  #
786
+ # @option params [String] :connected_database
787
+ # A database name. The connected database is specified when you connect
788
+ # with your authentication credentials.
789
+ #
778
790
  # @option params [required, String] :database
779
- # The name of the database. This parameter is required when
780
- # authenticating using temporary credentials.
791
+ # The name of the database that contains the schemas to list. If
792
+ # `ConnectedDatabase` is not specified, this is also the database to
793
+ # connect to with your authentication credentials.
781
794
  #
782
795
  # @option params [String] :db_user
783
796
  # The database user name. This parameter is required when authenticating
@@ -818,6 +831,7 @@ module Aws::RedshiftDataAPIService
818
831
  #
819
832
  # resp = client.list_schemas({
820
833
  # cluster_identifier: "Location", # required
834
+ # connected_database: "String",
821
835
  # database: "String", # required
822
836
  # db_user: "String",
823
837
  # max_results: 1,
@@ -857,6 +871,12 @@ module Aws::RedshiftDataAPIService
857
871
  # command. If the NextToken field is empty, all response records have
858
872
  # been retrieved for the request.
859
873
  #
874
+ # @option params [Boolean] :role_level
875
+ # A value that filters which statements to return in the response. If
876
+ # true, all statements run by the caller's IAM role are returned. If
877
+ # false, only statements run by the caller's IAM role in the current
878
+ # IAM session are returned. The default is true.
879
+ #
860
880
  # @option params [String] :statement_name
861
881
  # The name of the SQL statement specified as input to `ExecuteStatement`
862
882
  # to identify the query. You can list multiple statements by providing a
@@ -896,8 +916,9 @@ module Aws::RedshiftDataAPIService
896
916
  # resp = client.list_statements({
897
917
  # max_results: 1,
898
918
  # next_token: "String",
919
+ # role_level: false,
899
920
  # statement_name: "StatementNameString",
900
- # status: "ABORTED", # accepts ABORTED, ALL, FAILED, FINISHED, PICKED, STARTED, SUBMITTED
921
+ # status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
901
922
  # })
902
923
  #
903
924
  # @example Response structure
@@ -909,7 +930,7 @@ module Aws::RedshiftDataAPIService
909
930
  # resp.statements[0].query_string #=> String
910
931
  # resp.statements[0].secret_arn #=> String
911
932
  # resp.statements[0].statement_name #=> String
912
- # resp.statements[0].status #=> String, one of "ABORTED", "ALL", "FAILED", "FINISHED", "PICKED", "STARTED", "SUBMITTED"
933
+ # resp.statements[0].status #=> String, one of "SUBMITTED", "PICKED", "STARTED", "FINISHED", "ABORTED", "FAILED", "ALL"
913
934
  # resp.statements[0].updated_at #=> Time
914
935
  #
915
936
  # @see http://docs.aws.amazon.com/goto/WebAPI/redshift-data-2019-12-20/ListStatements AWS API Documentation
@@ -940,9 +961,14 @@ module Aws::RedshiftDataAPIService
940
961
  # The cluster identifier. This parameter is required when authenticating
941
962
  # using either AWS Secrets Manager or temporary credentials.
942
963
  #
964
+ # @option params [String] :connected_database
965
+ # A database name. The connected database is specified when you connect
966
+ # with your authentication credentials.
967
+ #
943
968
  # @option params [required, String] :database
944
- # The name of the database. This parameter is required when
945
- # authenticating using temporary credentials.
969
+ # The name of the database that contains the tables to list. If
970
+ # `ConnectedDatabase` is not specified, this is also the database to
971
+ # connect to with your authentication credentials.
946
972
  #
947
973
  # @option params [String] :db_user
948
974
  # The database user name. This parameter is required when authenticating
@@ -995,6 +1021,7 @@ module Aws::RedshiftDataAPIService
995
1021
  #
996
1022
  # resp = client.list_tables({
997
1023
  # cluster_identifier: "Location", # required
1024
+ # connected_database: "String",
998
1025
  # database: "String", # required
999
1026
  # db_user: "String",
1000
1027
  # max_results: 1,
@@ -1034,7 +1061,7 @@ module Aws::RedshiftDataAPIService
1034
1061
  params: params,
1035
1062
  config: config)
1036
1063
  context[:gem_name] = 'aws-sdk-redshiftdataapiservice'
1037
- context[:gem_version] = '1.1.0'
1064
+ context[:gem_version] = '1.6.0'
1038
1065
  Seahorse::Client::Request.new(handlers, context)
1039
1066
  end
1040
1067
 
@@ -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/master/CONTRIBUTING.md
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')
@@ -66,6 +67,9 @@ module Aws::RedshiftDataAPIService
66
67
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
67
68
  bool = Shapes::BooleanShape.new(name: 'bool')
68
69
 
70
+ ActiveStatementsExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
71
+ ActiveStatementsExceededException.struct_class = Types::ActiveStatementsExceededException
72
+
69
73
  CancelStatementRequest.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
70
74
  CancelStatementRequest.struct_class = Types::CancelStatementRequest
71
75
 
@@ -102,6 +106,7 @@ module Aws::RedshiftDataAPIService
102
106
  DescribeStatementResponse.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
103
107
  DescribeStatementResponse.add_member(:duration, Shapes::ShapeRef.new(shape: Long, location_name: "Duration"))
104
108
  DescribeStatementResponse.add_member(:error, Shapes::ShapeRef.new(shape: String, location_name: "Error"))
109
+ DescribeStatementResponse.add_member(:has_result_set, Shapes::ShapeRef.new(shape: Boolean, location_name: "HasResultSet"))
105
110
  DescribeStatementResponse.add_member(:id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "Id"))
106
111
  DescribeStatementResponse.add_member(:query_string, Shapes::ShapeRef.new(shape: StatementString, location_name: "QueryString"))
107
112
  DescribeStatementResponse.add_member(:redshift_pid, Shapes::ShapeRef.new(shape: Long, location_name: "RedshiftPid"))
@@ -114,7 +119,8 @@ module Aws::RedshiftDataAPIService
114
119
  DescribeStatementResponse.struct_class = Types::DescribeStatementResponse
115
120
 
116
121
  DescribeTableRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
117
- DescribeTableRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, location_name: "Database"))
122
+ DescribeTableRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
123
+ DescribeTableRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
118
124
  DescribeTableRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
119
125
  DescribeTableRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
120
126
  DescribeTableRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
@@ -185,6 +191,7 @@ module Aws::RedshiftDataAPIService
185
191
  ListDatabasesResponse.struct_class = Types::ListDatabasesResponse
186
192
 
187
193
  ListSchemasRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
194
+ ListSchemasRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
188
195
  ListSchemasRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
189
196
  ListSchemasRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
190
197
  ListSchemasRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
@@ -199,6 +206,7 @@ module Aws::RedshiftDataAPIService
199
206
 
200
207
  ListStatementsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListStatementsLimit, location_name: "MaxResults"))
201
208
  ListStatementsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
209
+ ListStatementsRequest.add_member(:role_level, Shapes::ShapeRef.new(shape: Boolean, location_name: "RoleLevel"))
202
210
  ListStatementsRequest.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementNameString, location_name: "StatementName"))
203
211
  ListStatementsRequest.add_member(:status, Shapes::ShapeRef.new(shape: StatusString, location_name: "Status"))
204
212
  ListStatementsRequest.struct_class = Types::ListStatementsRequest
@@ -208,6 +216,7 @@ module Aws::RedshiftDataAPIService
208
216
  ListStatementsResponse.struct_class = Types::ListStatementsResponse
209
217
 
210
218
  ListTablesRequest.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "ClusterIdentifier"))
219
+ ListTablesRequest.add_member(:connected_database, Shapes::ShapeRef.new(shape: String, location_name: "ConnectedDatabase"))
211
220
  ListTablesRequest.add_member(:database, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Database"))
212
221
  ListTablesRequest.add_member(:db_user, Shapes::ShapeRef.new(shape: String, location_name: "DbUser"))
213
222
  ListTablesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "MaxResults"))
@@ -314,6 +323,7 @@ module Aws::RedshiftDataAPIService
314
323
  o.output = Shapes::ShapeRef.new(shape: ExecuteStatementOutput)
315
324
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
316
325
  o.errors << Shapes::ShapeRef.new(shape: ExecuteStatementException)
326
+ o.errors << Shapes::ShapeRef.new(shape: ActiveStatementsExceededException)
317
327
  end)
318
328
 
319
329
  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/master/CONTRIBUTING.md
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/master/CONTRIBUTING.md
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/master/CONTRIBUTING.md
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,6 +180,11 @@ 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
@@ -237,6 +255,7 @@ module Aws::RedshiftDataAPIService
237
255
  :db_user,
238
256
  :duration,
239
257
  :error,
258
+ :has_result_set,
240
259
  :id,
241
260
  :query_string,
242
261
  :redshift_pid,
@@ -255,7 +274,8 @@ module Aws::RedshiftDataAPIService
255
274
  #
256
275
  # {
257
276
  # cluster_identifier: "Location", # required
258
- # database: "String",
277
+ # connected_database: "String",
278
+ # database: "String", # required
259
279
  # db_user: "String",
260
280
  # max_results: 1,
261
281
  # next_token: "String",
@@ -270,9 +290,15 @@ module Aws::RedshiftDataAPIService
270
290
  # credentials.
271
291
  # @return [String]
272
292
  #
293
+ # @!attribute [rw] connected_database
294
+ # A database name. The connected database is specified when you
295
+ # connect with your authentication credentials.
296
+ # @return [String]
297
+ #
273
298
  # @!attribute [rw] database
274
- # The name of the database. This parameter is required when
275
- # authenticating using temporary credentials.
299
+ # The name of the database that contains the tables to be described.
300
+ # If `ConnectedDatabase` is not specified, this is also the database
301
+ # to connect to with your authentication credentials.
276
302
  # @return [String]
277
303
  #
278
304
  # @!attribute [rw] db_user
@@ -317,6 +343,7 @@ module Aws::RedshiftDataAPIService
317
343
  #
318
344
  class DescribeTableRequest < Struct.new(
319
345
  :cluster_identifier,
346
+ :connected_database,
320
347
  :database,
321
348
  :db_user,
322
349
  :max_results,
@@ -685,6 +712,7 @@ module Aws::RedshiftDataAPIService
685
712
  #
686
713
  # {
687
714
  # cluster_identifier: "Location", # required
715
+ # connected_database: "String",
688
716
  # database: "String", # required
689
717
  # db_user: "String",
690
718
  # max_results: 1,
@@ -699,9 +727,15 @@ module Aws::RedshiftDataAPIService
699
727
  # credentials.
700
728
  # @return [String]
701
729
  #
730
+ # @!attribute [rw] connected_database
731
+ # A database name. The connected database is specified when you
732
+ # connect with your authentication credentials.
733
+ # @return [String]
734
+ #
702
735
  # @!attribute [rw] database
703
- # The name of the database. This parameter is required when
704
- # authenticating using temporary credentials.
736
+ # The name of the database that contains the schemas to list. If
737
+ # `ConnectedDatabase` is not specified, this is also the database to
738
+ # connect to with your authentication credentials.
705
739
  # @return [String]
706
740
  #
707
741
  # @!attribute [rw] db_user
@@ -741,6 +775,7 @@ module Aws::RedshiftDataAPIService
741
775
  #
742
776
  class ListSchemasRequest < Struct.new(
743
777
  :cluster_identifier,
778
+ :connected_database,
744
779
  :database,
745
780
  :db_user,
746
781
  :max_results,
@@ -779,8 +814,9 @@ module Aws::RedshiftDataAPIService
779
814
  # {
780
815
  # max_results: 1,
781
816
  # next_token: "String",
817
+ # role_level: false,
782
818
  # statement_name: "StatementNameString",
783
- # status: "ABORTED", # accepts ABORTED, ALL, FAILED, FINISHED, PICKED, STARTED, SUBMITTED
819
+ # status: "SUBMITTED", # accepts SUBMITTED, PICKED, STARTED, FINISHED, ABORTED, FAILED, ALL
784
820
  # }
785
821
  #
786
822
  # @!attribute [rw] max_results
@@ -798,6 +834,13 @@ module Aws::RedshiftDataAPIService
798
834
  # records have been retrieved for the request.
799
835
  # @return [String]
800
836
  #
837
+ # @!attribute [rw] role_level
838
+ # A value that filters which statements to return in the response. If
839
+ # true, all statements run by the caller's IAM role are returned. If
840
+ # false, only statements run by the caller's IAM role in the current
841
+ # IAM session are returned. The default is true.
842
+ # @return [Boolean]
843
+ #
801
844
  # @!attribute [rw] statement_name
802
845
  # The name of the SQL statement specified as input to
803
846
  # `ExecuteStatement` to identify the query. You can list multiple
@@ -833,6 +876,7 @@ module Aws::RedshiftDataAPIService
833
876
  class ListStatementsRequest < Struct.new(
834
877
  :max_results,
835
878
  :next_token,
879
+ :role_level,
836
880
  :statement_name,
837
881
  :status)
838
882
  SENSITIVE = []
@@ -866,6 +910,7 @@ module Aws::RedshiftDataAPIService
866
910
  #
867
911
  # {
868
912
  # cluster_identifier: "Location", # required
913
+ # connected_database: "String",
869
914
  # database: "String", # required
870
915
  # db_user: "String",
871
916
  # max_results: 1,
@@ -881,9 +926,15 @@ module Aws::RedshiftDataAPIService
881
926
  # credentials.
882
927
  # @return [String]
883
928
  #
929
+ # @!attribute [rw] connected_database
930
+ # A database name. The connected database is specified when you
931
+ # connect with your authentication credentials.
932
+ # @return [String]
933
+ #
884
934
  # @!attribute [rw] database
885
- # The name of the database. This parameter is required when
886
- # authenticating using temporary credentials.
935
+ # The name of the database that contains the tables to list. If
936
+ # `ConnectedDatabase` is not specified, this is also the database to
937
+ # connect to with your authentication credentials.
887
938
  # @return [String]
888
939
  #
889
940
  # @!attribute [rw] db_user
@@ -936,6 +987,7 @@ module Aws::RedshiftDataAPIService
936
987
  #
937
988
  class ListTablesRequest < Struct.new(
938
989
  :cluster_identifier,
990
+ :connected_database,
939
991
  :database,
940
992
  :db_user,
941
993
  :max_results,
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.1.0
4
+ version: 1.6.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: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2021-03-10 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.99.0
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.99.0
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
- - trevrowe@amazon.com
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