aws-sdk-athena 1.35.0 → 1.36.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: 28f71cbb3b6c90e76ef89f3334b884af46b0cd66287aa08d01f9bb2083038313
4
- data.tar.gz: 33fd54da2031d1bc723ff234e8a1399fdf5afefbf3a62a338a2857c6e3fdee22
3
+ metadata.gz: bec5a4b3e65f62262439014bdf3399f4de6ae83b39554884edc8cb47a0e74dc3
4
+ data.tar.gz: 4f5400e4e657926bdfab65c2e6c523ea8cb00e061ac28ea06cb915372719196c
5
5
  SHA512:
6
- metadata.gz: 33bed14929a74ba6638c86a8dae9cd92dc9c427dbf35b062f47fbad0537385cce7c4ae3d2daa3c378dd0ccf174c518e7a567fbf001e096654da2292a9d1b0d5f
7
- data.tar.gz: 62668dfec48e622fd8d75cd8e8182e5c1f1d98c6198ce7e11e54cb212846b3b6bdf062594353982364586b78c1f086ae57d577d259e4d8eb16d7eb16b1d217a2
6
+ metadata.gz: 91b316fad25d21ff027e9a0d8b1044c90cb44ab9c7bc1a3494c2fa25c6b3b36da64c3f61b717533665747d5d2e7a0216508b82b0214c959163faa180012c0779
7
+ data.tar.gz: 647242ccd02c9db5346372343a366deda7cd4ccafe576f362a3f2f8e3820b155a5d17560bf6f79a0d3fa0abdc3011d22ff6e389254105964fdde84a3135127e7
data/CHANGELOG.md ADDED
@@ -0,0 +1,231 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.36.0 (2021-03-05)
5
+ ------------------
6
+
7
+ * Feature - Adds APIs to create, list, update, and delete prepared SQL statements that have optional placeholder parameters. A prepared statement can use different values for these parameters each time it is run.
8
+
9
+ 1.35.0 (2021-02-04)
10
+ ------------------
11
+
12
+ * Feature - Adds the Athena ListEngineVersions action and the EngineVersion data type. ListEngineVersions returns the available Athena engine versions, including Auto, as a list of EngineVersion objects.
13
+
14
+ 1.34.0 (2021-02-02)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.33.0 (2020-09-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.32.0 (2020-09-15)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.31.0 (2020-08-25)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.30.0 (2020-07-02)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.29.0 (2020-06-23)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.28.1 (2020-06-11)
45
+ ------------------
46
+
47
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
48
+
49
+ 1.28.0 (2020-06-10)
50
+ ------------------
51
+
52
+ * Issue - This version has been yanked. (#2327).
53
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
54
+
55
+ 1.27.0 (2020-06-01)
56
+ ------------------
57
+
58
+ * Feature - This release adds support for connecting Athena to your own Apache Hive Metastores in addition to the AWS Glue Data Catalog. For more information, please see https://docs.aws.amazon.com/athena/latest/ug/connect-to-data-source-hive.html
59
+
60
+ 1.26.0 (2020-05-28)
61
+ ------------------
62
+
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.25.0 (2020-05-07)
66
+ ------------------
67
+
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.24.0 (2020-03-24)
71
+ ------------------
72
+
73
+ * Feature - Documentation updates for Athena, including QueryExecutionStatus QUEUED and RUNNING states. QUEUED now indicates that the query has been submitted to the service. RUNNING indicates that the query is in execution phase.
74
+
75
+ 1.23.0 (2020-03-09)
76
+ ------------------
77
+
78
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
79
+
80
+ 1.22.0 (2019-11-25)
81
+ ------------------
82
+
83
+ * Feature - This release adds additional query lifecycle metrics to the QueryExecutionStatistics object in GetQueryExecution response.
84
+
85
+ 1.21.0 (2019-10-23)
86
+ ------------------
87
+
88
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
89
+
90
+ 1.20.0 (2019-09-17)
91
+ ------------------
92
+
93
+ * Feature - This release adds DataManifestLocation field indicating the location and file name of the data manifest file. Users can get a list of files that the Athena query wrote or intended to write from the manifest file.
94
+
95
+ 1.19.0 (2019-08-15)
96
+ ------------------
97
+
98
+ * Feature - This release adds support for querying S3 Requester Pays buckets. Users can enable this feature through their Workgroup settings.
99
+
100
+ 1.18.0 (2019-07-25)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.17.0 (2019-07-01)
106
+ ------------------
107
+
108
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
109
+
110
+ 1.16.0 (2019-06-17)
111
+ ------------------
112
+
113
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
114
+
115
+ 1.15.0 (2019-05-21)
116
+ ------------------
117
+
118
+ * Feature - API update.
119
+
120
+ 1.14.0 (2019-05-15)
121
+ ------------------
122
+
123
+ * Feature - API update.
124
+
125
+ 1.13.0 (2019-05-14)
126
+ ------------------
127
+
128
+ * Feature - API update.
129
+
130
+ 1.12.0 (2019-03-21)
131
+ ------------------
132
+
133
+ * Feature - API update.
134
+
135
+ 1.11.0 (2019-03-18)
136
+ ------------------
137
+
138
+ * Feature - API update.
139
+
140
+ 1.10.0 (2019-03-14)
141
+ ------------------
142
+
143
+ * Feature - API update.
144
+
145
+ 1.9.0 (2019-02-22)
146
+ ------------------
147
+
148
+ * Feature - API update.
149
+
150
+ 1.8.0 (2019-02-18)
151
+ ------------------
152
+
153
+ * Feature - API update.
154
+
155
+ 1.7.0 (2018-11-20)
156
+ ------------------
157
+
158
+ * Feature - API update.
159
+
160
+ 1.6.0 (2018-10-24)
161
+ ------------------
162
+
163
+ * Feature - API update.
164
+
165
+ 1.5.0 (2018-10-23)
166
+ ------------------
167
+
168
+ * Feature - API update.
169
+
170
+ 1.4.0 (2018-10-11)
171
+ ------------------
172
+
173
+ * Feature - API update.
174
+
175
+ 1.3.0 (2018-09-06)
176
+ ------------------
177
+
178
+ * Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
179
+
180
+ 1.2.0 (2018-09-05)
181
+ ------------------
182
+
183
+ * Feature - API update.
184
+
185
+ 1.1.0 (2018-06-26)
186
+ ------------------
187
+
188
+ * Feature - API update.
189
+
190
+ 1.0.1 (2018-02-16)
191
+ ------------------
192
+
193
+ * Issue - Update `aws-sdk-athena` gemspec metadata.
194
+
195
+ 1.0.0 (2017-08-29)
196
+ ------------------
197
+
198
+ 1.0.0.rc7 (2017-08-15)
199
+ ------------------
200
+
201
+ * Feature - API update.
202
+
203
+ 1.0.0.rc6 (2017-08-01)
204
+ ------------------
205
+
206
+ * Feature - API update.
207
+
208
+ 1.0.0.rc5 (2017-07-25)
209
+ ------------------
210
+
211
+ * Feature - API update.
212
+
213
+ 1.0.0.rc4 (2017-07-13)
214
+ ------------------
215
+
216
+ * Feature - API update.
217
+
218
+ 1.0.0.rc3 (2017-07-06)
219
+ ------------------
220
+
221
+ * Feature - API update.
222
+
223
+ 1.0.0.rc2 (2017-06-29)
224
+ ------------------
225
+
226
+ * Feature - API update.
227
+
228
+ 1.0.0.rc1 (2017-05-23)
229
+ ------------------
230
+
231
+ * Feature - Initial release of `aws-sdk-athena`.
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.36.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-athena/customizations'
48
48
  # @!group service
49
49
  module Aws::Athena
50
50
 
51
- GEM_VERSION = '1.35.0'
51
+ GEM_VERSION = '1.36.0'
52
52
 
53
53
  end
@@ -595,6 +595,40 @@ module Aws::Athena
595
595
  req.send_request(options)
596
596
  end
597
597
 
598
+ # Creates a prepared statement for use with SQL queries in Athena.
599
+ #
600
+ # @option params [required, String] :statement_name
601
+ # The name of the prepared statement.
602
+ #
603
+ # @option params [required, String] :work_group
604
+ # The name of the workgroup to which the prepared statement belongs.
605
+ #
606
+ # @option params [required, String] :query_statement
607
+ # The query string for the prepared statement.
608
+ #
609
+ # @option params [String] :description
610
+ # The description of the prepared statement.
611
+ #
612
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
613
+ #
614
+ # @example Request syntax with placeholder values
615
+ #
616
+ # resp = client.create_prepared_statement({
617
+ # statement_name: "StatementName", # required
618
+ # work_group: "WorkGroupName", # required
619
+ # query_statement: "QueryString", # required
620
+ # description: "DescriptionString",
621
+ # })
622
+ #
623
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatement AWS API Documentation
624
+ #
625
+ # @overload create_prepared_statement(params = {})
626
+ # @param [Hash] params ({})
627
+ def create_prepared_statement(params = {}, options = {})
628
+ req = build_request(:create_prepared_statement, params)
629
+ req.send_request(options)
630
+ end
631
+
598
632
  # Creates a workgroup with the specified name.
599
633
  #
600
634
  # @option params [required, String] :name
@@ -714,6 +748,33 @@ module Aws::Athena
714
748
  req.send_request(options)
715
749
  end
716
750
 
751
+ # Deletes the prepared statement with the specified name from the
752
+ # specified workgroup.
753
+ #
754
+ # @option params [required, String] :statement_name
755
+ # The name of the prepared statement to delete.
756
+ #
757
+ # @option params [required, String] :work_group
758
+ # The workgroup to which the statement to be deleted belongs.
759
+ #
760
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
761
+ #
762
+ # @example Request syntax with placeholder values
763
+ #
764
+ # resp = client.delete_prepared_statement({
765
+ # statement_name: "StatementName", # required
766
+ # work_group: "WorkGroupName", # required
767
+ # })
768
+ #
769
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatement AWS API Documentation
770
+ #
771
+ # @overload delete_prepared_statement(params = {})
772
+ # @param [Hash] params ({})
773
+ def delete_prepared_statement(params = {}, options = {})
774
+ req = build_request(:delete_prepared_statement, params)
775
+ req.send_request(options)
776
+ end
777
+
717
778
  # Deletes the workgroup with the specified name. The primary workgroup
718
779
  # cannot be deleted.
719
780
  #
@@ -843,6 +904,43 @@ module Aws::Athena
843
904
  req.send_request(options)
844
905
  end
845
906
 
907
+ # Retrieves the prepared statement with the specified name from the
908
+ # specified workgroup.
909
+ #
910
+ # @option params [required, String] :statement_name
911
+ # The name of the prepared statement to retrieve.
912
+ #
913
+ # @option params [required, String] :work_group
914
+ # The workgroup to which the statement to be retrieved belongs.
915
+ #
916
+ # @return [Types::GetPreparedStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
917
+ #
918
+ # * {Types::GetPreparedStatementOutput#prepared_statement #prepared_statement} => Types::PreparedStatement
919
+ #
920
+ # @example Request syntax with placeholder values
921
+ #
922
+ # resp = client.get_prepared_statement({
923
+ # statement_name: "StatementName", # required
924
+ # work_group: "WorkGroupName", # required
925
+ # })
926
+ #
927
+ # @example Response structure
928
+ #
929
+ # resp.prepared_statement.statement_name #=> String
930
+ # resp.prepared_statement.query_statement #=> String
931
+ # resp.prepared_statement.work_group_name #=> String
932
+ # resp.prepared_statement.description #=> String
933
+ # resp.prepared_statement.last_modified_time #=> Time
934
+ #
935
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatement AWS API Documentation
936
+ #
937
+ # @overload get_prepared_statement(params = {})
938
+ # @param [Hash] params ({})
939
+ def get_prepared_statement(params = {}, options = {})
940
+ req = build_request(:get_prepared_statement, params)
941
+ req.send_request(options)
942
+ end
943
+
846
944
  # Returns information about a single execution of a query if you have
847
945
  # access to the workgroup in which the query ran. Each time a query
848
946
  # executes, information about the query execution is saved with a unique
@@ -1245,6 +1343,51 @@ module Aws::Athena
1245
1343
  req.send_request(options)
1246
1344
  end
1247
1345
 
1346
+ # Lists the prepared statements in the specfied workgroup.
1347
+ #
1348
+ # @option params [required, String] :work_group
1349
+ # The workgroup to list the prepared statements for.
1350
+ #
1351
+ # @option params [String] :next_token
1352
+ # A token generated by the Athena service that specifies where to
1353
+ # continue pagination if a previous request was truncated. To obtain the
1354
+ # next set of pages, pass in the `NextToken` from the response object of
1355
+ # the previous page call.
1356
+ #
1357
+ # @option params [Integer] :max_results
1358
+ # The maximum number of results to return in this request.
1359
+ #
1360
+ # @return [Types::ListPreparedStatementsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1361
+ #
1362
+ # * {Types::ListPreparedStatementsOutput#prepared_statements #prepared_statements} => Array<Types::PreparedStatementSummary>
1363
+ # * {Types::ListPreparedStatementsOutput#next_token #next_token} => String
1364
+ #
1365
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1366
+ #
1367
+ # @example Request syntax with placeholder values
1368
+ #
1369
+ # resp = client.list_prepared_statements({
1370
+ # work_group: "WorkGroupName", # required
1371
+ # next_token: "Token",
1372
+ # max_results: 1,
1373
+ # })
1374
+ #
1375
+ # @example Response structure
1376
+ #
1377
+ # resp.prepared_statements #=> Array
1378
+ # resp.prepared_statements[0].statement_name #=> String
1379
+ # resp.prepared_statements[0].last_modified_time #=> Time
1380
+ # resp.next_token #=> String
1381
+ #
1382
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatements AWS API Documentation
1383
+ #
1384
+ # @overload list_prepared_statements(params = {})
1385
+ # @param [Hash] params ({})
1386
+ def list_prepared_statements(params = {}, options = {})
1387
+ req = build_request(:list_prepared_statements, params)
1388
+ req.send_request(options)
1389
+ end
1390
+
1248
1391
  # Provides a list of available query execution IDs for the queries in
1249
1392
  # the specified workgroup. If a workgroup is not specified, returns a
1250
1393
  # list of query execution IDs for the primary workgroup. Requires you to
@@ -1717,6 +1860,40 @@ module Aws::Athena
1717
1860
  req.send_request(options)
1718
1861
  end
1719
1862
 
1863
+ # Updates a prepared statement.
1864
+ #
1865
+ # @option params [required, String] :statement_name
1866
+ # The name of the prepared statement.
1867
+ #
1868
+ # @option params [required, String] :work_group
1869
+ # The workgroup for the prepared statement.
1870
+ #
1871
+ # @option params [required, String] :query_statement
1872
+ # The query string for the prepared statement.
1873
+ #
1874
+ # @option params [String] :description
1875
+ # The description of the prepared statement.
1876
+ #
1877
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1878
+ #
1879
+ # @example Request syntax with placeholder values
1880
+ #
1881
+ # resp = client.update_prepared_statement({
1882
+ # statement_name: "StatementName", # required
1883
+ # work_group: "WorkGroupName", # required
1884
+ # query_statement: "QueryString", # required
1885
+ # description: "DescriptionString",
1886
+ # })
1887
+ #
1888
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatement AWS API Documentation
1889
+ #
1890
+ # @overload update_prepared_statement(params = {})
1891
+ # @param [Hash] params ({})
1892
+ def update_prepared_statement(params = {}, options = {})
1893
+ req = build_request(:update_prepared_statement, params)
1894
+ req.send_request(options)
1895
+ end
1896
+
1720
1897
  # Updates the workgroup with the specified name. The workgroup's name
1721
1898
  # cannot be changed.
1722
1899
  #
@@ -1785,7 +1962,7 @@ module Aws::Athena
1785
1962
  params: params,
1786
1963
  config: config)
1787
1964
  context[:gem_name] = 'aws-sdk-athena'
1788
- context[:gem_version] = '1.35.0'
1965
+ context[:gem_version] = '1.36.0'
1789
1966
  Seahorse::Client::Request.new(handlers, context)
1790
1967
  end
1791
1968
 
@@ -32,6 +32,8 @@ module Aws::Athena
32
32
  CreateDataCatalogOutput = Shapes::StructureShape.new(name: 'CreateDataCatalogOutput')
33
33
  CreateNamedQueryInput = Shapes::StructureShape.new(name: 'CreateNamedQueryInput')
34
34
  CreateNamedQueryOutput = Shapes::StructureShape.new(name: 'CreateNamedQueryOutput')
35
+ CreatePreparedStatementInput = Shapes::StructureShape.new(name: 'CreatePreparedStatementInput')
36
+ CreatePreparedStatementOutput = Shapes::StructureShape.new(name: 'CreatePreparedStatementOutput')
35
37
  CreateWorkGroupInput = Shapes::StructureShape.new(name: 'CreateWorkGroupInput')
36
38
  CreateWorkGroupOutput = Shapes::StructureShape.new(name: 'CreateWorkGroupOutput')
37
39
  DataCatalog = Shapes::StructureShape.new(name: 'DataCatalog')
@@ -47,6 +49,8 @@ module Aws::Athena
47
49
  DeleteDataCatalogOutput = Shapes::StructureShape.new(name: 'DeleteDataCatalogOutput')
48
50
  DeleteNamedQueryInput = Shapes::StructureShape.new(name: 'DeleteNamedQueryInput')
49
51
  DeleteNamedQueryOutput = Shapes::StructureShape.new(name: 'DeleteNamedQueryOutput')
52
+ DeletePreparedStatementInput = Shapes::StructureShape.new(name: 'DeletePreparedStatementInput')
53
+ DeletePreparedStatementOutput = Shapes::StructureShape.new(name: 'DeletePreparedStatementOutput')
50
54
  DeleteWorkGroupInput = Shapes::StructureShape.new(name: 'DeleteWorkGroupInput')
51
55
  DeleteWorkGroupOutput = Shapes::StructureShape.new(name: 'DeleteWorkGroupOutput')
52
56
  DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
@@ -63,6 +67,8 @@ module Aws::Athena
63
67
  GetDatabaseOutput = Shapes::StructureShape.new(name: 'GetDatabaseOutput')
64
68
  GetNamedQueryInput = Shapes::StructureShape.new(name: 'GetNamedQueryInput')
65
69
  GetNamedQueryOutput = Shapes::StructureShape.new(name: 'GetNamedQueryOutput')
70
+ GetPreparedStatementInput = Shapes::StructureShape.new(name: 'GetPreparedStatementInput')
71
+ GetPreparedStatementOutput = Shapes::StructureShape.new(name: 'GetPreparedStatementOutput')
66
72
  GetQueryExecutionInput = Shapes::StructureShape.new(name: 'GetQueryExecutionInput')
67
73
  GetQueryExecutionOutput = Shapes::StructureShape.new(name: 'GetQueryExecutionOutput')
68
74
  GetQueryResultsInput = Shapes::StructureShape.new(name: 'GetQueryResultsInput')
@@ -84,6 +90,8 @@ module Aws::Athena
84
90
  ListEngineVersionsOutput = Shapes::StructureShape.new(name: 'ListEngineVersionsOutput')
85
91
  ListNamedQueriesInput = Shapes::StructureShape.new(name: 'ListNamedQueriesInput')
86
92
  ListNamedQueriesOutput = Shapes::StructureShape.new(name: 'ListNamedQueriesOutput')
93
+ ListPreparedStatementsInput = Shapes::StructureShape.new(name: 'ListPreparedStatementsInput')
94
+ ListPreparedStatementsOutput = Shapes::StructureShape.new(name: 'ListPreparedStatementsOutput')
87
95
  ListQueryExecutionsInput = Shapes::StructureShape.new(name: 'ListQueryExecutionsInput')
88
96
  ListQueryExecutionsOutput = Shapes::StructureShape.new(name: 'ListQueryExecutionsOutput')
89
97
  ListTableMetadataInput = Shapes::StructureShape.new(name: 'ListTableMetadataInput')
@@ -97,6 +105,7 @@ module Aws::Athena
97
105
  MaxDatabasesCount = Shapes::IntegerShape.new(name: 'MaxDatabasesCount')
98
106
  MaxEngineVersionsCount = Shapes::IntegerShape.new(name: 'MaxEngineVersionsCount')
99
107
  MaxNamedQueriesCount = Shapes::IntegerShape.new(name: 'MaxNamedQueriesCount')
108
+ MaxPreparedStatementsCount = Shapes::IntegerShape.new(name: 'MaxPreparedStatementsCount')
100
109
  MaxQueryExecutionsCount = Shapes::IntegerShape.new(name: 'MaxQueryExecutionsCount')
101
110
  MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
102
111
  MaxTableMetadataCount = Shapes::IntegerShape.new(name: 'MaxTableMetadataCount')
@@ -110,6 +119,9 @@ module Aws::Athena
110
119
  NamedQueryList = Shapes::ListShape.new(name: 'NamedQueryList')
111
120
  ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
112
121
  ParametersMapValue = Shapes::StringShape.new(name: 'ParametersMapValue')
122
+ PreparedStatement = Shapes::StructureShape.new(name: 'PreparedStatement')
123
+ PreparedStatementSummary = Shapes::StructureShape.new(name: 'PreparedStatementSummary')
124
+ PreparedStatementsList = Shapes::ListShape.new(name: 'PreparedStatementsList')
113
125
  QueryExecution = Shapes::StructureShape.new(name: 'QueryExecution')
114
126
  QueryExecutionContext = Shapes::StructureShape.new(name: 'QueryExecutionContext')
115
127
  QueryExecutionId = Shapes::StringShape.new(name: 'QueryExecutionId')
@@ -128,6 +140,7 @@ module Aws::Athena
128
140
  RowList = Shapes::ListShape.new(name: 'RowList')
129
141
  StartQueryExecutionInput = Shapes::StructureShape.new(name: 'StartQueryExecutionInput')
130
142
  StartQueryExecutionOutput = Shapes::StructureShape.new(name: 'StartQueryExecutionOutput')
143
+ StatementName = Shapes::StringShape.new(name: 'StatementName')
131
144
  StatementType = Shapes::StringShape.new(name: 'StatementType')
132
145
  StopQueryExecutionInput = Shapes::StructureShape.new(name: 'StopQueryExecutionInput')
133
146
  StopQueryExecutionOutput = Shapes::StructureShape.new(name: 'StopQueryExecutionOutput')
@@ -155,6 +168,8 @@ module Aws::Athena
155
168
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
156
169
  UpdateDataCatalogInput = Shapes::StructureShape.new(name: 'UpdateDataCatalogInput')
157
170
  UpdateDataCatalogOutput = Shapes::StructureShape.new(name: 'UpdateDataCatalogOutput')
171
+ UpdatePreparedStatementInput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementInput')
172
+ UpdatePreparedStatementOutput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementOutput')
158
173
  UpdateWorkGroupInput = Shapes::StructureShape.new(name: 'UpdateWorkGroupInput')
159
174
  UpdateWorkGroupOutput = Shapes::StructureShape.new(name: 'UpdateWorkGroupOutput')
160
175
  WorkGroup = Shapes::StructureShape.new(name: 'WorkGroup')
@@ -223,6 +238,14 @@ module Aws::Athena
223
238
  CreateNamedQueryOutput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, location_name: "NamedQueryId"))
