aws-sdk-athena 1.47.0 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fe9003ba1094fae9aa14881613746f812fd66d1fa884c5cd36658a139585bb0
4
- data.tar.gz: cd0573a8ce853bc3d22e220a35dea9efef7586d7bb5f08a9efd1cfc4f2e44cd8
3
+ metadata.gz: 89c891b7136886b602b201e9f40c94d12e6b21546c98beea47d5c8715abaf527
4
+ data.tar.gz: 24e6da677858fc422993801fe3fc523656b3643bc943689c8e79a3f88a291a0d
5
5
  SHA512:
6
- metadata.gz: 15aefea7187c5f80ff87e7c1ba6ba26dd2f4a43832e5d154646e9cbe81792d0170347f4f04b4804cd318c43627302f21e8eea9aac3cee57c12e8b72d43b9b542
7
- data.tar.gz: 87de8497408bff649a91198326d155ccc66281a923bf87a2c83808339af4b8eed032b2f99d932323ab32f5f9dfcea5a1b140e276772ed5923c909f5b0cadd9db
6
+ metadata.gz: dc1d0cb1f74cfe9e7d846a087cd4acc249289fdee33c7e2d743eb6b3e9ec0d1902c5060a40985af5fa79fc0d4e8010dce10a08439ca3af630a017c652464c627
7
+ data.tar.gz: f7024782538b4b37093b25f85de5fd0154fb634c978fe1c9b8d5434f0a56d14cc98e610bad0aa196ead7987c924868e08b068489c1d4982cb72a6ad8f6510c35
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.50.0 (2022-02-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.49.0 (2022-02-14)
10
+ ------------------
11
+
12
+ * Feature - This release adds a subfield, ErrorType, to the AthenaError response object in the GetQueryExecution API when a query fails.
13
+
14
+ 1.48.0 (2022-02-04)
15
+ ------------------
16
+
17
+ * 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.
18
+
4
19
  1.47.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.50.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  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
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::Athena
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -438,6 +440,7 @@ module Aws::Athena
438
440
  # resp.query_executions[0].result_configuration.output_location #=> String
439
441
  # resp.query_executions[0].result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
440
442
  # resp.query_executions[0].result_configuration.encryption_configuration.kms_key #=> String
443
+ # resp.query_executions[0].result_configuration.expected_bucket_owner #=> String
441
444
  # resp.query_executions[0].query_execution_context.database #=> String
442
445
  # resp.query_executions[0].query_execution_context.catalog #=> String
443
446
  # resp.query_executions[0].status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
@@ -445,6 +448,7 @@ module Aws::Athena
445
448
  # resp.query_executions[0].status.submission_date_time #=> Time
446
449
  # resp.query_executions[0].status.completion_date_time #=> Time
447
450
  # resp.query_executions[0].status.athena_error.error_category #=> Integer
451
+ # resp.query_executions[0].status.athena_error.error_type #=> Integer
448
452
  # resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
449
453
  # resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
450
454
  # resp.query_executions[0].statistics.data_manifest_location #=> String
@@ -703,6 +707,7 @@ module Aws::Athena
703
707
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
704
708
  # kms_key: "String",
705
709
  # },
710
+ # expected_bucket_owner: "String",
706
711
  # },
707
712
  # enforce_work_group_configuration: false,
708
713
  # publish_cloud_watch_metrics_enabled: false,
@@ -1005,6 +1010,7 @@ module Aws::Athena
1005
1010
  # resp.query_execution.result_configuration.output_location #=> String
1006
1011
  # resp.query_execution.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
1007
1012
  # resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
1013
+ # resp.query_execution.result_configuration.expected_bucket_owner #=> String
1008
1014
  # resp.query_execution.query_execution_context.database #=> String
1009
1015
  # resp.query_execution.query_execution_context.catalog #=> String
1010
1016
  # resp.query_execution.status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
@@ -1012,6 +1018,7 @@ module Aws::Athena
1012
1018
  # resp.query_execution.status.submission_date_time #=> Time
1013
1019
  # resp.query_execution.status.completion_date_time #=> Time
1014
1020
  # resp.query_execution.status.athena_error.error_category #=> Integer
1021
+ # resp.query_execution.status.athena_error.error_type #=> Integer
1015
1022
  # resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
1016
1023
  # resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
1017
1024
  # resp.query_execution.statistics.data_manifest_location #=> String
@@ -1180,6 +1187,7 @@ module Aws::Athena
1180
1187
  # resp.work_group.configuration.result_configuration.output_location #=> String
1181
1188
  # resp.work_group.configuration.result_configuration.encryption_configuration.encryption_option #=> String, one of "SSE_S3", "SSE_KMS", "CSE_KMS"
1182
1189
  # resp.work_group.configuration.result_configuration.encryption_configuration.kms_key #=> String
1190
+ # resp.work_group.configuration.result_configuration.expected_bucket_owner #=> String
1183
1191
  # resp.work_group.configuration.enforce_work_group_configuration #=> Boolean
1184
1192
  # resp.work_group.configuration.publish_cloud_watch_metrics_enabled #=> Boolean
1185
1193
  # resp.work_group.configuration.bytes_scanned_cutoff_per_query #=> Integer
@@ -1706,6 +1714,7 @@ module Aws::Athena
1706
1714
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
1707
1715
  # kms_key: "String",
1708
1716
  # },
1717
+ # expected_bucket_owner: "String",
1709
1718
  # },
1710
1719
  # work_group: "WorkGroupName",
1711
1720
  # })
@@ -1965,6 +1974,8 @@ module Aws::Athena
1965
1974
  # kms_key: "String",
1966
1975
  # },
1967
1976
  # remove_encryption_configuration: false,
1977
+ # expected_bucket_owner: "String",
1978
+ # remove_expected_bucket_owner: false,
1968
1979
  # },
1969
1980
  # publish_cloud_watch_metrics_enabled: false,
1970
1981
  # bytes_scanned_cutoff_per_query: 1,
@@ -2000,7 +2011,7 @@ module Aws::Athena
2000
2011
  params: params,
2001
2012
  config: config)
