aws-sdk-athena 1.51.0 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +76 -2
- data/lib/aws-sdk-athena/client_api.rb +51 -0
- data/lib/aws-sdk-athena/types.rb +216 -11
- data/lib/aws-sdk-athena.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cee70bdcc6ab700eeb11158edbc2bb745af148eea586294ba4142df7bb47204d
|
4
|
+
data.tar.gz: 280a727beec9639123a521f021f374b7ad6ab410ab3a6fefd70d3596a66dcf61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db41ec6386f593a687cca832efbf2e66ecf9bd5a0f159a8dc5e516a4d6162d6094b1036afefd3b6ff4956ee9e45d25667ed22f21427bf0863c9290f86a550ff6
|
7
|
+
data.tar.gz: 28bcdfbc159efb09fbbe90559d887295e490d869775c259f9e1d4537f61454f23708a94274fb107876644e1c3cee417f7a31309b569d48ab13cfd2adba65f617
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.54.0 (2022-06-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This feature introduces the API support for Athena's parameterized query and BatchGetPreparedStatement API.
|
8
|
+
|
9
|
+
1.53.0 (2022-04-15)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds subfields, ErrorMessage, Retryable, to the AthenaError response object in the GetQueryExecution API when a query fails.
|
13
|
+
|
14
|
+
1.52.0 (2022-03-02)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release adds support for S3 Object Ownership by allowing the S3 bucket owner full control canned ACL to be set when Athena writes query results to S3 buckets.
|
18
|
+
|
4
19
|
1.51.0 (2022-02-28)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.54.0
|
@@ -409,6 +409,53 @@ module Aws::Athena
|
|
409
409
|
req.send_request(options)
|
410
410
|
end
|
411
411
|
|
412
|
+
# Returns the details of a single prepared statement or a list of up to
|
413
|
+
# 256 prepared statements for the array of prepared statement names that
|
414
|
+
# you provide. Requires you to have access to the workgroup to which the
|
415
|
+
# prepared statements belong. If a prepared statement cannot be
|
416
|
+
# retrieved for the name specified, the statement is listed in
|
417
|
+
# `UnprocessedPreparedStatementNames`.
|
418
|
+
#
|
419
|
+
# @option params [required, Array<String>] :prepared_statement_names
|
420
|
+
# A list of prepared statement names to return.
|
421
|
+
#
|
422
|
+
# @option params [required, String] :work_group
|
423
|
+
# The name of the workgroup to which the prepared statements belong.
|
424
|
+
#
|
425
|
+
# @return [Types::BatchGetPreparedStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
426
|
+
#
|
427
|
+
# * {Types::BatchGetPreparedStatementOutput#prepared_statements #prepared_statements} => Array<Types::PreparedStatement>
|
428
|
+
# * {Types::BatchGetPreparedStatementOutput#unprocessed_prepared_statement_names #unprocessed_prepared_statement_names} => Array<Types::UnprocessedPreparedStatementName>
|
429
|
+
#
|
430
|
+
# @example Request syntax with placeholder values
|
431
|
+
#
|
432
|
+
# resp = client.batch_get_prepared_statement({
|
433
|
+
# prepared_statement_names: ["StatementName"], # required
|
434
|
+
# work_group: "WorkGroupName", # required
|
435
|
+
# })
|
436
|
+
#
|
437
|
+
# @example Response structure
|
438
|
+
#
|
439
|
+
# resp.prepared_statements #=> Array
|
440
|
+
# resp.prepared_statements[0].statement_name #=> String
|
441
|
+
# resp.prepared_statements[0].query_statement #=> String
|
442
|
+
# resp.prepared_statements[0].work_group_name #=> String
|
443
|
+
# resp.prepared_statements[0].description #=> String
|
444
|
+
# resp.prepared_statements[0].last_modified_time #=> Time
|
445
|
+
# resp.unprocessed_prepared_statement_names #=> Array
|
446
|
+
# resp.unprocessed_prepared_statement_names[0].statement_name #=> String
|
447
|
+
# resp.unprocessed_prepared_statement_names[0].error_code #=> String
|
448
|
+
# resp.unprocessed_prepared_statement_names[0].error_message #=> String
|
449
|
+
#
|
450
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement AWS API Documentation
|
451
|
+
#
|
452
|
+
# @overload batch_get_prepared_statement(params = {})
|
453
|
+
# @param [Hash] params ({})
|
454
|
+
def batch_get_prepared_statement(params = {}, options = {})
|
455
|
+
req = build_request(:batch_get_prepared_statement, params)
|
456
|
+
req.send_request(options)
|
457
|
+
end
|
458
|
+
|
412
459
|
# Returns the details of a single query execution or a list of up to 50
|
413
460
|
# query executions, which you provide as an array of query execution ID
|
414
461
|
# strings. Requires you to have access to the workgroup in which the
|
@@ -441,6 +488,7 @@ module Aws::Athena
|
|
441
488
|
# resp.query_executions[0].result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
442
489
|
# resp.query_executions[0].result_configuration.encryption_configuration.kms_key #=> String
|
443
490
|
# resp.query_executions[0].result_configuration.expected_bucket_owner #=> String
|
491
|
+
# resp.query_executions[0].result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
444
492
|
# resp.query_executions[0].query_execution_context.database #=> String
|
445
493
|
# resp.query_executions[0].query_execution_context.catalog #=> String
|
446
494
|
# resp.query_executions[0].status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
@@ -449,6 +497,8 @@ module Aws::Athena
|
|
449
497
|
# resp.query_executions[0].status.completion_date_time #=> Time
|
450
498
|
# resp.query_executions[0].status.athena_error.error_category #=> Integer
|
451
499
|
# resp.query_executions[0].status.athena_error.error_type #=> Integer
|
500
|
+
# resp.query_executions[0].status.athena_error.retryable #=> Boolean
|
501
|
+
# resp.query_executions[0].status.athena_error.error_message #=> String
|
452
502
|
# resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
|
453
503
|
# resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
|
454
504
|
# resp.query_executions[0].statistics.data_manifest_location #=> String
|
@@ -459,6 +509,8 @@ module Aws::Athena
|
|
459
509
|
# resp.query_executions[0].work_group #=> String
|
460
510
|
# resp.query_executions[0].engine_version.selected_engine_version #=> String
|
461
511
|
# resp.query_executions[0].engine_version.effective_engine_version #=> String
|
512
|
+
# resp.query_executions[0].execution_parameters #=> Array
|
513
|
+
# resp.query_executions[0].execution_parameters[0] #=> String
|
462
514
|
# resp.unprocessed_query_execution_ids #=> Array
|
463
515
|
# resp.unprocessed_query_execution_ids[0].query_execution_id #=> String
|
464
516
|
# resp.unprocessed_query_execution_ids[0].error_code #=> String
|
@@ -708,6 +760,9 @@ module Aws::Athena
|
|
708
760
|
# kms_key: "String",
|
709
761
|
# },
|
710
762
|
# expected_bucket_owner: "String",
|
763
|
+
# acl_configuration: {
|
764
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
765
|
+
# },
|
711
766
|
# },
|
712
767
|
# enforce_work_group_configuration: false,
|
713
768
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -1011,6 +1066,7 @@ module Aws::Athena
|
|
1011
1066
|
# resp.query_execution.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1012
1067
|
# resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
|
1013
1068
|
# resp.query_execution.result_configuration.expected_bucket_owner #=> String
|
1069
|
+
# resp.query_execution.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
1014
1070
|
# resp.query_execution.query_execution_context.database #=> String
|
1015
1071
|
# resp.query_execution.query_execution_context.catalog #=> String
|
1016
1072
|
# resp.query_execution.status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
@@ -1019,6 +1075,8 @@ module Aws::Athena
|
|
1019
1075
|
# resp.query_execution.status.completion_date_time #=> Time
|
1020
1076
|
# resp.query_execution.status.athena_error.error_category #=> Integer
|
1021
1077
|
# resp.query_execution.status.athena_error.error_type #=> Integer
|
1078
|
+
# resp.query_execution.status.athena_error.retryable #=> Boolean
|
1079
|
+
# resp.query_execution.status.athena_error.error_message #=> String
|
1022
1080
|
# resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
|
1023
1081
|
# resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
|
1024
1082
|
# resp.query_execution.statistics.data_manifest_location #=> String
|
@@ -1029,6 +1087,8 @@ module Aws::Athena
|
|
1029
1087
|
# resp.query_execution.work_group #=> String
|
1030
1088
|
# resp.query_execution.engine_version.selected_engine_version #=> String
|
1031
1089
|
# resp.query_execution.engine_version.effective_engine_version #=> String
|
1090
|
+
# resp.query_execution.execution_parameters #=> Array
|
1091
|
+
# resp.query_execution.execution_parameters[0] #=> String
|
1032
1092
|
#
|
1033
1093
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution AWS API Documentation
|
1034
1094
|
#
|
@@ -1188,6 +1248,7 @@ module Aws::Athena
|
|
1188
1248
|
# resp.work_group.configuration.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1189
1249
|
# resp.work_group.configuration.result_configuration.encryption_configuration.kms_key #=> String
|
1190
1250
|
# resp.work_group.configuration.result_configuration.expected_bucket_owner #=> String
|
1251
|
+
# resp.work_group.configuration.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
1191
1252
|
# resp.work_group.configuration.enforce_work_group_configuration #=> Boolean
|
1192
1253
|
# resp.work_group.configuration.publish_cloud_watch_metrics_enabled #=> Boolean
|
1193
1254
|
# resp.work_group.configuration.bytes_scanned_cutoff_per_query #=> Integer
|
@@ -1390,7 +1451,7 @@ module Aws::Athena
|
|
1390
1451
|
req.send_request(options)
|
1391
1452
|
end
|
1392
1453
|
|
1393
|
-
# Lists the prepared statements in the
|
1454
|
+
# Lists the prepared statements in the specified workgroup.
|
1394
1455
|
#
|
1395
1456
|
# @option params [required, String] :work_group
|
1396
1457
|
# The workgroup to list the prepared statements for.
|
@@ -1695,6 +1756,11 @@ module Aws::Athena
|
|
1695
1756
|
# @option params [String] :work_group
|
1696
1757
|
# The name of the workgroup in which the query is being started.
|
1697
1758
|
#
|
1759
|
+
# @option params [Array<String>] :execution_parameters
|
1760
|
+
# A list of values for the parameters in a query. The values are applied
|
1761
|
+
# sequentially to the parameters in the query in the order in which the
|
1762
|
+
# parameters occur.
|
1763
|
+
#
|
1698
1764
|
# @return [Types::StartQueryExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1699
1765
|
#
|
1700
1766
|
# * {Types::StartQueryExecutionOutput#query_execution_id #query_execution_id} => String
|
@@ -1715,8 +1781,12 @@ module Aws::Athena
|
|
1715
1781
|
# kms_key: "String",
|
1716
1782
|
# },
|
1717
1783
|
# expected_bucket_owner: "String",
|
1784
|
+
# acl_configuration: {
|
1785
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
1786
|
+
# },
|
1718
1787
|
# },
|
1719
1788
|
# work_group: "WorkGroupName",
|
1789
|
+
# execution_parameters: ["ExecutionParameter"],
|
1720
1790
|
# })
|
1721
1791
|
#
|
1722
1792
|
# @example Response structure
|
@@ -2011,6 +2081,10 @@ module Aws::Athena
|
|
2011
2081
|
# remove_encryption_configuration: false,
|
2012
2082
|
# expected_bucket_owner: "String",
|
2013
2083
|
# remove_expected_bucket_owner: false,
|
2084
|
+
# acl_configuration: {
|
2085
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2086
|
+
# },
|
2087
|
+
# remove_acl_configuration: false,
|
2014
2088
|
# },
|
2015
2089
|
# publish_cloud_watch_metrics_enabled: false,
|
2016
2090
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2046,7 +2120,7 @@ module Aws::Athena
|
|
2046
2120
|
params: params,
|
2047
2121
|
config: config)
|
2048
2122
|
context[:gem_name] = 'aws-sdk-athena'
|
2049
|
-
context[:gem_version] = '1.
|
2123
|
+
context[:gem_version] = '1.54.0'
|
2050
2124
|
Seahorse::Client::Request.new(handlers, context)
|
2051
2125
|
end
|
2052
2126
|
|
@@ -13,10 +13,13 @@ module Aws::Athena
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AclConfiguration = Shapes::StructureShape.new(name: 'AclConfiguration')
|
16
17
|
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
17
18
|
AthenaError = Shapes::StructureShape.new(name: 'AthenaError')
|
18
19
|
BatchGetNamedQueryInput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryInput')
|
19
20
|
BatchGetNamedQueryOutput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryOutput')
|
21
|
+
BatchGetPreparedStatementInput = Shapes::StructureShape.new(name: 'BatchGetPreparedStatementInput')
|
22
|
+
BatchGetPreparedStatementOutput = Shapes::StructureShape.new(name: 'BatchGetPreparedStatementOutput')
|
20
23
|
BatchGetQueryExecutionInput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionInput')
|
21
24
|
BatchGetQueryExecutionOutput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionOutput')
|
22
25
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
@@ -63,6 +66,8 @@ module Aws::Athena
|
|
63
66
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
64
67
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
65
68
|
ErrorType = Shapes::IntegerShape.new(name: 'ErrorType')
|
69
|
+
ExecutionParameter = Shapes::StringShape.new(name: 'ExecutionParameter')
|
70
|
+
ExecutionParameters = Shapes::ListShape.new(name: 'ExecutionParameters')
|
66
71
|
ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
|
67
72
|
GetDataCatalogInput = Shapes::StructureShape.new(name: 'GetDataCatalogInput')
|
68
73
|
GetDataCatalogOutput = Shapes::StructureShape.new(name: 'GetDataCatalogOutput')
|
@@ -124,6 +129,8 @@ module Aws::Athena
|
|
124
129
|
ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
|
125
130
|
ParametersMapValue = Shapes::StringShape.new(name: 'ParametersMapValue')
|
126
131
|
PreparedStatement = Shapes::StructureShape.new(name: 'PreparedStatement')
|
132
|
+
PreparedStatementDetailsList = Shapes::ListShape.new(name: 'PreparedStatementDetailsList')
|
133
|
+
PreparedStatementNameList = Shapes::ListShape.new(name: 'PreparedStatementNameList')
|
127
134
|
PreparedStatementSummary = Shapes::StructureShape.new(name: 'PreparedStatementSummary')
|
128
135
|
PreparedStatementsList = Shapes::ListShape.new(name: 'PreparedStatementsList')
|
129
136
|
QueryExecution = Shapes::StructureShape.new(name: 'QueryExecution')
|
@@ -142,6 +149,7 @@ module Aws::Athena
|
|
142
149
|
ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
|
143
150
|
Row = Shapes::StructureShape.new(name: 'Row')
|
144
151
|
RowList = Shapes::ListShape.new(name: 'RowList')
|
152
|
+
S3AclOption = Shapes::StringShape.new(name: 'S3AclOption')
|
145
153
|
StartQueryExecutionInput = Shapes::StructureShape.new(name: 'StartQueryExecutionInput')
|
146
154
|
StartQueryExecutionOutput = Shapes::StructureShape.new(name: 'StartQueryExecutionOutput')
|
147
155
|
StatementName = Shapes::StringShape.new(name: 'StatementName')
|
@@ -166,6 +174,8 @@ module Aws::Athena
|
|
166
174
|
TypeString = Shapes::StringShape.new(name: 'TypeString')
|
167
175
|
UnprocessedNamedQueryId = Shapes::StructureShape.new(name: 'UnprocessedNamedQueryId')
|
168
176
|
UnprocessedNamedQueryIdList = Shapes::ListShape.new(name: 'UnprocessedNamedQueryIdList')
|
177
|
+
UnprocessedPreparedStatementName = Shapes::StructureShape.new(name: 'UnprocessedPreparedStatementName')
|
178
|
+
UnprocessedPreparedStatementNameList = Shapes::ListShape.new(name: 'UnprocessedPreparedStatementNameList')
|
169
179
|
UnprocessedQueryExecutionId = Shapes::StructureShape.new(name: 'UnprocessedQueryExecutionId')
|
170
180
|
UnprocessedQueryExecutionIdList = Shapes::ListShape.new(name: 'UnprocessedQueryExecutionIdList')
|
171
181
|
UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
|
@@ -189,8 +199,13 @@ module Aws::Athena
|
|
189
199
|
datumList = Shapes::ListShape.new(name: 'datumList')
|
190
200
|
datumString = Shapes::StringShape.new(name: 'datumString')
|
191
201
|
|
202
|
+
AclConfiguration.add_member(:s3_acl_option, Shapes::ShapeRef.new(shape: S3AclOption, required: true, location_name: "S3AclOption"))
|
203
|
+
AclConfiguration.struct_class = Types::AclConfiguration
|
204
|
+
|
192
205
|
AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
|
193
206
|
AthenaError.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorType"))
|
207
|
+
AthenaError.add_member(:retryable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Retryable"))
|
208
|
+
AthenaError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
|
194
209
|
AthenaError.struct_class = Types::AthenaError
|
195
210
|
|
196
211
|
BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
|
@@ -200,6 +215,14 @@ module Aws::Athena
|
|
200
215
|
BatchGetNamedQueryOutput.add_member(:unprocessed_named_query_ids, Shapes::ShapeRef.new(shape: UnprocessedNamedQueryIdList, location_name: "UnprocessedNamedQueryIds"))
|
201
216
|
BatchGetNamedQueryOutput.struct_class = Types::BatchGetNamedQueryOutput
|
202
217
|
|
218
|
+
BatchGetPreparedStatementInput.add_member(:prepared_statement_names, Shapes::ShapeRef.new(shape: PreparedStatementNameList, required: true, location_name: "PreparedStatementNames"))
|
219
|
+
BatchGetPreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
|
220
|
+
BatchGetPreparedStatementInput.struct_class = Types::BatchGetPreparedStatementInput
|
221
|
+
|
222
|
+
BatchGetPreparedStatementOutput.add_member(:prepared_statements, Shapes::ShapeRef.new(shape: PreparedStatementDetailsList, location_name: "PreparedStatements"))
|
223
|
+
BatchGetPreparedStatementOutput.add_member(:unprocessed_prepared_statement_names, Shapes::ShapeRef.new(shape: UnprocessedPreparedStatementNameList, location_name: "UnprocessedPreparedStatementNames"))
|
224
|
+
BatchGetPreparedStatementOutput.struct_class = Types::BatchGetPreparedStatementOutput
|
225
|
+
|
203
226
|
BatchGetQueryExecutionInput.add_member(:query_execution_ids, Shapes::ShapeRef.new(shape: QueryExecutionIdList, required: true, location_name: "QueryExecutionIds"))
|
204
227
|
BatchGetQueryExecutionInput.struct_class = Types::BatchGetQueryExecutionInput
|
205
228
|
|
@@ -318,6 +341,8 @@ module Aws::Athena
|
|
318
341
|
|
319
342
|
EngineVersionsList.member = Shapes::ShapeRef.new(shape: EngineVersion)
|
320
343
|
|
344
|
+
ExecutionParameters.member = Shapes::ShapeRef.new(shape: ExecutionParameter)
|
345
|
+
|
321
346
|
GetDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
322
347
|
GetDataCatalogInput.struct_class = Types::GetDataCatalogInput
|
323
348
|
|
@@ -486,6 +511,10 @@ module Aws::Athena
|
|
486
511
|
PreparedStatement.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedTime"))
|
487
512
|
PreparedStatement.struct_class = Types::PreparedStatement
|
488
513
|
|
514
|
+
PreparedStatementDetailsList.member = Shapes::ShapeRef.new(shape: PreparedStatement)
|
515
|
+
|
516
|
+
PreparedStatementNameList.member = Shapes::ShapeRef.new(shape: StatementName)
|
517
|
+
|
489
518
|
PreparedStatementSummary.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
|
490
519
|
PreparedStatementSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedTime"))
|
491
520
|
PreparedStatementSummary.struct_class = Types::PreparedStatementSummary
|
@@ -501,6 +530,7 @@ module Aws::Athena
|
|
501
530
|
QueryExecution.add_member(:statistics, Shapes::ShapeRef.new(shape: QueryExecutionStatistics, location_name: "Statistics"))
|
502
531
|
QueryExecution.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
503
532
|
QueryExecution.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
533
|
+
QueryExecution.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
|
504
534
|
QueryExecution.struct_class = Types::QueryExecution
|
505
535
|
|
506
536
|
QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
|
@@ -534,6 +564,7 @@ module Aws::Athena
|
|
534
564
|
ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
535
565
|
ResultConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
|
536
566
|
ResultConfiguration.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
567
|
+
ResultConfiguration.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
|
537
568
|
ResultConfiguration.struct_class = Types::ResultConfiguration
|
538
569
|
|
539
570
|
ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
@@ -542,6 +573,8 @@ module Aws::Athena
|
|
542
573
|
ResultConfigurationUpdates.add_member(:remove_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveEncryptionConfiguration"))
|
543
574
|
ResultConfigurationUpdates.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
544
575
|
ResultConfigurationUpdates.add_member(:remove_expected_bucket_owner, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveExpectedBucketOwner"))
|
576
|
+
ResultConfigurationUpdates.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
|
577
|
+
ResultConfigurationUpdates.add_member(:remove_acl_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveAclConfiguration"))
|
545
578
|
ResultConfigurationUpdates.struct_class = Types::ResultConfigurationUpdates
|
546
579
|
|
547
580
|
ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
|
@@ -561,6 +594,7 @@ module Aws::Athena
|
|
561
594
|
StartQueryExecutionInput.add_member(:query_execution_context, Shapes::ShapeRef.new(shape: QueryExecutionContext, location_name: "QueryExecutionContext"))
|
562
595
|
StartQueryExecutionInput.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
|
563
596
|
StartQueryExecutionInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
597
|
+
StartQueryExecutionInput.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
|
564
598
|
StartQueryExecutionInput.struct_class = Types::StartQueryExecutionInput
|
565
599
|
|
566
600
|
StartQueryExecutionOutput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
|
@@ -607,6 +641,13 @@ module Aws::Athena
|
|
607
641
|
|
608
642
|
UnprocessedNamedQueryIdList.member = Shapes::ShapeRef.new(shape: UnprocessedNamedQueryId)
|
609
643
|
|
644
|
+
UnprocessedPreparedStatementName.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
|
645
|
+
UnprocessedPreparedStatementName.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
646
|
+
UnprocessedPreparedStatementName.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
647
|
+
UnprocessedPreparedStatementName.struct_class = Types::UnprocessedPreparedStatementName
|
648
|
+
|
649
|
+
UnprocessedPreparedStatementNameList.member = Shapes::ShapeRef.new(shape: UnprocessedPreparedStatementName)
|
650
|
+
|
610
651
|
UnprocessedQueryExecutionId.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
|
611
652
|
UnprocessedQueryExecutionId.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
|
612
653
|
UnprocessedQueryExecutionId.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
@@ -715,6 +756,16 @@ module Aws::Athena
|
|
715
756
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
716
757
|
end)
|
717
758
|
|
759
|
+
api.add_operation(:batch_get_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
|
760
|
+
o.name = "BatchGetPreparedStatement"
|
761
|
+
o.http_method = "POST"
|
762
|
+
o.http_request_uri = "/"
|
763
|
+
o.input = Shapes::ShapeRef.new(shape: BatchGetPreparedStatementInput)
|
764
|
+
o.output = Shapes::ShapeRef.new(shape: BatchGetPreparedStatementOutput)
|
765
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
766
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
767
|
+
end)
|
768
|
+
|
718
769
|
api.add_operation(:batch_get_query_execution, Seahorse::Model::Operation.new.tap do |o|
|
719
770
|
o.name = "BatchGetQueryExecution"
|
720
771
|
o.http_method = "POST"
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -10,6 +10,45 @@
|
|
10
10
|
module Aws::Athena
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# Indicates that an Amazon S3 canned ACL should be set to control
|
14
|
+
# ownership of stored query results. When Athena stores query results in
|
15
|
+
# Amazon S3, the canned ACL is set with the `x-amz-acl` request header.
|
16
|
+
# For more information about S3 Object Ownership, see [Object Ownership
|
17
|
+
# settings][1] in the *Amazon S3 User Guide*.
|
18
|
+
#
|
19
|
+
#
|
20
|
+
#
|
21
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html#object-ownership-overview
|
22
|
+
#
|
23
|
+
# @note When making an API call, you may pass AclConfiguration
|
24
|
+
# data as a hash:
|
25
|
+
#
|
26
|
+
# {
|
27
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
28
|
+
# }
|
29
|
+
#
|
30
|
+
# @!attribute [rw] s3_acl_option
|
31
|
+
# The Amazon S3 canned ACL that Athena should specify when storing
|
32
|
+
# query results. Currently the only supported canned ACL is
|
33
|
+
# `BUCKET_OWNER_FULL_CONTROL`. If a query runs in a workgroup and the
|
34
|
+
# workgroup overrides client-side settings, then the Amazon S3 canned
|
35
|
+
# ACL specified in the workgroup's settings is used for all queries
|
36
|
+
# that run in the workgroup. For more information about Amazon S3
|
37
|
+
# canned ACLs, see [Canned ACL][1] in the *Amazon S3 User Guide*.
|
38
|
+
#
|
39
|
+
#
|
40
|
+
#
|
41
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html#canned-acl
|
42
|
+
# @return [String]
|
43
|
+
#
|
44
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/AclConfiguration AWS API Documentation
|
45
|
+
#
|
46
|
+
class AclConfiguration < Struct.new(
|
47
|
+
:s3_acl_option)
|
48
|
+
SENSITIVE = []
|
49
|
+
include Aws::Structure
|
50
|
+
end
|
51
|
+
|
13
52
|
# Provides information about an Athena query error. The `AthenaError`
|
14
53
|
# feature provides standardized error information to help you understand
|
15
54
|
# failed queries and take steps after a query failure occurs.
|
@@ -38,11 +77,21 @@ module Aws::Athena
|
|
38
77
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/error-reference.html#error-reference-error-type-reference
|
39
78
|
# @return [Integer]
|
40
79
|
#
|
80
|
+
# @!attribute [rw] retryable
|
81
|
+
# True if the query might succeed if resubmitted.
|
82
|
+
# @return [Boolean]
|
83
|
+
#
|
84
|
+
# @!attribute [rw] error_message
|
85
|
+
# Contains a short description of the error that occurred.
|
86
|
+
# @return [String]
|
87
|
+
#
|
41
88
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/AthenaError AWS API Documentation
|
42
89
|
#
|
43
90
|
class AthenaError < Struct.new(
|
44
91
|
:error_category,
|
45
|
-
:error_type
|
92
|
+
:error_type,
|
93
|
+
:retryable,
|
94
|
+
:error_message)
|
46
95
|
SENSITIVE = []
|
47
96
|
include Aws::Structure
|
48
97
|
end
|
@@ -83,6 +132,49 @@ module Aws::Athena
|
|
83
132
|
include Aws::Structure
|
84
133
|
end
|
85
134
|
|
135
|
+
# @note When making an API call, you may pass BatchGetPreparedStatementInput
|
136
|
+
# data as a hash:
|
137
|
+
#
|
138
|
+
# {
|
139
|
+
# prepared_statement_names: ["StatementName"], # required
|
140
|
+
# work_group: "WorkGroupName", # required
|
141
|
+
# }
|
142
|
+
#
|
143
|
+
# @!attribute [rw] prepared_statement_names
|
144
|
+
# A list of prepared statement names to return.
|
145
|
+
# @return [Array<String>]
|
146
|
+
#
|
147
|
+
# @!attribute [rw] work_group
|
148
|
+
# The name of the workgroup to which the prepared statements belong.
|
149
|
+
# @return [String]
|
150
|
+
#
|
151
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatementInput AWS API Documentation
|
152
|
+
#
|
153
|
+
class BatchGetPreparedStatementInput < Struct.new(
|
154
|
+
:prepared_statement_names,
|
155
|
+
:work_group)
|
156
|
+
SENSITIVE = []
|
157
|
+
include Aws::Structure
|
158
|
+
end
|
159
|
+
|
160
|
+
# @!attribute [rw] prepared_statements
|
161
|
+
# The list of prepared statements returned.
|
162
|
+
# @return [Array<Types::PreparedStatement>]
|
163
|
+
#
|
164
|
+
# @!attribute [rw] unprocessed_prepared_statement_names
|
165
|
+
# A list of one or more prepared statements that were requested but
|
166
|
+
# could not be returned.
|
167
|
+
# @return [Array<Types::UnprocessedPreparedStatementName>]
|
168
|
+
#
|
169
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatementOutput AWS API Documentation
|
170
|
+
#
|
171
|
+
class BatchGetPreparedStatementOutput < Struct.new(
|
172
|
+
:prepared_statements,
|
173
|
+
:unprocessed_prepared_statement_names)
|
174
|
+
SENSITIVE = []
|
175
|
+
include Aws::Structure
|
176
|
+
end
|
177
|
+
|
86
178
|
# @note When making an API call, you may pass BatchGetQueryExecutionInput
|
87
179
|
# data as a hash:
|
88
180
|
#
|
@@ -434,6 +526,9 @@ module Aws::Athena
|
|
434
526
|
# kms_key: "String",
|
435
527
|
# },
|
436
528
|
# expected_bucket_owner: "String",
|
529
|
+
# acl_configuration: {
|
530
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
531
|
+
# },
|
437
532
|
# },
|
438
533
|
# enforce_work_group_configuration: false,
|
439
534
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -736,7 +831,7 @@ module Aws::Athena
|
|
736
831
|
class DeleteWorkGroupOutput < Aws::EmptyStructure; end
|
737
832
|
|
738
833
|
# If query results are encrypted in Amazon S3, indicates the encryption
|
739
|
-
# option used (for example, `
|
834
|
+
# option used (for example, `SSE_KMS` or `CSE_KMS`) and key information.
|
740
835
|
#
|
741
836
|
# @note When making an API call, you may pass EncryptionConfiguration
|
742
837
|
# data as a hash:
|
@@ -748,9 +843,9 @@ module Aws::Athena
|
|
748
843
|
#
|
749
844
|
# @!attribute [rw] encryption_option
|
750
845
|
# Indicates whether Amazon S3 server-side encryption with Amazon
|
751
|
-
# S3-managed keys (`
|
752
|
-
# keys (`
|
753
|
-
# (
|
846
|
+
# S3-managed keys (`SSE_S3`), server-side encryption with KMS-managed
|
847
|
+
# keys (`SSE_KMS`), or client-side encryption with KMS-managed keys
|
848
|
+
# (`CSE_KMS`) is used.
|
754
849
|
#
|
755
850
|
# If a query runs in a workgroup and the workgroup overrides
|
756
851
|
# client-side settings, then the workgroup's setting for encryption
|
@@ -759,7 +854,7 @@ module Aws::Athena
|
|
759
854
|
# @return [String]
|
760
855
|
#
|
761
856
|
# @!attribute [rw] kms_key
|
762
|
-
# For `
|
857
|
+
# For `SSE_KMS` and `CSE_KMS`, this is the KMS key ARN or ID.
|
763
858
|
# @return [String]
|
764
859
|
#
|
765
860
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EncryptionConfiguration AWS API Documentation
|
@@ -1785,6 +1880,12 @@ module Aws::Athena
|
|
1785
1880
|
# The engine version that executed the query.
|
1786
1881
|
# @return [Types::EngineVersion]
|
1787
1882
|
#
|
1883
|
+
# @!attribute [rw] execution_parameters
|
1884
|
+
# A list of values for the parameters in a query. The values are
|
1885
|
+
# applied sequentially to the parameters in the query in the order in
|
1886
|
+
# which the parameters occur.
|
1887
|
+
# @return [Array<String>]
|
1888
|
+
#
|
1788
1889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
|
1789
1890
|
#
|
1790
1891
|
class QueryExecution < Struct.new(
|
@@ -1796,7 +1897,8 @@ module Aws::Athena
|
|
1796
1897
|
:status,
|
1797
1898
|
:statistics,
|
1798
1899
|
:work_group,
|
1799
|
-
:engine_version
|
1900
|
+
:engine_version,
|
1901
|
+
:execution_parameters)
|
1800
1902
|
SENSITIVE = []
|
1801
1903
|
include Aws::Structure
|
1802
1904
|
end
|
@@ -1947,6 +2049,7 @@ module Aws::Athena
|
|
1947
2049
|
# @return [String]
|
1948
2050
|
#
|
1949
2051
|
# @!attribute [rw] resource_name
|
2052
|
+
# The name of the Amazon resource.
|
1950
2053
|
# @return [String]
|
1951
2054
|
#
|
1952
2055
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResourceNotFoundException AWS API Documentation
|
@@ -1973,6 +2076,9 @@ module Aws::Athena
|
|
1973
2076
|
# kms_key: "String",
|
1974
2077
|
# },
|
1975
2078
|
# expected_bucket_owner: "String",
|
2079
|
+
# acl_configuration: {
|
2080
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2081
|
+
# },
|
1976
2082
|
# }
|
1977
2083
|
#
|
1978
2084
|
# @!attribute [rw] output_location
|
@@ -1994,7 +2100,7 @@ module Aws::Athena
|
|
1994
2100
|
#
|
1995
2101
|
# @!attribute [rw] encryption_configuration
|
1996
2102
|
# If query results are encrypted in Amazon S3, indicates the
|
1997
|
-
# encryption option used (for example, `
|
2103
|
+
# encryption option used (for example, `SSE_KMS` or `CSE_KMS`) and key
|
1998
2104
|
# information. This is a client-side setting. If workgroup settings
|
1999
2105
|
# override client-side settings, then the query uses the encryption
|
2000
2106
|
# configuration that is specified for the workgroup, and also uses the
|
@@ -2028,12 +2134,29 @@ module Aws::Athena
|
|
2028
2134
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2029
2135
|
# @return [String]
|
2030
2136
|
#
|
2137
|
+
# @!attribute [rw] acl_configuration
|
2138
|
+
# Indicates that an Amazon S3 canned ACL should be set to control
|
2139
|
+
# ownership of stored query results. Currently the only supported
|
2140
|
+
# canned ACL is `BUCKET_OWNER_FULL_CONTROL`. This is a client-side
|
2141
|
+
# setting. If workgroup settings override client-side settings, then
|
2142
|
+
# the query uses the ACL configuration that is specified for the
|
2143
|
+
# workgroup, and also uses the location for storing query results
|
2144
|
+
# specified in the workgroup. For more information, see
|
2145
|
+
# WorkGroupConfiguration$EnforceWorkGroupConfiguration and [Workgroup
|
2146
|
+
# Settings Override Client-Side Settings][1].
|
2147
|
+
#
|
2148
|
+
#
|
2149
|
+
#
|
2150
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2151
|
+
# @return [Types::AclConfiguration]
|
2152
|
+
#
|
2031
2153
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration AWS API Documentation
|
2032
2154
|
#
|
2033
2155
|
class ResultConfiguration < Struct.new(
|
2034
2156
|
:output_location,
|
2035
2157
|
:encryption_configuration,
|
2036
|
-
:expected_bucket_owner
|
2158
|
+
:expected_bucket_owner,
|
2159
|
+
:acl_configuration)
|
2037
2160
|
SENSITIVE = []
|
2038
2161
|
include Aws::Structure
|
2039
2162
|
end
|
@@ -2054,6 +2177,10 @@ module Aws::Athena
|
|
2054
2177
|
# remove_encryption_configuration: false,
|
2055
2178
|
# expected_bucket_owner: "String",
|
2056
2179
|
# remove_expected_bucket_owner: false,
|
2180
|
+
# acl_configuration: {
|
2181
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2182
|
+
# },
|
2183
|
+
# remove_acl_configuration: false,
|
2057
2184
|
# }
|
2058
2185
|
#
|
2059
2186
|
# @!attribute [rw] output_location
|
@@ -2143,6 +2270,24 @@ module Aws::Athena
|
|
2143
2270
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2144
2271
|
# @return [Boolean]
|
2145
2272
|
#
|
2273
|
+
# @!attribute [rw] acl_configuration
|
2274
|
+
# The ACL configuration for the query results.
|
2275
|
+
# @return [Types::AclConfiguration]
|
2276
|
+
#
|
2277
|
+
# @!attribute [rw] remove_acl_configuration
|
2278
|
+
# If set to `true`, indicates that the previously-specified ACL
|
2279
|
+
# configuration for queries in this workgroup should be ignored and
|
2280
|
+
# set to null. If set to `false` or not set, and a value is present in
|
2281
|
+
# the `AclConfiguration` of `ResultConfigurationUpdates`, the
|
2282
|
+
# `AclConfiguration` in the workgroup's `ResultConfiguration` is
|
2283
|
+
# updated with the new value. For more information, see [Workgroup
|
2284
|
+
# Settings Override Client-Side Settings][1].
|
2285
|
+
#
|
2286
|
+
#
|
2287
|
+
#
|
2288
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2289
|
+
# @return [Boolean]
|
2290
|
+
#
|
2146
2291
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfigurationUpdates AWS API Documentation
|
2147
2292
|
#
|
2148
2293
|
class ResultConfigurationUpdates < Struct.new(
|
@@ -2151,7 +2296,9 @@ module Aws::Athena
|
|
2151
2296
|
:encryption_configuration,
|
2152
2297
|
:remove_encryption_configuration,
|
2153
2298
|
:expected_bucket_owner,
|
2154
|
-
:remove_expected_bucket_owner
|
2299
|
+
:remove_expected_bucket_owner,
|
2300
|
+
:acl_configuration,
|
2301
|
+
:remove_acl_configuration)
|
2155
2302
|
SENSITIVE = []
|
2156
2303
|
include Aws::Structure
|
2157
2304
|
end
|
@@ -2225,8 +2372,12 @@ module Aws::Athena
|
|
2225
2372
|
# kms_key: "String",
|
2226
2373
|
# },
|
2227
2374
|
# expected_bucket_owner: "String",
|
2375
|
+
# acl_configuration: {
|
2376
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2377
|
+
# },
|
2228
2378
|
# },
|
2229
2379
|
# work_group: "WorkGroupName",
|
2380
|
+
# execution_parameters: ["ExecutionParameter"],
|
2230
2381
|
# }
|
2231
2382
|
#
|
2232
2383
|
# @!attribute [rw] query_string
|
@@ -2268,6 +2419,12 @@ module Aws::Athena
|
|
2268
2419
|
# The name of the workgroup in which the query is being started.
|
2269
2420
|
# @return [String]
|
2270
2421
|
#
|
2422
|
+
# @!attribute [rw] execution_parameters
|
2423
|
+
# A list of values for the parameters in a query. The values are
|
2424
|
+
# applied sequentially to the parameters in the query in the order in
|
2425
|
+
# which the parameters occur.
|
2426
|
+
# @return [Array<String>]
|
2427
|
+
#
|
2271
2428
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionInput AWS API Documentation
|
2272
2429
|
#
|
2273
2430
|
class StartQueryExecutionInput < Struct.new(
|
@@ -2275,7 +2432,8 @@ module Aws::Athena
|
|
2275
2432
|
:client_request_token,
|
2276
2433
|
:query_execution_context,
|
2277
2434
|
:result_configuration,
|
2278
|
-
:work_group
|
2435
|
+
:work_group,
|
2436
|
+
:execution_parameters)
|
2279
2437
|
SENSITIVE = []
|
2280
2438
|
include Aws::Structure
|
2281
2439
|
end
|
@@ -2491,6 +2649,42 @@ module Aws::Athena
|
|
2491
2649
|
include Aws::Structure
|
2492
2650
|
end
|
2493
2651
|
|
2652
|
+
# The name of a prepared statement that could not be returned.
|
2653
|
+
#
|
2654
|
+
# @!attribute [rw] statement_name
|
2655
|
+
# The name of a prepared statement that could not be returned due to
|
2656
|
+
# an error.
|
2657
|
+
# @return [String]
|
2658
|
+
#
|
2659
|
+
# @!attribute [rw] error_code
|
2660
|
+
# The error code returned when the request for the prepared statement
|
2661
|
+
# failed.
|
2662
|
+
# @return [String]
|
2663
|
+
#
|
2664
|
+
# @!attribute [rw] error_message
|
2665
|
+
# The error message containing the reason why the prepared statement
|
2666
|
+
# could not be returned. The following error messages are possible:
|
2667
|
+
#
|
2668
|
+
# * `INVALID_INPUT` - The name of the prepared statement that was
|
2669
|
+
# provided is not valid (for example, the name is too long).
|
2670
|
+
#
|
2671
|
+
# * `STATEMENT_NOT_FOUND` - A prepared statement with the name
|
2672
|
+
# provided could not be found.
|
2673
|
+
#
|
2674
|
+
# * `UNAUTHORIZED` - The requester does not have permission to access
|
2675
|
+
# the workgroup that contains the prepared statement.
|
2676
|
+
# @return [String]
|
2677
|
+
#
|
2678
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedPreparedStatementName AWS API Documentation
|
2679
|
+
#
|
2680
|
+
class UnprocessedPreparedStatementName < Struct.new(
|
2681
|
+
:statement_name,
|
2682
|
+
:error_code,
|
2683
|
+
:error_message)
|
2684
|
+
SENSITIVE = []
|
2685
|
+
include Aws::Structure
|
2686
|
+
end
|
2687
|
+
|
2494
2688
|
# Describes a query execution that failed to process.
|
2495
2689
|
#
|
2496
2690
|
# @!attribute [rw] query_execution_id
|
@@ -2720,6 +2914,10 @@ module Aws::Athena
|
|
2720
2914
|
# remove_encryption_configuration: false,
|
2721
2915
|
# expected_bucket_owner: "String",
|
2722
2916
|
# remove_expected_bucket_owner: false,
|
2917
|
+
# acl_configuration: {
|
2918
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2919
|
+
# },
|
2920
|
+
# remove_acl_configuration: false,
|
2723
2921
|
# },
|
2724
2922
|
# publish_cloud_watch_metrics_enabled: false,
|
2725
2923
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2839,6 +3037,9 @@ module Aws::Athena
|
|
2839
3037
|
# kms_key: "String",
|
2840
3038
|
# },
|
2841
3039
|
# expected_bucket_owner: "String",
|
3040
|
+
# acl_configuration: {
|
3041
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
3042
|
+
# },
|
2842
3043
|
# },
|
2843
3044
|
# enforce_work_group_configuration: false,
|
2844
3045
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -2942,6 +3143,10 @@ module Aws::Athena
|
|
2942
3143
|
# remove_encryption_configuration: false,
|
2943
3144
|
# expected_bucket_owner: "String",
|
2944
3145
|
# remove_expected_bucket_owner: false,
|
3146
|
+
# acl_configuration: {
|
3147
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
3148
|
+
# },
|
3149
|
+
# remove_acl_configuration: false,
|
2945
3150
|
# },
|
2946
3151
|
# publish_cloud_watch_metrics_enabled: false,
|
2947
3152
|
# bytes_scanned_cutoff_per_query: 1,
|
data/lib/aws-sdk-athena.rb
CHANGED
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.
|
4
|
+
version: 1.54.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: 2022-
|
11
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|