224
239
  CreateNamedQueryOutput.struct_class = Types::CreateNamedQueryOutput
225
240
 
241
+ CreatePreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
242
+ CreatePreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
243
+ CreatePreparedStatementInput.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryStatement"))
244
+ CreatePreparedStatementInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
245
+ CreatePreparedStatementInput.struct_class = Types::CreatePreparedStatementInput
246
+
247
+ CreatePreparedStatementOutput.struct_class = Types::CreatePreparedStatementOutput
248
+
226
249
  CreateWorkGroupInput.add_member(:name, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "Name"))
227
250
  CreateWorkGroupInput.add_member(:configuration, Shapes::ShapeRef.new(shape: WorkGroupConfiguration, location_name: "Configuration"))
228
251
  CreateWorkGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
@@ -263,6 +286,12 @@ module Aws::Athena
263
286
 
264
287
  DeleteNamedQueryOutput.struct_class = Types::DeleteNamedQueryOutput
265
288
 
289
+ DeletePreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
290
+ DeletePreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
291
+ DeletePreparedStatementInput.struct_class = Types::DeletePreparedStatementInput
292
+
293
+ DeletePreparedStatementOutput.struct_class = Types::DeletePreparedStatementOutput
294
+
266
295
  DeleteWorkGroupInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