2002
2013
  context[:gem_name] = 'aws-sdk-athena'
2003
- context[:gem_version] = '1.47.0'
2014
+ context[:gem_version] = '1.50.0'
2004
2015
  Seahorse::Client::Request.new(handlers, context)
2005
2016
  end
2006
2017
 
@@ -62,6 +62,7 @@ module Aws::Athena
62
62
  ErrorCategory = Shapes::IntegerShape.new(name: 'ErrorCategory')
63
63
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
64
64
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
65
+ ErrorType = Shapes::IntegerShape.new(name: 'ErrorType')
65
66
  ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
66
67
  GetDataCatalogInput = Shapes::StructureShape.new(name: 'GetDataCatalogInput')
67
68
  GetDataCatalogOutput = Shapes::StructureShape.new(name: 'GetDataCatalogOutput')
@@ -186,6 +187,7 @@ module Aws::Athena
186
187
  datumString = Shapes::StringShape.new(name: 'datumString')
187
188
 
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"))
189
191
  AthenaError.struct_class = Types::AthenaError
190
192
 
191
193
  BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
@@ -528,12 +530,15 @@ module Aws::Athena
528
530
 
529
531
  ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
530
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"))
531
534
  ResultConfiguration.struct_class = Types::ResultConfiguration
532
535
 
533
536
  ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
534
537
  ResultConfigurationUpdates.add_member(:remove_output_location, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveOutputLocation"))
535
538
  ResultConfigurationUpdates.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
536
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"))
537
542
  ResultConfigurationUpdates.struct_class = Types::ResultConfigurationUpdates
538
543
 
539
544
  ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
@@ -28,10 +28,21 @@ module Aws::Athena
28
28
  # **3** - Unknown
29
29
  # @return [Integer]
30
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
+ #
31
41
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/AthenaError AWS API Documentation
32
42
  #
33
43
  class AthenaError < Struct.new(
34
- :error_category)
44
+ :error_category,
45
+ :error_type)
35
46
  SENSITIVE = []
36
47
  include Aws::Structure
37
48
  end
@@ -422,6 +433,7 @@ module Aws::Athena
422
433
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
423
434
  # kms_key: "String",
424
435
  # },
436
+ # expected_bucket_owner: "String",
425
437
  # },
426
438
  # enforce_work_group_configuration: false,
