aws-sdk-athena 1.51.0 → 1.52.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +14 -1
- data/lib/aws-sdk-athena/client_api.rb +8 -0
- data/lib/aws-sdk-athena/types.rb +102 -2
- 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: a8b8b6530d32dc05758dff613a83c110600fb7830f0ffaf07d516686f8f43b9e
|
4
|
+
data.tar.gz: e49d2175aa7b1a4d078fb2d751df78db378b779b64bfd7d4b9951598d2fd879a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbf9867493f0ab6a68ca13fb32914dad2b888f0250022969053020aaf5766c7c45bbcbe42158b24ef557b6678f3419476813baa52c91290d8d06f2657259e2d2
|
7
|
+
data.tar.gz: 6b9a5ba85d3db12347c340493db813ad4b2d27270509b4e00689eaa8a26d2467f7be8d0e9a6f65762d8ed504d9fce4e75e9a20b01be67eb23228b73250342e97
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2022-03-02)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
4
9
|
1.51.0 (2022-02-28)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.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"
|
@@ -708,6 +709,9 @@ module Aws::Athena
|
|
708
709
|
# kms_key: "String",
|
709
710
|
# },
|
710
711
|
# expected_bucket_owner: "String",
|
712
|
+
# acl_configuration: {
|
713
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
714
|
+
# },
|
711
715
|
# },
|
712
716
|
# enforce_work_group_configuration: false,
|
713
717
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -1011,6 +1015,7 @@ module Aws::Athena
|
|
1011
1015
|
# resp.query_execution.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1012
1016
|
# resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
|
1013
1017
|
# resp.query_execution.result_configuration.expected_bucket_owner #=> String
|
1018
|
+
# resp.query_execution.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
1014
1019
|
# resp.query_execution.query_execution_context.database #=> String
|
1015
1020
|
# resp.query_execution.query_execution_context.catalog #=> String
|
1016
1021
|
# resp.query_execution.status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
@@ -1188,6 +1193,7 @@ module Aws::Athena
|
|
1188
1193
|
# resp.work_group.configuration.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1189
1194
|
# resp.work_group.configuration.result_configuration.encryption_configuration.kms_key #=> String
|
1190
1195
|
# resp.work_group.configuration.result_configuration.expected_bucket_owner #=> String
|
1196
|
+
# resp.work_group.configuration.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
|
1191
1197
|
# resp.work_group.configuration.enforce_work_group_configuration #=> Boolean
|
1192
1198
|
# resp.work_group.configuration.publish_cloud_watch_metrics_enabled #=> Boolean
|
1193
1199
|
# resp.work_group.configuration.bytes_scanned_cutoff_per_query #=> Integer
|
@@ -1715,6 +1721,9 @@ module Aws::Athena
|
|
1715
1721
|
# kms_key: "String",
|
1716
1722
|
# },
|
1717
1723
|
# expected_bucket_owner: "String",
|
1724
|
+
# acl_configuration: {
|
1725
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
1726
|
+
# },
|
1718
1727
|
# },
|
1719
1728
|
# work_group: "WorkGroupName",
|
1720
1729
|
# })
|
@@ -2011,6 +2020,10 @@ module Aws::Athena
|
|
2011
2020
|
# remove_encryption_configuration: false,
|
2012
2021
|
# expected_bucket_owner: "String",
|
2013
2022
|
# remove_expected_bucket_owner: false,
|
2023
|
+
# acl_configuration: {
|
2024
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2025
|
+
# },
|
2026
|
+
# remove_acl_configuration: false,
|
2014
2027
|
# },
|
2015
2028
|
# publish_cloud_watch_metrics_enabled: false,
|
2016
2029
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2046,7 +2059,7 @@ module Aws::Athena
|
|
2046
2059
|
params: params,
|
2047
2060
|
config: config)
|
2048
2061
|
context[:gem_name] = 'aws-sdk-athena'
|
2049
|
-
context[:gem_version] = '1.
|
2062
|
+
context[:gem_version] = '1.52.0'
|
2050
2063
|
Seahorse::Client::Request.new(handlers, context)
|
2051
2064
|
end
|
2052
2065
|
|
@@ -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')
|
@@ -142,6 +143,7 @@ module Aws::Athena
|
|
142
143
|
ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
|
143
144
|
Row = Shapes::StructureShape.new(name: 'Row')
|
144
145
|
RowList = Shapes::ListShape.new(name: 'RowList')
|
146
|
+
S3AclOption = Shapes::StringShape.new(name: 'S3AclOption')
|
145
147
|
StartQueryExecutionInput = Shapes::StructureShape.new(name: 'StartQueryExecutionInput')
|
146
148
|
StartQueryExecutionOutput = Shapes::StructureShape.new(name: 'StartQueryExecutionOutput')
|
147
149
|
StatementName = Shapes::StringShape.new(name: 'StatementName')
|
@@ -189,6 +191,9 @@ module Aws::Athena
|
|
189
191
|
datumList = Shapes::ListShape.new(name: 'datumList')
|
190
192
|
datumString = Shapes::StringShape.new(name: 'datumString')
|
191
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
|
+
|
192
197
|
AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
|
193
198
|
AthenaError.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorType"))
|
194
199
|
AthenaError.struct_class = Types::AthenaError
|
@@ -534,6 +539,7 @@ module Aws::Athena
|
|
534
539
|
ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
535
540
|
ResultConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
|
536
541
|
ResultConfiguration.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
542
|
+
ResultConfiguration.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
|
537
543
|
ResultConfiguration.struct_class = Types::ResultConfiguration
|
538
544
|
|
539
545
|
ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
@@ -542,6 +548,8 @@ module Aws::Athena
|
|
542
548
|
ResultConfigurationUpdates.add_member(:remove_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveEncryptionConfiguration"))
|
543
549
|
ResultConfigurationUpdates.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
544
550
|
ResultConfigurationUpdates.add_member(:remove_expected_bucket_owner, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveExpectedBucketOwner"))
|
551
|
+
ResultConfigurationUpdates.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
|
552
|
+
ResultConfigurationUpdates.add_member(:remove_acl_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveAclConfiguration"))
|
545
553
|
ResultConfigurationUpdates.struct_class = Types::ResultConfigurationUpdates
|
546
554
|
|
547
555
|
ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
|
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.
|
@@ -434,6 +473,9 @@ module Aws::Athena
|
|
434
473
|
# kms_key: "String",
|
435
474
|
# },
|
436
475
|
# expected_bucket_owner: "String",
|
476
|
+
# acl_configuration: {
|
477
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
478
|
+
# },
|
437
479
|
# },
|
438
480
|
# enforce_work_group_configuration: false,
|
439
481
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -1973,6 +2015,9 @@ module Aws::Athena
|
|
1973
2015
|
# kms_key: "String",
|
1974
2016
|
# },
|
1975
2017
|
# expected_bucket_owner: "String",
|
2018
|
+
# acl_configuration: {
|
2019
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2020
|
+
# },
|
1976
2021
|
# }
|
1977
2022
|
#
|
1978
2023
|
# @!attribute [rw] output_location
|
@@ -2028,12 +2073,29 @@ module Aws::Athena
|
|
2028
2073
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2029
2074
|
# @return [String]
|
2030
2075
|
#
|
2076
|
+
# @!attribute [rw] acl_configuration
|
2077
|
+
# Indicates that an Amazon S3 canned ACL should be set to control
|
2078
|
+
# ownership of stored query results. Currently the only supported
|
2079
|
+
# canned ACL is `BUCKET_OWNER_FULL_CONTROL`. This is a client-side
|
2080
|
+
# setting. If workgroup settings override client-side settings, then
|
2081
|
+
# the query uses the ACL configuration that is specified for the
|
2082
|
+
# workgroup, and also uses the location for storing query results
|
2083
|
+
# specified in the workgroup. For more information, see
|
2084
|
+
# WorkGroupConfiguration$EnforceWorkGroupConfiguration and [Workgroup
|
2085
|
+
# Settings Override Client-Side Settings][1].
|
2086
|
+
#
|
2087
|
+
#
|
2088
|
+
#
|
2089
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2090
|
+
# @return [Types::AclConfiguration]
|
2091
|
+
#
|
2031
2092
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration AWS API Documentation
|
2032
2093
|
#
|
2033
2094
|
class ResultConfiguration < Struct.new(
|
2034
2095
|
:output_location,
|
2035
2096
|
:encryption_configuration,
|
2036
|
-
:expected_bucket_owner
|
2097
|
+
:expected_bucket_owner,
|
2098
|
+
:acl_configuration)
|
2037
2099
|
SENSITIVE = []
|
2038
2100
|
include Aws::Structure
|
2039
2101
|
end
|
@@ -2054,6 +2116,10 @@ module Aws::Athena
|
|
2054
2116
|
# remove_encryption_configuration: false,
|
2055
2117
|
# expected_bucket_owner: "String",
|
2056
2118
|
# remove_expected_bucket_owner: false,
|
2119
|
+
# acl_configuration: {
|
2120
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2121
|
+
# },
|
2122
|
+
# remove_acl_configuration: false,
|
2057
2123
|
# }
|
2058
2124
|
#
|
2059
2125
|
# @!attribute [rw] output_location
|
@@ -2143,6 +2209,24 @@ module Aws::Athena
|
|
2143
2209
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2144
2210
|
# @return [Boolean]
|
2145
2211
|
#
|
2212
|
+
# @!attribute [rw] acl_configuration
|
2213
|
+
# The ACL configuration for the query results.
|
2214
|
+
# @return [Types::AclConfiguration]
|
2215
|
+
#
|
2216
|
+
# @!attribute [rw] remove_acl_configuration
|
2217
|
+
# If set to `true`, indicates that the previously-specified ACL
|
2218
|
+
# configuration for queries in this workgroup should be ignored and
|
2219
|
+
# set to null. If set to `false` or not set, and a value is present in
|
2220
|
+
# the `AclConfiguration` of `ResultConfigurationUpdates`, the
|
2221
|
+
# `AclConfiguration` in the workgroup's `ResultConfiguration` is
|
2222
|
+
# updated with the new value. For more information, see [Workgroup
|
2223
|
+
# Settings Override Client-Side Settings][1].
|
2224
|
+
#
|
2225
|
+
#
|
2226
|
+
#
|
2227
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2228
|
+
# @return [Boolean]
|
2229
|
+
#
|
2146
2230
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfigurationUpdates AWS API Documentation
|
2147
2231
|
#
|
2148
2232
|
class ResultConfigurationUpdates < Struct.new(
|
@@ -2151,7 +2235,9 @@ module Aws::Athena
|
|
2151
2235
|
:encryption_configuration,
|
2152
2236
|
:remove_encryption_configuration,
|
2153
2237
|
:expected_bucket_owner,
|
2154
|
-
:remove_expected_bucket_owner
|
2238
|
+
:remove_expected_bucket_owner,
|
2239
|
+
:acl_configuration,
|
2240
|
+
:remove_acl_configuration)
|
2155
2241
|
SENSITIVE = []
|
2156
2242
|
include Aws::Structure
|
2157
2243
|
end
|
@@ -2225,6 +2311,9 @@ module Aws::Athena
|
|
2225
2311
|
# kms_key: "String",
|
2226
2312
|
# },
|
2227
2313
|
# expected_bucket_owner: "String",
|
2314
|
+
# acl_configuration: {
|
2315
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2316
|
+
# },
|
2228
2317
|
# },
|
2229
2318
|
# work_group: "WorkGroupName",
|
2230
2319
|
# }
|
@@ -2720,6 +2809,10 @@ module Aws::Athena
|
|
2720
2809
|
# remove_encryption_configuration: false,
|
2721
2810
|
# expected_bucket_owner: "String",
|
2722
2811
|
# remove_expected_bucket_owner: false,
|
2812
|
+
# acl_configuration: {
|
2813
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2814
|
+
# },
|
2815
|
+
# remove_acl_configuration: false,
|
2723
2816
|
# },
|
2724
2817
|
# publish_cloud_watch_metrics_enabled: false,
|
2725
2818
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2839,6 +2932,9 @@ module Aws::Athena
|
|
2839
2932
|
# kms_key: "String",
|
2840
2933
|
# },
|
2841
2934
|
# expected_bucket_owner: "String",
|
2935
|
+
# acl_configuration: {
|
2936
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
2937
|
+
# },
|
2842
2938
|
# },
|
2843
2939
|
# enforce_work_group_configuration: false,
|
2844
2940
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -2942,6 +3038,10 @@ module Aws::Athena
|
|
2942
3038
|
# remove_encryption_configuration: false,
|
2943
3039
|
# expected_bucket_owner: "String",
|
2944
3040
|
# remove_expected_bucket_owner: false,
|
3041
|
+
# acl_configuration: {
|
3042
|
+
# s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
|
3043
|
+
# },
|
3044
|
+
# remove_acl_configuration: false,
|
2945
3045
|
# },
|
2946
3046
|
# publish_cloud_watch_metrics_enabled: false,
|
2947
3047
|
# 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.52.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-02
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|