267
296
  DeleteWorkGroupInput.add_member(:recursive_delete_option, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RecursiveDeleteOption"))
268
297
  DeleteWorkGroupInput.struct_class = Types::DeleteWorkGroupInput
@@ -298,6 +327,13 @@ module Aws::Athena
298
327
  GetNamedQueryOutput.add_member(:named_query, Shapes::ShapeRef.new(shape: NamedQuery, location_name: "NamedQuery"))
299
328
  GetNamedQueryOutput.struct_class = Types::GetNamedQueryOutput
300
329
 
330
+ GetPreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
331
+ GetPreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
332
+ GetPreparedStatementInput.struct_class = Types::GetPreparedStatementInput
333
+
334
+ GetPreparedStatementOutput.add_member(:prepared_statement, Shapes::ShapeRef.new(shape: PreparedStatement, location_name: "PreparedStatement"))
335
+ GetPreparedStatementOutput.struct_class = Types::GetPreparedStatementOutput
336
+
301
337
  GetQueryExecutionInput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, required: true, location_name: "QueryExecutionId"))
302
338
  GetQueryExecutionInput.struct_class = Types::GetQueryExecutionInput
303
339
 
@@ -369,6 +405,15 @@ module Aws::Athena
369
405
  ListNamedQueriesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
370
406
  ListNamedQueriesOutput.struct_class = Types::ListNamedQueriesOutput