427
439
  # publish_cloud_watch_metrics_enabled: false,
@@ -1960,6 +1972,7 @@ module Aws::Athena
1960
1972
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
1961
1973
  # kms_key: "String",
1962
1974
  # },
1975
+ # expected_bucket_owner: "String",
1963
1976
  # }
1964
1977
  #
1965
1978
  # @!attribute [rw] output_location
@@ -1994,11 +2007,33 @@ module Aws::Athena
1994
2007
  # [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
1995
2008
  # @return [Types::EncryptionConfiguration]
1996
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
+ #
1997
2031
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfiguration AWS API Documentation
1998
2032
  #
1999
2033
  class ResultConfiguration < Struct.new(
2000
2034
  :output_location,
2001
- :encryption_configuration)
2035
+ :encryption_configuration,
2036
+ :expected_bucket_owner)
2002
2037
  SENSITIVE = []
2003
2038
  include Aws::Structure
2004
2039
  end
@@ -2017,6 +2052,8 @@ module Aws::Athena
2017
2052
  # kms_key: "String",
2018
2053
  # },
2019
2054
  # remove_encryption_configuration: false,
2055
+ # expected_bucket_owner: "String",
2056
+ # remove_expected_bucket_owner: false,
2020
2057
  # }
2021
2058
  #
2022
2059
  # @!attribute [rw] output_location
@@ -2070,13 +2107,51 @@ module Aws::Athena
2070
2107
  # [1]: https://docs.aws.amazon.com/athena/latest/ug/workgroups-settings-override.html
2071
2108
  # @return [Boolean]
2072
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
+ #
2073
2146
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultConfigurationUpdates AWS API Documentation
2074
2147
  #
2075
2148
  class ResultConfigurationUpdates < Struct.new(
2076
2149
  :output_location,
2077
2150
  :remove_output_location,
2078
2151
  :encryption_configuration,
2079
- :remove_encryption_configuration)
2152
+ :remove_encryption_configuration,
2153
+ :expected_bucket_owner,
2154
+ :remove_expected_bucket_owner)
2080
2155
  SENSITIVE = []
2081
2156
  include Aws::Structure
2082
2157
  end
@@ -2149,6 +2224,7 @@ module Aws::Athena
2149
2224
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2150
2225
  # kms_key: "String",
2151
2226
  # },
2227
+ # expected_bucket_owner: "String",
2152
2228
  # },
2153
2229
  # work_group: "WorkGroupName",
2154
2230
  # }
@@ -2601,6 +2677,8 @@ module Aws::Athena
2601
2677
  # kms_key: "String",
2602
2678
  # },
2603
2679
  # remove_encryption_configuration: false,
2680
+ # expected_bucket_owner: "String",
2681
+ # remove_expected_bucket_owner: false,
2604
2682
  # },
2605
2683
  # publish_cloud_watch_metrics_enabled: false,
2606
2684
  # bytes_scanned_cutoff_per_query: 1,
@@ -2719,6 +2797,7 @@ module Aws::Athena
2719
2797
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2720
2798
  # kms_key: "String",
2721
2799
  # },
2800
+ # expected_bucket_owner: "String",
2722
2801
  # },
2723
2802
  # enforce_work_group_configuration: false,
2724
2803
  # publish_cloud_watch_metrics_enabled: false,
@@ -2820,6 +2899,8 @@ module Aws::Athena
2820
2899
  # kms_key: "String",
2821
2900
  # },
2822
2901
  # remove_encryption_configuration: false,
2902
+ # expected_bucket_owner: "String",
2903
+ # remove_expected_bucket_owner: false,
2823
2904
  # },
2824
2905
  # publish_cloud_watch_metrics_enabled: false,
2825
2906
  # bytes_scanned_cutoff_per_query: 1,
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-athena/customizations'
48
48
  # @!group service
49
49
  module Aws::Athena
50
50
 
51
- GEM_VERSION = '1.47.0'
51
+ GEM_VERSION = '1.50.0'
52
52
 
53
53
  end
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.47.0
4
+ version: 1.50.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-03 00:00:00.000000000 Z
11
+ date: 2022-02-24 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.126.0
22
+ version: 3.127.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.126.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement