aws-sdk-athena 1.45.0 → 1.49.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +20 -3
- data/lib/aws-sdk-athena/client_api.rb +11 -0
- data/lib/aws-sdk-athena/types.rb +130 -8
- data/lib/aws-sdk-athena.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '064385639b14b6d34b48798e2ca0eafe9c4d20dc2b6bc71c39a72a525f8fdf15'
|
4
|
+
data.tar.gz: f03200ae7b442ef16ffaf8cfc44ec52af450a6cee9d8de1b215b8fc44cfeb0d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ba29160a4fbd6948d67b9edefa5270a577173d0fc8284cc823d96fc14470c87d3ae990dcf3e4b6581445d21abdc64311c963cee0493e47694ac084562db821
|
7
|
+
data.tar.gz: 1e54e055b72a31165681ab9855074b28cddab73039132b010cffe25634c2697f130262da576ff03acb78ffbecfd34aad3024536d3d3a3537c294aaf37fc95027
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2022-02-14)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds a subfield, ErrorType, to the AthenaError response object in the GetQueryExecution API when a query fails.
|
8
|
+
|
9
|
+
1.48.0 (2022-02-04)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - You can now optionally specify the account ID that you expect to be the owner of your query results output location bucket in Athena. If the account ID of the query results bucket owner does not match the specified account ID, attempts to output to the bucket will fail with an S3 permissions error.
|
13
|
+
|
14
|
+
1.47.0 (2022-02-03)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.46.0 (2022-01-28)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds a field, AthenaError, to the GetQueryExecution response object when a query fails.
|
23
|
+
|
4
24
|
1.45.0 (2021-12-21)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
@@ -28,6 +28,7 @@ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
30
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
|
+
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
31
32
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
32
33
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
33
34
|
|
@@ -75,6 +76,7 @@ module Aws::Athena
|
|
75
76
|
add_plugin(Aws::Plugins::TransferEncoding)
|
76
77
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
78
|
add_plugin(Aws::Plugins::DefaultsMode)
|
79
|
+
add_plugin(Aws::Plugins::RecursionDetection)
|
78
80
|
add_plugin(Aws::Plugins::SignatureV4)
|
79
81
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
80
82
|
|
@@ -436,12 +438,15 @@ module Aws::Athena
|
|
436
438
|
# resp.query_executions[0].result_configuration.output_location #=> String
|
437
439
|
# resp.query_executions[0].result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
438
440
|
# resp.query_executions[0].result_configuration.encryption_configuration.kms_key #=> String
|
441
|
+
# resp.query_executions[0].result_configuration.expected_bucket_owner #=> String
|
439
442
|
# resp.query_executions[0].query_execution_context.database #=> String
|
440
443
|
# resp.query_executions[0].query_execution_context.catalog #=> String
|
441
444
|
# resp.query_executions[0].status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
442
445
|
# resp.query_executions[0].status.state_change_reason #=> String
|
443
446
|
# resp.query_executions[0].status.submission_date_time #=> Time
|
444
447
|
# resp.query_executions[0].status.completion_date_time #=> Time
|
448
|
+
# resp.query_executions[0].status.athena_error.error_category #=> Integer
|
449
|
+
# resp.query_executions[0].status.athena_error.error_type #=> Integer
|
445
450
|
# resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
|
446
451
|
# resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
|
447
452
|
# resp.query_executions[0].statistics.data_manifest_location #=> String
|
@@ -473,7 +478,9 @@ module Aws::Athena
|
|
473
478
|
# @option params [required, String] :name
|
474
479
|
# The name of the data catalog to create. The catalog name must be
|
475
480
|
# unique for the Amazon Web Services account and can use a maximum of
|
476
|
-
#
|
481
|
+
# 127 alphanumeric, underscore, at sign, or hyphen characters. The
|
482
|
+
# remainder of the length constraint of 256 is reserved for use by
|
483
|
+
# Athena.
|
477
484
|
#
|
478
485
|
# @option params [required, String] :type
|
479
486
|
# The type of data catalog to create: `LAMBDA` for a federated catalog,
|
@@ -698,6 +705,7 @@ module Aws::Athena
|
|
698
705
|
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
699
706
|
# kms_key: "String",
|
700
707
|
# },
|
708
|
+
# expected_bucket_owner: "String",
|
701
709
|
# },
|
702
710
|
# enforce_work_group_configuration: false,
|
703
711
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -1000,12 +1008,15 @@ module Aws::Athena
|
|
1000
1008
|
# resp.query_execution.result_configuration.output_location #=> String
|
1001
1009
|
# resp.query_execution.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1002
1010
|
# resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
|
1011
|
+
# resp.query_execution.result_configuration.expected_bucket_owner #=> String
|
1003
1012
|
# resp.query_execution.query_execution_context.database #=> String
|
1004
1013
|
# resp.query_execution.query_execution_context.catalog #=> String
|
1005
1014
|
# resp.query_execution.status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
|
1006
1015
|
# resp.query_execution.status.state_change_reason #=> String
|
1007
1016
|
# resp.query_execution.status.submission_date_time #=> Time
|
1008
1017
|
# resp.query_execution.status.completion_date_time #=> Time
|
1018
|
+
# resp.query_execution.status.athena_error.error_category #=> Integer
|
1019
|
+
# resp.query_execution.status.athena_error.error_type #=> Integer
|
1009
1020
|
# resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
|
1010
1021
|
# resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
|
1011
1022
|
# resp.query_execution.statistics.data_manifest_location #=> String
|
@@ -1174,6 +1185,7 @@ module Aws::Athena
|
|
1174
1185
|
# resp.work_group.configuration.result_configuration.output_location #=> String
|
1175
1186
|
# resp.work_group.configuration.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
|
1176
1187
|
# resp.work_group.configuration.result_configuration.encryption_configuration.kms_key #=> String
|
1188
|
+
# resp.work_group.configuration.result_configuration.expected_bucket_owner #=> String
|
1177
1189
|
# resp.work_group.configuration.enforce_work_group_configuration #=> Boolean
|
1178
1190
|
# resp.work_group.configuration.publish_cloud_watch_metrics_enabled #=> Boolean
|
1179
1191
|
# resp.work_group.configuration.bytes_scanned_cutoff_per_query #=> Integer
|
@@ -1700,6 +1712,7 @@ module Aws::Athena
|
|
1700
1712
|
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
1701
1713
|
# kms_key: "String",
|
1702
1714
|
# },
|
1715
|
+
# expected_bucket_owner: "String",
|
1703
1716
|
# },
|
1704
1717
|
# work_group: "WorkGroupName",
|
1705
1718
|
# })
|
@@ -1831,7 +1844,9 @@ module Aws::Athena
|
|
1831
1844
|
# @option params [required, String] :name
|
1832
1845
|
# The name of the data catalog to update. The catalog name must be
|
1833
1846
|
# unique for the Amazon Web Services account and can use a maximum of
|
1834
|
-
#
|
1847
|
+
# 127 alphanumeric, underscore, at sign, or hyphen characters. The
|
1848
|
+
# remainder of the length constraint of 256 is reserved for use by
|
1849
|
+
# Athena.
|
1835
1850
|
#
|
1836
1851
|
# @option params [required, String] :type
|
1837
1852
|
# Specifies the type of data catalog to update. Specify `LAMBDA` for a
|
@@ -1957,6 +1972,8 @@ module Aws::Athena
|
|
1957
1972
|
# kms_key: "String",
|
1958
1973
|
# },
|
1959
1974
|
# remove_encryption_configuration: false,
|
1975
|
+
# expected_bucket_owner: "String",
|
1976
|
+
# remove_expected_bucket_owner: false,
|
1960
1977
|
# },
|
1961
1978
|
# publish_cloud_watch_metrics_enabled: false,
|
1962
1979
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -1992,7 +2009,7 @@ module Aws::Athena
|
|
1992
2009
|
params: params,
|
1993
2010
|
config: config)
|
1994
2011
|
context[:gem_name] = 'aws-sdk-athena'
|
1995
|
-
context[:gem_version] = '1.
|
2012
|
+
context[:gem_version] = '1.49.0'
|
1996
2013
|
Seahorse::Client::Request.new(handlers, context)
|
1997
2014
|
end
|
1998
2015
|
|
@@ -14,6 +14,7 @@ module Aws::Athena
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
16
|
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
17
|
+
AthenaError = Shapes::StructureShape.new(name: 'AthenaError')
|
17
18
|
BatchGetNamedQueryInput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryInput')
|
18
19
|
BatchGetNamedQueryOutput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryOutput')
|
19
20
|
BatchGetQueryExecutionInput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionInput')
|
@@ -58,8 +59,10 @@ module Aws::Athena
|
|
58
59
|
EncryptionOption = Shapes::StringShape.new(name: 'EncryptionOption')
|
59
60
|
EngineVersion = Shapes::StructureShape.new(name: 'EngineVersion')
|
60
61
|
EngineVersionsList = Shapes::ListShape.new(name: 'EngineVersionsList')
|
62
|
+
ErrorCategory = Shapes::IntegerShape.new(name: 'ErrorCategory')
|
61
63
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
62
64
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
65
|
+
ErrorType = Shapes::IntegerShape.new(name: 'ErrorType')
|
63
66
|
ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
|
64
67
|
GetDataCatalogInput = Shapes::StructureShape.new(name: 'GetDataCatalogInput')
|
65
68
|
GetDataCatalogOutput = Shapes::StructureShape.new(name: 'GetDataCatalogOutput')
|
@@ -183,6 +186,10 @@ module Aws::Athena
|
|
183
186
|
datumList = Shapes::ListShape.new(name: 'datumList')
|
184
187
|
datumString = Shapes::StringShape.new(name: 'datumString')
|
185
188
|
|
189
|
+
AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
|
190
|
+
AthenaError.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorType"))
|
191
|
+
AthenaError.struct_class = Types::AthenaError
|
192
|
+
|
186
193
|
BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
|
187
194
|
BatchGetNamedQueryInput.struct_class = Types::BatchGetNamedQueryInput
|
188
195
|
|
@@ -514,6 +521,7 @@ module Aws::Athena
|
|
514
521
|
QueryExecutionStatus.add_member(:state_change_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateChangeReason"))
|
515
522
|
QueryExecutionStatus.add_member(:submission_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "SubmissionDateTime"))
|
516
523
|
QueryExecutionStatus.add_member(:completion_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "CompletionDateTime"))
|
524
|
+
QueryExecutionStatus.add_member(:athena_error, Shapes::ShapeRef.new(shape: AthenaError, location_name: "AthenaError"))
|
517
525
|
QueryExecutionStatus.struct_class = Types::QueryExecutionStatus
|
518
526
|
|
519
527
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
@@ -522,12 +530,15 @@ module Aws::Athena
|
|
522
530
|
|
523
531
|
ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
524
532
|
ResultConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
|
533
|
+
ResultConfiguration.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
525
534
|
ResultConfiguration.struct_class = Types::ResultConfiguration
|
526
535
|
|
527
536
|
ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
|
528
537
|
ResultConfigurationUpdates.add_member(:remove_output_location, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveOutputLocation"))
|
529
538
|
ResultConfigurationUpdates.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
|
530
539
|
ResultConfigurationUpdates.add_member(:remove_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveEncryptionConfiguration"))
|
540
|
+
ResultConfigurationUpdates.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
|
541
|
+
ResultConfigurationUpdates.add_member(:remove_expected_bucket_owner, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveExpectedBucketOwner"))
|
531
542
|
ResultConfigurationUpdates.struct_class = Types::ResultConfigurationUpdates
|
532
543
|
|
533
544
|
ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -10,6 +10,43 @@
|
|
10
10
|
module Aws::Athena
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# Provides information about an Athena query error. The `AthenaError`
|
14
|
+
# feature provides standardized error information to help you understand
|
15
|
+
# failed queries and take steps after a query failure occurs.
|
16
|
+
# `AthenaError` includes an `ErrorCategory` field that specifies whether
|
17
|
+
# the cause of the failed query is due to system error, user error, or
|
18
|
+
# unknown error.
|
19
|
+
#
|
20
|
+
# @!attribute [rw] error_category
|
21
|
+
# An integer value that specifies the category of a query failure
|
22
|
+
# error. The following list shows the category for each integer value.
|
23
|
+
#
|
24
|
+
# **1** - System
|
25
|
+
#
|
26
|
+
# **2** - User
|
27
|
+
#
|
28
|
+
# **3** - Unknown
|
29
|
+
# @return [Integer]
|
30
|
+
#
|
31
|
+
# @!attribute [rw] error_type
|
32
|
+
# An integer value that provides specific information about an Athena
|
33
|
+
# query error. For the meaning of specific values, see the [Error Type
|
34
|
+
# Reference][1] in the *Amazon Athena User Guide*.
|
35
|
+
#
|
36
|
+
#
|
37
|
+
#
|
38
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/error-reference.html#error-reference-error-type-reference
|
39
|
+
# @return [Integer]
|
40
|
+
#
|
41
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/AthenaError AWS API Documentation
|
42
|
+
#
|
43
|
+
class AthenaError < Struct.new(
|
44
|
+
:error_category,
|
45
|
+
:error_type)
|
46
|
+
SENSITIVE = []
|
47
|
+
include Aws::Structure
|
48
|
+
end
|
49
|
+
|
13
50
|
# @note When making an API call, you may pass BatchGetNamedQueryInput
|
14
51
|
# data as a hash:
|
15
52
|
#
|
@@ -188,7 +225,9 @@ module Aws::Athena
|
|
188
225
|
# @!attribute [rw] name
|
189
226
|
# The name of the data catalog to create. The catalog name must be
|
190
227
|
# unique for the Amazon Web Services account and can use a maximum of
|
191
|
-
#
|
228
|
+
# 127 alphanumeric, underscore, at sign, or hyphen characters. The
|
229
|
+
# remainder of the length constraint of 256 is reserved for use by
|
230
|
+
# Athena.
|
192
231
|
# @return [String]
|
193
232
|
#
|
194
233
|
# @!attribute [rw] type
|
@@ -394,6 +433,7 @@ module Aws::Athena
|
|
394
433
|
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
395
434
|
# kms_key: "String",
|
396
435
|
# },
|
436
|
+
# expected_bucket_owner: "String",
|
397
437
|
# },
|
398
438
|
# enforce_work_group_configuration: false,
|
399
439
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -458,8 +498,10 @@ module Aws::Athena
|
|
458
498
|
#
|
459
499
|
# @!attribute [rw] name
|
460
500
|
# The name of the data catalog. The catalog name must be unique for
|
461
|
-
# the Amazon Web Services account and can use a maximum of
|
462
|
-
# alphanumeric, underscore, at sign, or hyphen characters.
|
501
|
+
# the Amazon Web Services account and can use a maximum of 127
|
502
|
+
# alphanumeric, underscore, at sign, or hyphen characters. The
|
503
|
+
# remainder of the length constraint of 256 is reserved for use by
|
504
|
+
# Athena.
|
463
505
|
# @return [String]
|
464
506
|
#
|
465
507
|
# @!attribute [rw] description
|
@@ -527,7 +569,11 @@ module Aws::Athena
|
|
527
569
|
# and type.
|
528
570
|
#
|
529
571
|
# @!attribute [rw] catalog_name
|
530
|
-
# The name of the data catalog.
|
572
|
+
# The name of the data catalog. The catalog name is unique for the
|
573
|
+
# Amazon Web Services account and can use a maximum of 127
|
574
|
+
# alphanumeric, underscore, at sign, or hyphen characters. The
|
575
|
+
# remainder of the length constraint of 256 is reserved for use by
|
576
|
+
# Athena.
|
531
577
|
# @return [String]
|
532
578
|
#
|
533
579
|
# @!attribute [rw] type
|
@@ -1879,13 +1925,18 @@ module Aws::Athena
|
|
1879
1925
|
# The date and time that the query completed.
|
1880
1926
|
# @return [Time]
|
1881
1927
|
#
|
1928
|
+
# @!attribute [rw] athena_error
|
1929
|
+
# Provides information about an Athena query error.
|
1930
|
+
# @return [Types::AthenaError]
|
1931
|
+
#
|
1882
1932
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatus AWS API Documentation
|
1883
1933
|
#
|
1884
1934
|
class QueryExecutionStatus < Struct.new(
|
1885
1935
|
:state,
|
1886
1936
|
:state_change_reason,
|
1887
1937
|
:submission_date_time,
|
1888
|
-
:completion_date_time
|
1938
|
+
:completion_date_time,
|
1939
|
+
:athena_error)
|
1889
1940
|
SENSITIVE = []
|
1890
1941
|
include Aws::Structure
|
1891
1942
|
end
|
@@ -1921,6 +1972,7 @@ module Aws::Athena
|
|
1921
1972
|
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
1922
1973
|
# kms_key: "String",
|
1923
1974
|
# },
|
1975
|
+
# expected_bucket_owner: "String",
|
1924
1976
|
# }
|
1925
1977
|
#
|
1926
1978
|
# @!attribute [rw] output_location
|
@@ -1955,11 +2007,33 @@ module Aws::Athena
|
|
1955
2007
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
1956
2008
|
# @return [Types::EncryptionConfiguration]
|
1957
2009
|
#
|
2010
|
+
# @!attribute [rw] expected_bucket_owner
|
2011
|
+
# The Amazon Web Services account ID that you expect to be the owner
|
2012
|
+
# of the Amazon S3 bucket specified by
|
2013
|
+
# ResultConfiguration$OutputLocation. If set, Athena uses the value
|
2014
|
+
# for `ExpectedBucketOwner` when it makes Amazon S3 calls to your
|
2015
|
+
# specified output location. If the `ExpectedBucketOwner` Amazon Web
|
2016
|
+
# Services account ID does not match the actual owner of the Amazon S3
|
2017
|
+
# bucket, the call fails with a permissions error.
|
2018
|
+
#
|
2019
|
+
# This is a client-side setting. If workgroup settings override
|
2020
|
+
# client-side settings, then the query uses the `ExpectedBucketOwner`
|
2021
|
+
# setting that is specified for the workgroup, and also uses the
|
2022
|
+
# location for storing query results specified in the workgroup. See
|
2023
|
+
# WorkGroupConfiguration$EnforceWorkGroupConfiguration and [Workgroup
|
2024
|
+
# Settings Override Client-Side Settings][1].
|
2025
|
+
#
|
2026
|
+
#
|
2027
|
+
#
|
2028
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2029
|
+
# @return [String]
|
2030
|
+
#
|
1958
2031
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration AWS API Documentation
|
1959
2032
|
#
|
1960
2033
|
class ResultConfiguration < Struct.new(
|
1961
2034
|
:output_location,
|
1962
|
-
:encryption_configuration
|
2035
|
+
:encryption_configuration,
|
2036
|
+
:expected_bucket_owner)
|
1963
2037
|
SENSITIVE = []
|
1964
2038
|
include Aws::Structure
|
1965
2039
|
end
|
@@ -1978,6 +2052,8 @@ module Aws::Athena
|
|
1978
2052
|
# kms_key: "String",
|
1979
2053
|
# },
|
1980
2054
|
# remove_encryption_configuration: false,
|
2055
|
+
# expected_bucket_owner: "String",
|
2056
|
+
# remove_expected_bucket_owner: false,
|
1981
2057
|
# }
|
1982
2058
|
#
|
1983
2059
|
# @!attribute [rw] output_location
|
@@ -2031,13 +2107,51 @@ module Aws::Athena
|
|
2031
2107
|
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2032
2108
|
# @return [Boolean]
|
2033
2109
|
#
|
2110
|
+
# @!attribute [rw] expected_bucket_owner
|
2111
|
+
# The Amazon Web Services account ID that you expect to be the owner
|
2112
|
+
# of the Amazon S3 bucket specified by
|
2113
|
+
# ResultConfiguration$OutputLocation. If set, Athena uses the value
|
2114
|
+
# for `ExpectedBucketOwner` when it makes Amazon S3 calls to your
|
2115
|
+
# specified output location. If the `ExpectedBucketOwner` Amazon Web
|
2116
|
+
# Services account ID does not match the actual owner of the Amazon S3
|
2117
|
+
# bucket, the call fails with a permissions error.
|
2118
|
+
#
|
2119
|
+
# If workgroup settings override client-side settings, then the query
|
2120
|
+
# uses the `ExpectedBucketOwner` setting that is specified for the
|
2121
|
+
# workgroup, and also uses the location for storing query results
|
2122
|
+
# specified in the workgroup. See
|
2123
|
+
# WorkGroupConfiguration$EnforceWorkGroupConfiguration and [Workgroup
|
2124
|
+
# Settings Override Client-Side Settings][1].
|
2125
|
+
#
|
2126
|
+
#
|
2127
|
+
#
|
2128
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2129
|
+
# @return [String]
|
2130
|
+
#
|
2131
|
+
# @!attribute [rw] remove_expected_bucket_owner
|
2132
|
+
# If set to "true", removes the Amazon Web Services account ID
|
2133
|
+
# previously specified for ResultConfiguration$ExpectedBucketOwner. If
|
2134
|
+
# set to "false" or not set, and a value is present in the
|
2135
|
+
# `ExpectedBucketOwner` in `ResultConfigurationUpdates` (the
|
2136
|
+
# client-side setting), the `ExpectedBucketOwner` in the workgroup's
|
2137
|
+
# `ResultConfiguration` is updated with the new value. For more
|
2138
|
+
# information, see [Workgroup Settings Override Client-Side
|
2139
|
+
# Settings][1].
|
2140
|
+
#
|
2141
|
+
#
|
2142
|
+
#
|
2143
|
+
# [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
|
2144
|
+
# @return [Boolean]
|
2145
|
+
#
|
2034
2146
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfigurationUpdates AWS API Documentation
|
2035
2147
|
#
|
2036
2148
|
class ResultConfigurationUpdates < Struct.new(
|
2037
2149
|
:output_location,
|
2038
2150
|
:remove_output_location,
|
2039
2151
|
:encryption_configuration,
|
2040
|
-
:remove_encryption_configuration
|
2152
|
+
:remove_encryption_configuration,
|
2153
|
+
:expected_bucket_owner,
|
2154
|
+
:remove_expected_bucket_owner)
|
2041
2155
|
SENSITIVE = []
|
2042
2156
|
include Aws::Structure
|
2043
2157
|
end
|
@@ -2110,6 +2224,7 @@ module Aws::Athena
|
|
2110
2224
|
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
2111
2225
|
# kms_key: "String",
|
2112
2226
|
# },
|
2227
|
+
# expected_bucket_owner: "String",
|
2113
2228
|
# },
|
2114
2229
|
# work_group: "WorkGroupName",
|
2115
2230
|
# }
|
@@ -2447,7 +2562,9 @@ module Aws::Athena
|
|
2447
2562
|
# @!attribute [rw] name
|
2448
2563
|
# The name of the data catalog to update. The catalog name must be
|
2449
2564
|
# unique for the Amazon Web Services account and can use a maximum of
|
2450
|
-
#
|
2565
|
+
# 127 alphanumeric, underscore, at sign, or hyphen characters. The
|
2566
|
+
# remainder of the length constraint of 256 is reserved for use by
|
2567
|
+
# Athena.
|
2451
2568
|
# @return [String]
|
2452
2569
|
#
|
2453
2570
|
# @!attribute [rw] type
|
@@ -2560,6 +2677,8 @@ module Aws::Athena
|
|
2560
2677
|
# kms_key: "String",
|
2561
2678
|
# },
|
2562
2679
|
# remove_encryption_configuration: false,
|
2680
|
+
# expected_bucket_owner: "String",
|
2681
|
+
# remove_expected_bucket_owner: false,
|
2563
2682
|
# },
|
2564
2683
|
# publish_cloud_watch_metrics_enabled: false,
|
2565
2684
|
# bytes_scanned_cutoff_per_query: 1,
|
@@ -2678,6 +2797,7 @@ module Aws::Athena
|
|
2678
2797
|
# encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
|
2679
2798
|
# kms_key: "String",
|
2680
2799
|
# },
|
2800
|
+
# expected_bucket_owner: "String",
|
2681
2801
|
# },
|
2682
2802
|
# enforce_work_group_configuration: false,
|
2683
2803
|
# publish_cloud_watch_metrics_enabled: false,
|
@@ -2779,6 +2899,8 @@ module Aws::Athena
|
|
2779
2899
|
# kms_key: "String",
|
2780
2900
|
# },
|
2781
2901
|
# remove_encryption_configuration: false,
|
2902
|
+
# expected_bucket_owner: "String",
|
2903
|
+
# remove_expected_bucket_owner: false,
|
2782
2904
|
# },
|
2783
2905
|
# publish_cloud_watch_metrics_enabled: false,
|
2784
2906
|
# 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.49.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:
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.126.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.126.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|