371
407
 
408
+ ListPreparedStatementsInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
409
+ ListPreparedStatementsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
410
+ ListPreparedStatementsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxPreparedStatementsCount, location_name: "MaxResults"))
411
+ ListPreparedStatementsInput.struct_class = Types::ListPreparedStatementsInput
412
+
413
+ ListPreparedStatementsOutput.add_member(:prepared_statements, Shapes::ShapeRef.new(shape: PreparedStatementsList, location_name: "PreparedStatements"))
414
+ ListPreparedStatementsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
415
+ ListPreparedStatementsOutput.struct_class = Types::ListPreparedStatementsOutput
416
+
372
417
  ListQueryExecutionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
373
418
  ListQueryExecutionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxQueryExecutionsCount, location_name: "MaxResults"))
374
419
  ListQueryExecutionsInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
@@ -424,6 +469,19 @@ module Aws::Athena
424
469
  ParametersMap.key = Shapes::ShapeRef.new(shape: KeyString)
425
470
  ParametersMap.value = Shapes::ShapeRef.new(shape: ParametersMapValue)
426
471
 
472
+ PreparedStatement.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
473
+ PreparedStatement.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryString, location_name: "QueryStatement"))
474
+ PreparedStatement.add_member(:work_group_name, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroupName"))
475
+ PreparedStatement.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
476
+ PreparedStatement.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedTime"))
477
+ PreparedStatement.struct_class = Types::PreparedStatement
478
+
479
+ PreparedStatementSummary.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
480
+ PreparedStatementSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedTime"))
481
+ PreparedStatementSummary.struct_class = Types::PreparedStatementSummary
482
+
483
+ PreparedStatementsList.member = Shapes::ShapeRef.new(shape: PreparedStatementSummary)
484
+
427
485
  QueryExecution.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
428
486
  QueryExecution.add_member(:query, Shapes::ShapeRef.new(shape: QueryString, location_name: "Query"))
429
487
  QueryExecution.add_member(:statement_type, Shapes::ShapeRef.new(shape: StatementType, location_name: "StatementType"))
@@ -556,6 +614,14 @@ module Aws::Athena
556
614
 
557
615
  UpdateDataCatalogOutput.struct_class = Types::UpdateDataCatalogOutput
558
616
 
617
+ UpdatePreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
618
+ UpdatePreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
619
+ UpdatePreparedStatementInput.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryStatement"))
620
+ UpdatePreparedStatementInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
621
+ UpdatePreparedStatementInput.struct_class = Types::UpdatePreparedStatementInput
622
+
623
+ UpdatePreparedStatementOutput.struct_class = Types::UpdatePreparedStatementOutput
624
+
559
625
  UpdateWorkGroupInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
560
626
  UpdateWorkGroupInput.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
561
627
  UpdateWorkGroupInput.add_member(:configuration_updates, Shapes::ShapeRef.new(shape: WorkGroupConfigurationUpdates, location_name: "ConfigurationUpdates"))
@@ -657,6 +723,16 @@ module Aws::Athena
657
723
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
658
724
  end)
