aws-sdk-athena 1.50.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +53 -1
- data/lib/aws-sdk-athena/client_api.rb +31 -0
- data/lib/aws-sdk-athena/types.rb +167 -16
- 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: d45eafd0db4a2dd576613f0620092497ee6adcf1ed681f4ba4a1500b04ae14e3
|
4
|
+
data.tar.gz: a53b56f8fbf2a72fb9ca8dcb7c7563ac2bee565c5895f3a149e77b3f25c3d637
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05ea3defd3b925e981cbcde008389fb2223161f14a30a29f1a164cf8ec6655bb50445f31cea00889d6d8446fc53a4cd1142ef5447ca3b23da62096642f6c3156
|
7
|
+
data.tar.gz: f9c403030dbec36516adc375bfd1a50a1d84259e739e68deb130687d13021165f3f70eb54d8af2bf3190a13175e64efab9944dc222c1b4abe7bcb5c0899d871d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.53.0 (2022-04-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds subfields, ErrorMessage, Retryable, to the AthenaError response object in the GetQueryExecution API when a query fails.
|
8
|
+
|
9
|
+
1.52.0 (2022-03-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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.
|
13
|
+
|
14
|
+
1.51.0 (2022-02-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release adds support for updating an existing named query.
|
18
|
+
|
4
19
|
1.50.0 (2022-02-24)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.53.0
|
@@ -441,6 +441,7 @@ module Aws::Athena
|
|
441
441
|
# resp.query_executions[0].result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
442
442
|
# resp.query_executions[0].result_configuration.encryption_configuration.kms_key #=> String
|
443
443
|
# resp.query_executions[0].result_configuration.expected_bucket_owner #=> String
|
444
|
+
# resp.query_executions[0].result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
444
445
|
# resp.query_executions[0].query_execution_context.database #=> String
|
445
446
|
# resp.query_executions[0].query_execution_context.catalog #=> String
|
446
447
|
# resp.query_executions[0].status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
@@ -449,6 +450,8 @@ module Aws::Athena
|
|
449
450
|
# resp.query_executions[0].status.completion_date_time #=> Time
|
450
451
|
# resp.query_executions[0].status.athena_error.error_category #=> Integer
|
451
452
|
# resp.query_executions[0].status.athena_error.error_type #=> Integer
|
453
|
+
# resp.query_executions[0].status.athena_error.retryable #=> Boolean
|
454
|
+
# resp.query_executions[0].status.athena_error.error_message #=> String
|
452
455
|
# resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
|
453
456
|
# resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
|
454
457
|
# resp.query_executions[0].statistics.data_manifest_location #=> String
|
@@ -708,6 +711,9 @@ module Aws::Athena
|
|
708
711
|
# kms_key: "String",
|
709
712
|
# },
|
710
713
|
# expected_bucket_owner: "String",
|
714
|
+
# acl_configuration: {
|
715
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
716
|
+
# },
|
711
717
|
# },
|
712
718
|
# enforce_work_group_configuration: false,
|
713
719
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -1011,6 +1017,7 @@ module Aws::Athena
|
|
1011
1017
|
# resp.query_execution.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1012
1018
|
# resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
|
1013
1019
|
# resp.query_execution.result_configuration.expected_bucket_owner #=> String
|
1020
|
+
# resp.query_execution.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
1014
1021
|
# resp.query_execution.query_execution_context.database #=> String
|
1015
1022
|
# resp.query_execution.query_execution_context.catalog #=> String
|
1016
1023
|
# resp.query_execution.status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
@@ -1019,6 +1026,8 @@ module Aws::Athena
|
|
1019
1026
|
# resp.query_execution.status.completion_date_time #=> Time
|
1020
1027
|
# resp.query_execution.status.athena_error.error_category #=> Integer
|
1021
1028
|
# resp.query_execution.status.athena_error.error_type #=> Integer
|
1029
|
+
# resp.query_execution.status.athena_error.retryable #=> Boolean
|
1030
|
+
# resp.query_execution.status.athena_error.error_message #=> String
|
1022
1031
|
# resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
|
1023
1032
|
# resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
|
1024
1033
|
# resp.query_execution.statistics.data_manifest_location #=> String
|
@@ -1188,6 +1197,7 @@ module Aws::Athena
|
|
1188
1197
|
# resp.work_group.configuration.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1189
1198
|
# resp.work_group.configuration.result_configuration.encryption_configuration.kms_key #=> String
|
1190
1199
|
# resp.work_group.configuration.result_configuration.expected_bucket_owner #=> String
|
1200
|
+
# resp.work_group.configuration.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
1191
1201
|
# resp.work_group.configuration.enforce_work_group_configuration #=> Boolean
|
1192
1202
|
# resp.work_group.configuration.publish_cloud_watch_metrics_enabled #=> Boolean
|
1193
1203
|
# resp.work_group.configuration.bytes_scanned_cutoff_per_query #=> Integer
|
@@ -1715,6 +1725,9 @@ module Aws::Athena
|
|
1715
1725
|
# kms_key: "String",
|
1716
1726
|
# },
|
1717
1727
|
# expected_bucket_owner: "String",
|
1728
|
+
# acl_configuration: {
|
1729
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
1730
|
+
# },
|
1718
1731
|
# },
|
1719
1732
|
# work_group: "WorkGroupName",
|
1720
1733
|
# })
|
@@ -1907,6 +1920,41 @@ module Aws::Athena
|
|
1907
1920
|
req.send_request(options)
|
1908
1921
|
end
|
1909
1922
|
|
1923
|
+
# Updates a NamedQuery object. The database or workgroup cannot be
|
1924
|
+
# updated.
|
1925
|
+
#
|
1926
|
+
# @option params [required, String] :named_query_id
|
1927
|
+
# The unique identifier (UUID) of the query.
|
1928
|
+
#
|
1929
|
+
# @option params [required, String] :name
|
1930
|
+
# The name of the query.
|
1931
|
+
#
|
1932
|
+
# @option params [String] :description
|
1933
|
+
# The query description.
|
1934
|
+
#
|
1935
|
+
# @option params [required, String] :query_string
|
1936
|
+
# The contents of the query with all query statements.
|
1937
|
+
#
|
1938
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1939
|
+
#
|
1940
|
+
# @example Request syntax with placeholder values
|
1941
|
+
#
|
1942
|
+
# resp = client.update_named_query({
|
1943
|
+
# named_query_id: "NamedQueryId", # required
|
1944
|
+
# name: "NameString", # required
|
1945
|
+
# description: "NamedQueryDescriptionString",
|
1946
|
+
# query_string: "QueryString", # required
|
1947
|
+
# })
|
1948
|
+
#
|
1949
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery AWS API Documentation
|
1950
|
+
#
|
1951
|
+
# @overload update_named_query(params = {})
|
1952
|
+
# @param [Hash] params ({})
|
1953
|
+
def update_named_query(params = {}, options = {})
|
1954
|
+
req = build_request(:update_named_query, params)
|
1955
|
+
req.send_request(options)
|
1956
|
+
end
|
1957
|
+
|
1910
1958
|
# Updates a prepared statement.
|
1911
1959
|
#
|
1912
1960
|
# @option params [required, String] :statement_name
|
@@ -1976,6 +2024,10 @@ module Aws::Athena
|
|
1976
2024
|
# remove_encryption_configuration: false,
|
1977
2025
|
# expected_bucket_owner: "String",
|
1978
2026
|
# remove_expected_bucket_owner: false,
|
2027
|
+
# acl_configuration: {
|
2028
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2029
|
+
# },
|
2030
|
+
# remove_acl_configuration: false,
|
1979
2031
|
# },
|
1980
2032
|
# publish_cloud_watch_metrics_enabled: false,
|
1981
2033
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2011,7 +2063,7 @@ module Aws::Athena
|
|
2011
2063
|
params: params,
|
2012
2064
|
config: config)
|
2013
2065
|
context[:gem_name] = 'aws-sdk-athena'
|
2014
|
-
context[:gem_version] = '1.
|
2066
|
+
context[:gem_version] = '1.53.0'
|
2015
2067
|
Seahorse::Client::Request.new(handlers, context)
|
2016
2068
|
end
|
2017
2069
|
|
@@ -13,6 +13,7 @@ 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')
|
@@ -117,6 +118,7 @@ module Aws::Athena
|
|
117
118
|
MetadataException = Shapes::StructureShape.new(name: 'MetadataException')
|
118
119
|
NameString = Shapes::StringShape.new(name: 'NameString')
|
119
120
|
NamedQuery = Shapes::StructureShape.new(name: 'NamedQuery')
|
121
|
+
NamedQueryDescriptionString = Shapes::StringShape.new(name: 'NamedQueryDescriptionString')
|
120
122
|
NamedQueryId = Shapes::StringShape.new(name: 'NamedQueryId')
|
121
123
|
NamedQueryIdList = Shapes::ListShape.new(name: 'NamedQueryIdList')
|
122
124
|
NamedQueryList = Shapes::ListShape.new(name: 'NamedQueryList')
|
@@ -141,6 +143,7 @@ module Aws::Athena
|
|
141
143
|
ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
|
142
144
|
Row = Shapes::StructureShape.new(name: 'Row')
|
143
145
|
RowList = Shapes::ListShape.new(name: 'RowList')
|
146
|
+
S3AclOption = Shapes::StringShape.new(name: 'S3AclOption')
|
144
147
|
StartQueryExecutionInput = Shapes::StructureShape.new(name: 'StartQueryExecutionInput')
|
145
148
|
StartQueryExecutionOutput = Shapes::StructureShape.new(name: 'StartQueryExecutionOutput')
|
146
149
|
StatementName = Shapes::StringShape.new(name: 'StatementName')
|
@@ -171,6 +174,8 @@ module Aws::Athena
|
|
171
174
|
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
172
175
|
UpdateDataCatalogInput = Shapes::StructureShape.new(name: 'UpdateDataCatalogInput')
|
173
176
|
UpdateDataCatalogOutput = Shapes::StructureShape.new(name: 'UpdateDataCatalogOutput')
|
177
|
+
UpdateNamedQueryInput = Shapes::StructureShape.new(name: 'UpdateNamedQueryInput')
|
178
|
+
UpdateNamedQueryOutput = Shapes::StructureShape.new(name: 'UpdateNamedQueryOutput')
|
174
179
|
UpdatePreparedStatementInput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementInput')
|
175
180
|
UpdatePreparedStatementOutput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementOutput')
|
176
181
|
UpdateWorkGroupInput = Shapes::StructureShape.new(name: 'UpdateWorkGroupInput')
|
@@ -186,8 +191,13 @@ module Aws::Athena
|
|
186
191
|
datumList = Shapes::ListShape.new(name: 'datumList')
|
187
192
|
datumString = Shapes::StringShape.new(name: 'datumString')
|
188
193
|
|
194
|
+
AclConfiguration.add_member(:s3_acl_option, Shapes::ShapeRef.new(shape: S3AclOption, required: true, location_name: "S3AclOption"))
|
195
|
+
AclConfiguration.struct_class = Types::AclConfiguration
|
196
|
+
|
189
197
|
AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
|
190
198
|
AthenaError.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorType"))
|
199
|
+
AthenaError.add_member(:retryable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Retryable"))
|
200
|
+
AthenaError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
|
191
201
|
AthenaError.struct_class = Types::AthenaError
|
192
202
|
|
193
203
|
BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
|
@@ -531,6 +541,7 @@ module Aws::Athena
|
|
531
541
|
ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
532
542
|
ResultConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
|
533
543
|
ResultConfiguration.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
544
|
+
ResultConfiguration.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
|
534
545
|
ResultConfiguration.struct_class = Types::ResultConfiguration
|
535
546
|
|
536
547
|
ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
@@ -539,6 +550,8 @@ module Aws::Athena
|
|
539
550
|
ResultConfigurationUpdates.add_member(:remove_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveEncryptionConfiguration"))
|
540
551
|
ResultConfigurationUpdates.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
541
552
|
ResultConfigurationUpdates.add_member(:remove_expected_bucket_owner, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveExpectedBucketOwner"))
|
553
|
+
ResultConfigurationUpdates.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
|
554
|
+
ResultConfigurationUpdates.add_member(:remove_acl_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveAclConfiguration"))
|
542
555
|
ResultConfigurationUpdates.struct_class = Types::ResultConfigurationUpdates
|
543
556
|
|
544
557
|
ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
|
@@ -625,6 +638,14 @@ module Aws::Athena
|
|
625
638
|
|
626
639
|
UpdateDataCatalogOutput.struct_class = Types::UpdateDataCatalogOutput
|
627
640
|
|
641
|
+
UpdateNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId"))
|
642
|
+
UpdateNamedQueryInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
643
|
+
UpdateNamedQueryInput.add_member(:description, Shapes::ShapeRef.new(shape: NamedQueryDescriptionString, location_name: "Description"))
|
644
|
+
UpdateNamedQueryInput.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
645
|
+
UpdateNamedQueryInput.struct_class = Types::UpdateNamedQueryInput
|
646
|
+
|
647
|
+
UpdateNamedQueryOutput.struct_class = Types::UpdateNamedQueryOutput
|
648
|
+
|
628
649
|
UpdatePreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
|
629
650
|
UpdatePreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
|
630
651
|
UpdatePreparedStatementInput.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryStatement"))
|
@@ -1078,6 +1099,16 @@ module Aws::Athena
|
|
1078
1099
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1079
1100
|
end)
|
1080
1101
|
|
1102
|
+
api.add_operation(:update_named_query, Seahorse::Model::Operation.new.tap do |o|
|
1103
|
+
o.name = "UpdateNamedQuery"
|
1104
|
+
o.http_method = "POST"
|
1105
|
+
o.http_request_uri = "/"
|
1106
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateNamedQueryInput)
|
1107
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateNamedQueryOutput)
|
1108
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1109
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1110
|
+
end)
|
1111
|
+
|
1081
1112
|
api.add_operation(:update_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
|
1082
1113
|
o.name = "UpdatePreparedStatement"
|
1083
1114
|
o.http_method = "POST"
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -10,12 +10,51 @@
|
|
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.
|
16
55
|
# `AthenaError` includes an `ErrorCategory` field that specifies whether
|
17
56
|
# the cause of the failed query is due to system error, user error, or
|
18
|
-
#
|
57
|
+
# other error.
|
19
58
|
#
|
20
59
|
# @!attribute [rw] error_category
|
21
60
|
# An integer value that specifies the category of a query failure
|
@@ -25,7 +64,7 @@ module Aws::Athena
|
|
25
64
|
#
|
26
65
|
# **2** - User
|
27
66
|
#
|
28
|
-
# **3** -
|
67
|
+
# **3** - Other
|
29
68
|
# @return [Integer]
|
30
69
|
#
|
31
70
|
# @!attribute [rw] error_type
|
@@ -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
|
@@ -434,6 +483,9 @@ module Aws::Athena
|
|
434
483
|
# kms_key: "String",
|
435
484
|
# },
|
436
485
|
# expected_bucket_owner: "String",
|
486
|
+
# acl_configuration: {
|
487
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
488
|
+
# },
|
437
489
|
# },
|
438
490
|
# enforce_work_group_configuration: false,
|
439
491
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -736,7 +788,7 @@ module Aws::Athena
|
|
736
788
|
class DeleteWorkGroupOutput < Aws::EmptyStructure; end
|
737
789
|
|
738
790
|
# If query results are encrypted in Amazon S3, indicates the encryption
|
739
|
-
# option used (for example, `
|
791
|
+
# option used (for example, `SSE_KMS` or `CSE_KMS`) and key information.
|
740
792
|
#
|
741
793
|
# @note When making an API call, you may pass EncryptionConfiguration
|
742
794
|
# data as a hash:
|
@@ -748,9 +800,9 @@ module Aws::Athena
|
|
748
800
|
#
|
749
801
|
# @!attribute [rw] encryption_option
|
750
802
|
# Indicates whether Amazon S3 server-side encryption with Amazon
|
751
|
-
# S3-managed keys (`
|
752
|
-
# keys (`
|
753
|
-
# (
|
803
|
+
# S3-managed keys (`SSE_S3`), server-side encryption with KMS-managed
|
804
|
+
# keys (`SSE_KMS`), or client-side encryption with KMS-managed keys
|
805
|
+
# (`CSE_KMS`) is used.
|
754
806
|
#
|
755
807
|
# If a query runs in a workgroup and the workgroup overrides
|
756
808
|
# client-side settings, then the workgroup's setting for encryption
|
@@ -759,7 +811,7 @@ module Aws::Athena
|
|
759
811
|
# @return [String]
|
760
812
|
#
|
761
813
|
# @!attribute [rw] kms_key
|
762
|
-
# For `
|
814
|
+
# For `SSE_KMS` and `CSE_KMS`, this is the KMS key ARN or ID.
|
763
815
|
# @return [String]
|
764
816
|
#
|
765
817
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EncryptionConfiguration AWS API Documentation
|
@@ -1642,8 +1694,8 @@ module Aws::Athena
|
|
1642
1694
|
include Aws::Structure
|
1643
1695
|
end
|
1644
1696
|
|
1645
|
-
# A query, where `QueryString`
|
1646
|
-
#
|
1697
|
+
# A query, where `QueryString` contains the SQL statements that make up
|
1698
|
+
# the query.
|
1647
1699
|
#
|
1648
1700
|
# @!attribute [rw] name
|
1649
1701
|
# The query name.
|
@@ -1658,7 +1710,7 @@ module Aws::Athena
|
|
1658
1710
|
# @return [String]
|
1659
1711
|
#
|
1660
1712
|
# @!attribute [rw] query_string
|
1661
|
-
# The SQL
|
1713
|
+
# The SQL statements that make up the query.
|
1662
1714
|
# @return [String]
|
1663
1715
|
#
|
1664
1716
|
# @!attribute [rw] named_query_id
|
@@ -1973,6 +2025,9 @@ module Aws::Athena
|
|
1973
2025
|
# kms_key: "String",
|
1974
2026
|
# },
|
1975
2027
|
# expected_bucket_owner: "String",
|
2028
|
+
# acl_configuration: {
|
2029
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2030
|
+
# },
|
1976
2031
|
# }
|
1977
2032
|
#
|
1978
2033
|
# @!attribute [rw] output_location
|
@@ -1994,7 +2049,7 @@ module Aws::Athena
|
|
1994
2049
|
#
|
1995
2050
|
# @!attribute [rw] encryption_configuration
|
1996
2051
|
# If query results are encrypted in Amazon S3, indicates the
|
1997
|
-
# encryption option used (for example, `
|
2052
|
+
# encryption option used (for example, `SSE_KMS` or `CSE_KMS`) and key
|
1998
2053
|
# information. This is a client-side setting. If workgroup settings
|
1999
2054
|
# override client-side settings, then the query uses the encryption
|
2000
2055
|
# configuration that is specified for the workgroup, and also uses the
|
@@ -2028,12 +2083,29 @@ module Aws::Athena
|
|
2028
2083
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2029
2084
|
# @return [String]
|
2030
2085
|
#
|
2086
|
+
# @!attribute [rw] acl_configuration
|
2087
|
+
# Indicates that an Amazon S3 canned ACL should be set to control
|
2088
|
+
# ownership of stored query results. Currently the only supported
|
2089
|
+
# canned ACL is `BUCKET_OWNER_FULL_CONTROL`. This is a client-side
|
2090
|
+
# setting. If workgroup settings override client-side settings, then
|
2091
|
+
# the query uses the ACL configuration that is specified for the
|
2092
|
+
# workgroup, and also uses the location for storing query results
|
2093
|
+
# specified in the workgroup. For more information, see
|
2094
|
+
# WorkGroupConfiguration$EnforceWorkGroupConfiguration and [Workgroup
|
2095
|
+
# Settings Override Client-Side Settings][1].
|
2096
|
+
#
|
2097
|
+
#
|
2098
|
+
#
|
2099
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2100
|
+
# @return [Types::AclConfiguration]
|
2101
|
+
#
|
2031
2102
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration AWS API Documentation
|
2032
2103
|
#
|
2033
2104
|
class ResultConfiguration < Struct.new(
|
2034
2105
|
:output_location,
|
2035
2106
|
:encryption_configuration,
|
2036
|
-
:expected_bucket_owner
|
2107
|
+
:expected_bucket_owner,
|
2108
|
+
:acl_configuration)
|
2037
2109
|
SENSITIVE = []
|
2038
2110
|
include Aws::Structure
|
2039
2111
|
end
|
@@ -2054,6 +2126,10 @@ module Aws::Athena
|
|
2054
2126
|
# remove_encryption_configuration: false,
|
2055
2127
|
# expected_bucket_owner: "String",
|
2056
2128
|
# remove_expected_bucket_owner: false,
|
2129
|
+
# acl_configuration: {
|
2130
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2131
|
+
# },
|
2132
|
+
# remove_acl_configuration: false,
|
2057
2133
|
# }
|
2058
2134
|
#
|
2059
2135
|
# @!attribute [rw] output_location
|
@@ -2143,6 +2219,24 @@ module Aws::Athena
|
|
2143
2219
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2144
2220
|
# @return [Boolean]
|
2145
2221
|
#
|
2222
|
+
# @!attribute [rw] acl_configuration
|
2223
|
+
# The ACL configuration for the query results.
|
2224
|
+
# @return [Types::AclConfiguration]
|
2225
|
+
#
|
2226
|
+
# @!attribute [rw] remove_acl_configuration
|
2227
|
+
# If set to `true`, indicates that the previously-specified ACL
|
2228
|
+
# configuration for queries in this workgroup should be ignored and
|
2229
|
+
# set to null. If set to `false` or not set, and a value is present in
|
2230
|
+
# the `AclConfiguration` of `ResultConfigurationUpdates`, the
|
2231
|
+
# `AclConfiguration` in the workgroup's `ResultConfiguration` is
|
2232
|
+
# updated with the new value. For more information, see [Workgroup
|
2233
|
+
# Settings Override Client-Side Settings][1].
|
2234
|
+
#
|
2235
|
+
#
|
2236
|
+
#
|
2237
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2238
|
+
# @return [Boolean]
|
2239
|
+
#
|
2146
2240
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfigurationUpdates AWS API Documentation
|
2147
2241
|
#
|
2148
2242
|
class ResultConfigurationUpdates < Struct.new(
|
@@ -2151,12 +2245,14 @@ module Aws::Athena
|
|
2151
2245
|
:encryption_configuration,
|
2152
2246
|
:remove_encryption_configuration,
|
2153
2247
|
:expected_bucket_owner,
|
2154
|
-
:remove_expected_bucket_owner
|
2248
|
+
:remove_expected_bucket_owner,
|
2249
|
+
:acl_configuration,
|
2250
|
+
:remove_acl_configuration)
|
2155
2251
|
SENSITIVE = []
|
2156
2252
|
include Aws::Structure
|
2157
2253
|
end
|
2158
2254
|
|
2159
|
-
# The metadata and rows that
|
2255
|
+
# The metadata and rows that make up a query result set. The metadata
|
2160
2256
|
# describes the column structure and data types. To return a `ResultSet`
|
2161
2257
|
# object, use GetQueryResults.
|
2162
2258
|
#
|
@@ -2194,7 +2290,7 @@ module Aws::Athena
|
|
2194
2290
|
include Aws::Structure
|
2195
2291
|
end
|
2196
2292
|
|
2197
|
-
# The rows that
|
2293
|
+
# The rows that make up a query result table.
|
2198
2294
|
#
|
2199
2295
|
# @!attribute [rw] data
|
2200
2296
|
# The data that populates a row in a query result table.
|
@@ -2225,6 +2321,9 @@ module Aws::Athena
|
|
2225
2321
|
# kms_key: "String",
|
2226
2322
|
# },
|
2227
2323
|
# expected_bucket_owner: "String",
|
2324
|
+
# acl_configuration: {
|
2325
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2326
|
+
# },
|
2228
2327
|
# },
|
2229
2328
|
# work_group: "WorkGroupName",
|
2230
2329
|
# }
|
@@ -2620,6 +2719,47 @@ module Aws::Athena
|
|
2620
2719
|
#
|
2621
2720
|
class UpdateDataCatalogOutput < Aws::EmptyStructure; end
|
2622
2721
|
|
2722
|
+
# @note When making an API call, you may pass UpdateNamedQueryInput
|
2723
|
+
# data as a hash:
|
2724
|
+
#
|
2725
|
+
# {
|
2726
|
+
# named_query_id: "NamedQueryId", # required
|
2727
|
+
# name: "NameString", # required
|
2728
|
+
# description: "NamedQueryDescriptionString",
|
2729
|
+
# query_string: "QueryString", # required
|
2730
|
+
# }
|
2731
|
+
#
|
2732
|
+
# @!attribute [rw] named_query_id
|
2733
|
+
# The unique identifier (UUID) of the query.
|
2734
|
+
# @return [String]
|
2735
|
+
#
|
2736
|
+
# @!attribute [rw] name
|
2737
|
+
# The name of the query.
|
2738
|
+
# @return [String]
|
2739
|
+
#
|
2740
|
+
# @!attribute [rw] description
|
2741
|
+
# The query description.
|
2742
|
+
# @return [String]
|
2743
|
+
#
|
2744
|
+
# @!attribute [rw] query_string
|
2745
|
+
# The contents of the query with all query statements.
|
2746
|
+
# @return [String]
|
2747
|
+
#
|
2748
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQueryInput AWS API Documentation
|
2749
|
+
#
|
2750
|
+
class UpdateNamedQueryInput < Struct.new(
|
2751
|
+
:named_query_id,
|
2752
|
+
:name,
|
2753
|
+
:description,
|
2754
|
+
:query_string)
|
2755
|
+
SENSITIVE = []
|
2756
|
+
include Aws::Structure
|
2757
|
+
end
|
2758
|
+
|
2759
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQueryOutput AWS API Documentation
|
2760
|
+
#
|
2761
|
+
class UpdateNamedQueryOutput < Aws::EmptyStructure; end
|
2762
|
+
|
2623
2763
|
# @note When making an API call, you may pass UpdatePreparedStatementInput
|
2624
2764
|
# data as a hash:
|
2625
2765
|
#
|
@@ -2679,6 +2819,10 @@ module Aws::Athena
|
|
2679
2819
|
# remove_encryption_configuration: false,
|
2680
2820
|
# expected_bucket_owner: "String",
|
2681
2821
|
# remove_expected_bucket_owner: false,
|
2822
|
+
# acl_configuration: {
|
2823
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2824
|
+
# },
|
2825
|
+
# remove_acl_configuration: false,
|
2682
2826
|
# },
|
2683
2827
|
# publish_cloud_watch_metrics_enabled: false,
|
2684
2828
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2798,6 +2942,9 @@ module Aws::Athena
|
|
2798
2942
|
# kms_key: "String",
|
2799
2943
|
# },
|
2800
2944
|
# expected_bucket_owner: "String",
|
2945
|
+
# acl_configuration: {
|
2946
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2947
|
+
# },
|
2801
2948
|
# },
|
2802
2949
|
# enforce_work_group_configuration: false,
|
2803
2950
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -2901,6 +3048,10 @@ module Aws::Athena
|
|
2901
3048
|
# remove_encryption_configuration: false,
|
2902
3049
|
# expected_bucket_owner: "String",
|
2903
3050
|
# remove_expected_bucket_owner: false,
|
3051
|
+
# acl_configuration: {
|
3052
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
3053
|
+
# },
|
3054
|
+
# remove_acl_configuration: false,
|
2904
3055
|
# },
|
2905
3056
|
# publish_cloud_watch_metrics_enabled: false,
|
2906
3057
|
# 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.53.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-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|