659
725
 
726
+ api.add_operation(:create_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
727
+ o.name = "CreatePreparedStatement"
728
+ o.http_method = "POST"
729
+ o.http_request_uri = "/"
730
+ o.input = Shapes::ShapeRef.new(shape: CreatePreparedStatementInput)
731
+ o.output = Shapes::ShapeRef.new(shape: CreatePreparedStatementOutput)
732
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
733
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
734
+ end)
735
+
660
736
  api.add_operation(:create_work_group, Seahorse::Model::Operation.new.tap do |o|
661
737
  o.name = "CreateWorkGroup"
662
738
  o.http_method = "POST"
@@ -687,6 +763,17 @@ module Aws::Athena
687
763
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
688
764
  end)
689
765
 
766
+ api.add_operation(:delete_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
767
+ o.name = "DeletePreparedStatement"
768
+ o.http_method = "POST"
769
+ o.http_request_uri = "/"
770
+ o.input = Shapes::ShapeRef.new(shape: DeletePreparedStatementInput)
771
+ o.output = Shapes::ShapeRef.new(shape: DeletePreparedStatementOutput)
772
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
773
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
774
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
775
+ end)
776
+
690
777
  api.add_operation(:delete_work_group, Seahorse::Model::Operation.new.tap do |o|
691
778
  o.name = "DeleteWorkGroup"
692
779
  o.http_method = "POST"
@@ -728,6 +815,17 @@ module Aws::Athena
728
815
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
729
816
  end)
730
817
 
818
+ api.add_operation(:get_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
819
+ o.name = "GetPreparedStatement"
820
+ o.http_method = "POST"
821
+ o.http_request_uri = "/"
822
+ o.input = Shapes::ShapeRef.new(shape: GetPreparedStatementInput)
823
+ o.output = Shapes::ShapeRef.new(shape: GetPreparedStatementOutput)
824
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
825
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
826
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
827
+ end)
828
+
731
829
  api.add_operation(:get_query_execution, Seahorse::Model::Operation.new.tap do |o|
732
830
  o.name = "GetQueryExecution"
733
831
  o.http_method = "POST"
@@ -834,6 +932,22 @@ module Aws::Athena
834
932
  )
835
933
  end)
836
934
 
935
+ api.add_operation(:list_prepared_statements, Seahorse::Model::Operation.new.tap do |o|
936
+ o.name = "ListPreparedStatements"
937
+ o.http_method = "POST"
938
+ o.http_request_uri = "/"
939
+ o.input = Shapes::ShapeRef.new(shape: ListPreparedStatementsInput)
940
+ o.output = Shapes::ShapeRef.new(shape: ListPreparedStatementsOutput)
941
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
942
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
943
+ o[:pager] = Aws::Pager.new(
944
+ limit_key: "max_results",
945
+ tokens: {
946
+ "next_token" => "next_token"
947
+ }
948
+ )
949
+ end)
950
+
837
951
  api.add_operation(:list_query_executions, Seahorse::Model::Operation.new.tap do |o|
838
952
  o.name = "ListQueryExecutions"
839
953
  o.http_method = "POST"
@@ -953,6 +1067,17 @@ module Aws::Athena
953
1067
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
954
1068
  end)
955
1069
 
1070
+ api.add_operation(:update_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
1071
+ o.name = "UpdatePreparedStatement"
1072
+ o.http_method = "POST"
1073
+ o.http_request_uri = "/"
1074
+ o.input = Shapes::ShapeRef.new(shape: UpdatePreparedStatementInput)
1075
+ o.output = Shapes::ShapeRef.new(shape: UpdatePreparedStatementOutput)
1076
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1077
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1078
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1079
+ end)
1080
+
956
1081
  api.add_operation(:update_work_group, Seahorse::Model::Operation.new.tap do |o|
957
1082
  o.name = "UpdateWorkGroup"
958
1083
  o.http_method = "POST"
@@ -328,6 +328,47 @@ module Aws::Athena
328
328
  include Aws::Structure
329
329
  end
330
330
 
331
+ # @note When making an API call, you may pass CreatePreparedStatementInput
332
+ # data as a hash:
333
+ #
334
+ # {
335
+ # statement_name: "StatementName", # required
336
+ # work_group: "WorkGroupName", # required
337
+ # query_statement: "QueryString", # required
338
+ # description: "DescriptionString",
339
+ # }
340
+ #
341
+ # @!attribute [rw] statement_name
342
+ # The name of the prepared statement.
343
+ # @return [String]
344
+ #
345
+ # @!attribute [rw] work_group
346
+ # The name of the workgroup to which the prepared statement belongs.
347
+ # @return [String]
348
+ #
349
+ # @!attribute [rw] query_statement
350
+ # The query string for the prepared statement.
351
+ # @return [String]
352
+ #
353
+ # @!attribute [rw] description
354
+ # The description of the prepared statement.
355
+ # @return [String]
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatementInput AWS API Documentation
358
+ #
359
+ class CreatePreparedStatementInput < Struct.new(
360
+ :statement_name,
361
+ :work_group,
362
+ :query_statement,
363
+ :description)
364
+ SENSITIVE = []
365
+ include Aws::Structure
366
+ end
367
+
368
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatementOutput AWS API Documentation
369
+ #
370
+ class CreatePreparedStatementOutput < Aws::EmptyStructure; end
371
+
331
372
  # @note When making an API call, you may pass CreateWorkGroupInput
332
373
  # data as a hash:
333
374
  #
@@ -563,6 +604,35 @@ module Aws::Athena
563
604
  #
564
605
  class DeleteNamedQueryOutput < Aws::EmptyStructure; end
565
606
 
607
+ # @note When making an API call, you may pass DeletePreparedStatementInput
608
+ # data as a hash:
609
+ #
610
+ # {
611
+ # statement_name: "StatementName", # required
612
+ # work_group: "WorkGroupName", # required
613
+ # }
614
+ #
615
+ # @!attribute [rw] statement_name
616
+ # The name of the prepared statement to delete.
617
+ # @return [String]
618
+ #
619
+ # @!attribute [rw] work_group
620
+ # The workgroup to which the statement to be deleted belongs.
621
+ # @return [String]
622
+ #
623
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatementInput AWS API Documentation
624
+ #
625
+ class DeletePreparedStatementInput < Struct.new(
626
+ :statement_name,
627
+ :work_group)
628
+ SENSITIVE = []
629
+ include Aws::Structure
630
+ end
631
+
632
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatementOutput AWS API Documentation
633
+ #
634
+ class DeletePreparedStatementOutput < Aws::EmptyStructure; end
635
+
566
636
  # @note When making an API call, you may pass DeleteWorkGroupInput
567
637
  # data as a hash:
568
638
  #
@@ -763,6 +833,43 @@ module Aws::Athena
763
833
  include Aws::Structure
764
834
  end
765
835
 
836
+ # @note When making an API call, you may pass GetPreparedStatementInput
837
+ # data as a hash:
838
+ #
839
+ # {
840
+ # statement_name: "StatementName", # required
841
+ # work_group: "WorkGroupName", # required
842
+ # }
843
+ #
844
+ # @!attribute [rw] statement_name
845
+ # The name of the prepared statement to retrieve.
846
+ # @return [String]
847
+ #
848
+ # @!attribute [rw] work_group
849
+ # The workgroup to which the statement to be retrieved belongs.
850
+ # @return [String]
851
+ #
852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatementInput AWS API Documentation
853
+ #
854
+ class GetPreparedStatementInput < Struct.new(
855
+ :statement_name,
856
+ :work_group)
857
+ SENSITIVE = []
858
+ include Aws::Structure
859
+ end
860
+
861
+ # @!attribute [rw] prepared_statement
862
+ # The name of the prepared statement that was retrieved.
863
+ # @return [Types::PreparedStatement]
864
+ #
865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatementOutput AWS API Documentation
866
+ #
867
+ class GetPreparedStatementOutput < Struct.new(
868
+ :prepared_statement)
869
+ SENSITIVE = []
870
+ include Aws::Structure
871
+ end
872
+
766
873
  # @note When making an API call, you may pass GetQueryExecutionInput
767
874
  # data as a hash:
768
875
  #
@@ -1168,6 +1275,60 @@ module Aws::Athena
1168
1275
  include Aws::Structure
1169
1276
  end
1170
1277
 
1278
+ # @note When making an API call, you may pass ListPreparedStatementsInput
1279
+ # data as a hash:
1280
+ #
1281
+ # {
1282
+ # work_group: "WorkGroupName", # required
1283
+ # next_token: "Token",
1284
+ # max_results: 1,
1285
+ # }
1286
+ #
1287
+ # @!attribute [rw] work_group
1288
+ # The workgroup to list the prepared statements for.
1289
+ # @return [String]
1290
+ #
1291
+ # @!attribute [rw] next_token
1292
+ # A token generated by the Athena service that specifies where to
1293
+ # continue pagination if a previous request was truncated. To obtain
1294
+ # the next set of pages, pass in the `NextToken` from the response
1295
+ # object of the previous page call.
1296
+ # @return [String]
1297
+ #
1298
+ # @!attribute [rw] max_results
1299
+ # The maximum number of results to return in this request.
1300
+ # @return [Integer]
1301
+ #
1302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatementsInput AWS API Documentation
1303
+ #
1304
+ class ListPreparedStatementsInput < Struct.new(
1305
+ :work_group,
1306
+ :next_token,
1307
+ :max_results)
1308
+ SENSITIVE = []
1309
+ include Aws::Structure
1310
+ end
1311
+
1312
+ # @!attribute [rw] prepared_statements
1313
+ # The list of prepared statements for the workgroup.
1314
+ # @return [Array<Types::PreparedStatementSummary>]
1315
+ #
1316
+ # @!attribute [rw] next_token
1317
+ # A token generated by the Athena service that specifies where to
1318
+ # continue pagination if a previous request was truncated. To obtain
1319
+ # the next set of pages, pass in the `NextToken` from the response
1320
+ # object of the previous page call.
1321
+ # @return [String]
1322
+ #
1323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatementsOutput AWS API Documentation
1324
+ #
1325
+ class ListPreparedStatementsOutput < Struct.new(
1326
+ :prepared_statements,
1327
+ :next_token)
1328
+ SENSITIVE = []
1329
+ include Aws::Structure
1330
+ end
1331
+
1171
1332
  # @note When making an API call, you may pass ListQueryExecutionsInput
1172
1333
  # data as a hash:
1173
1334
  #
@@ -1448,6 +1609,59 @@ module Aws::Athena
1448
1609
  include Aws::Structure
1449
1610
  end
1450
1611
 
1612
+ # A prepared SQL statement for use with Athena.
1613
+ #
1614
+ # @!attribute [rw] statement_name
1615
+ # The name of the prepared statement.
1616
+ # @return [String]
1617
+ #
1618
+ # @!attribute [rw] query_statement
1619
+ # The query string for the prepared statement.
1620
+ # @return [String]
1621
+ #
1622
+ # @!attribute [rw] work_group_name
1623
+ # The name of the workgroup to which the prepared statement belongs.
1624
+ # @return [String]
1625
+ #
1626
+ # @!attribute [rw] description
1627
+ # The description of the prepared statement.
1628
+ # @return [String]
1629
+ #
1630
+ # @!attribute [rw] last_modified_time
1631
+ # The last modified time of the prepared statement.
1632
+ # @return [Time]
1633
+ #
1634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PreparedStatement AWS API Documentation
1635
+ #
1636
+ class PreparedStatement < Struct.new(
1637
+ :statement_name,
1638
+ :query_statement,
1639
+ :work_group_name,
1640
+ :description,
1641
+ :last_modified_time)
1642
+ SENSITIVE = []
1643
+ include Aws::Structure
1644
+ end
1645
+
1646
+ # The name and last modified time of the prepared statement.
1647
+ #
1648
+ # @!attribute [rw] statement_name
1649
+ # The name of the prepared statement.
1650
+ # @return [String]
1651
+ #
1652
+ # @!attribute [rw] last_modified_time
1653
+ # The last modified time of the prepared statement.
1654
+ # @return [Time]
1655
+ #
1656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PreparedStatementSummary AWS API Documentation
1657
+ #
1658
+ class PreparedStatementSummary < Struct.new(
1659
+ :statement_name,
1660
+ :last_modified_time)
1661
+ SENSITIVE = []
1662
+ include Aws::Structure
1663
+ end
1664
+
1451
1665
  # Information about a single instance of a query execution.
1452
1666
  #
1453
1667
  # @!attribute [rw] query_execution_id
@@ -2265,6 +2479,47 @@ module Aws::Athena
2265
2479
  #
2266
2480
  class UpdateDataCatalogOutput < Aws::EmptyStructure; end
2267
2481
 
2482
+ # @note When making an API call, you may pass UpdatePreparedStatementInput
2483
+ # data as a hash:
2484
+ #
2485
+ # {
2486
+ # statement_name: "StatementName", # required
2487
+ # work_group: "WorkGroupName", # required
2488
+ # query_statement: "QueryString", # required
2489
+ # description: "DescriptionString",
2490
+ # }
2491
+ #
2492
+ # @!attribute [rw] statement_name
2493
+ # The name of the prepared statement.
2494
+ # @return [String]
2495
+ #
2496
+ # @!attribute [rw] work_group
2497
+ # The workgroup for the prepared statement.
2498
+ # @return [String]
2499
+ #
2500
+ # @!attribute [rw] query_statement
2501
+ # The query string for the prepared statement.
2502
+ # @return [String]
2503
+ #
2504
+ # @!attribute [rw] description
2505
+ # The description of the prepared statement.
2506
+ # @return [String]
2507
+ #
2508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatementInput AWS API Documentation
2509
+ #
2510
+ class UpdatePreparedStatementInput < Struct.new(
2511
+ :statement_name,
2512
+ :work_group,
2513
+ :query_statement,
2514
+ :description)
2515
+ SENSITIVE = []
2516
+ include Aws::Structure
2517
+ end
2518
+
2519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatementOutput AWS API Documentation
2520
+ #
2521
+ class UpdatePreparedStatementOutput < Aws::EmptyStructure; end
2522
+
2268
2523
  # @note When making an API call, you may pass UpdateWorkGroupInput
2269
2524
  # data as a hash:
2270
2525
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-athena
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
4
+ version: 1.36.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-02-04 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for Amazon Athena. This gem is part of the AWS
48
48
  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-athena.rb
56
59
  - lib/aws-sdk-athena/client.rb
57
60
  - lib/aws-sdk-athena/client_api.rb