aws-sdk-athena 1.43.0 → 1.47.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: 7ef158051b50424a9170b396c0bdfd5485c729d5ed4821d181795c534db8cfd3
4
- data.tar.gz: b674f760fde2c7559fc759a4e6983bd57f7dfa6971c8b519deaa77be7f538a94
3
+ metadata.gz: 2fe9003ba1094fae9aa14881613746f812fd66d1fa884c5cd36658a139585bb0
4
+ data.tar.gz: cd0573a8ce853bc3d22e220a35dea9efef7586d7bb5f08a9efd1cfc4f2e44cd8
5
5
  SHA512:
6
- metadata.gz: 58ac85c0383ca10abb1fcf892e75ecba57409c7a412c812fca230f84d923b21790dece12ff14177a0906c42fe9246bf07c29de1a9fd0dae7aee81e15f09ddff4
7
- data.tar.gz: 0d97d5bcca7cd532f2ab58b3ba9acc5a84a853b1f5329e33a8556eff769f197164862ac3e78b2f24aa9e228083a129fdc5aa20d6a0ba9f3c8b6dbed1abd67fec
6
+ metadata.gz: 15aefea7187c5f80ff87e7c1ba6ba26dd2f4a43832e5d154646e9cbe81792d0170347f4f04b4804cd318c43627302f21e8eea9aac3cee57c12e8b72d43b9b542
7
+ data.tar.gz: 87de8497408bff649a91198326d155ccc66281a923bf87a2c83808339af4b8eed032b2f99d932323ab32f5f9dfcea5a1b140e276772ed5923c909f5b0cadd9db
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2022-02-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.46.0 (2022-01-28)
10
+ ------------------
11
+
12
+ * Feature - This release adds a field, AthenaError, to the GetQueryExecution response object when a query fails.
13
+
14
+ 1.45.0 (2021-12-21)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.44.0 (2021-11-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.43.0 (2021-11-04)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.43.0
1
+ 1.47.0
@@ -27,6 +27,8 @@ 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/defaults_mode.rb'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::Athena
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
82
 
@@ -119,7 +123,9 @@ module Aws::Athena
119
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
124
  # are very aggressive. Construct and pass an instance of
121
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
123
129
  #
124
130
  # @option options [required, String] :region
125
131
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +179,10 @@ module Aws::Athena
173
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
180
  # a clock skew correction and retry requests with skewed client clocks.
175
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
176
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
187
  # Set to true to disable SDK automatically adding host prefix
178
188
  # to default service endpoint when available.
@@ -305,7 +315,7 @@ module Aws::Athena
305
315
  # seconds to wait when opening a HTTP session before raising a
306
316
  # `Timeout::Error`.
307
317
  #
308
- # @option options [Integer] :http_read_timeout (60) The default
318
+ # @option options [Float] :http_read_timeout (60) The default
309
319
  # number of seconds to wait for response data. This value can
310
320
  # safely be set per-request on the session.
311
321
  #
@@ -321,6 +331,9 @@ module Aws::Athena
321
331
  # disables this behaviour. This value can safely be set per
322
332
  # request on the session.
323
333
  #
334
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
335
+ # in seconds.
336
+ #
324
337
  # @option options [Boolean] :http_wire_trace (false) When `true`,
325
338
  # HTTP debug output will be sent to the `:logger`.
326
339
  #
@@ -431,6 +444,7 @@ module Aws::Athena
431
444
  # resp.query_executions[0].status.state_change_reason #=> String
432
445
  # resp.query_executions[0].status.submission_date_time #=> Time
433
446
  # resp.query_executions[0].status.completion_date_time #=> Time
447
+ # resp.query_executions[0].status.athena_error.error_category #=> Integer
434
448
  # resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
435
449
  # resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
436
450
  # resp.query_executions[0].statistics.data_manifest_location #=> String
@@ -462,7 +476,9 @@ module Aws::Athena
462
476
  # @option params [required, String] :name
463
477
  # The name of the data catalog to create. The catalog name must be
464
478
  # unique for the Amazon Web Services account and can use a maximum of
465
- # 128 alphanumeric, underscore, at sign, or hyphen characters.
479
+ # 127 alphanumeric, underscore, at sign, or hyphen characters. The
480
+ # remainder of the length constraint of 256 is reserved for use by
481
+ # Athena.
466
482
  #
467
483
  # @option params [required, String] :type
468
484
  # The type of data catalog to create: `LAMBDA` for a federated catalog,
@@ -995,6 +1011,7 @@ module Aws::Athena
995
1011
  # resp.query_execution.status.state_change_reason #=> String
996
1012
  # resp.query_execution.status.submission_date_time #=> Time
997
1013
  # resp.query_execution.status.completion_date_time #=> Time
1014
+ # resp.query_execution.status.athena_error.error_category #=> Integer
998
1015
  # resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
999
1016
  # resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
1000
1017
  # resp.query_execution.statistics.data_manifest_location #=> String
@@ -1820,7 +1837,9 @@ module Aws::Athena
1820
1837
  # @option params [required, String] :name
1821
1838
  # The name of the data catalog to update. The catalog name must be
1822
1839
  # unique for the Amazon Web Services account and can use a maximum of
1823
- # 128 alphanumeric, underscore, at sign, or hyphen characters.
1840
+ # 127 alphanumeric, underscore, at sign, or hyphen characters. The
1841
+ # remainder of the length constraint of 256 is reserved for use by
1842
+ # Athena.
1824
1843
  #
1825
1844
  # @option params [required, String] :type
1826
1845
  # Specifies the type of data catalog to update. Specify `LAMBDA` for a
@@ -1981,7 +2000,7 @@ module Aws::Athena
1981
2000
  params: params,
1982
2001
  config: config)
1983
2002
  context[:gem_name] = 'aws-sdk-athena'
1984
- context[:gem_version] = '1.43.0'
2003
+ context[:gem_version] = '1.47.0'
1985
2004
  Seahorse::Client::Request.new(handlers, context)
1986
2005
  end
1987
2006
 
@@ -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,6 +59,7 @@ 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')
63
65
  ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
@@ -183,6 +185,9 @@ module Aws::Athena
183
185
  datumList = Shapes::ListShape.new(name: 'datumList')
184
186
  datumString = Shapes::StringShape.new(name: 'datumString')
185
187
 
188
+ AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
189
+ AthenaError.struct_class = Types::AthenaError
190
+
186
191
  BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
187
192
  BatchGetNamedQueryInput.struct_class = Types::BatchGetNamedQueryInput
188
193
 
@@ -514,6 +519,7 @@ module Aws::Athena
514
519
  QueryExecutionStatus.add_member(:state_change_reason, Shapes::ShapeRef.new(shape: String, location_name: "StateChangeReason"))
515
520
  QueryExecutionStatus.add_member(:submission_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "SubmissionDateTime"))
516
521
  QueryExecutionStatus.add_member(:completion_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "CompletionDateTime"))
522
+ QueryExecutionStatus.add_member(:athena_error, Shapes::ShapeRef.new(shape: AthenaError, location_name: "AthenaError"))
517
523
  QueryExecutionStatus.struct_class = Types::QueryExecutionStatus
518
524
 
519
525
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
@@ -10,6 +10,32 @@
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
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/AthenaError AWS API Documentation
32
+ #
33
+ class AthenaError < Struct.new(
34
+ :error_category)
35
+ SENSITIVE = []
36
+ include Aws::Structure
37
+ end
38
+
13
39
  # @note When making an API call, you may pass BatchGetNamedQueryInput
14
40
  # data as a hash:
15
41
  #
@@ -188,7 +214,9 @@ module Aws::Athena
188
214
  # @!attribute [rw] name
189
215
  # The name of the data catalog to create. The catalog name must be
190
216
  # unique for the Amazon Web Services account and can use a maximum of
191
- # 128 alphanumeric, underscore, at sign, or hyphen characters.
217
+ # 127 alphanumeric, underscore, at sign, or hyphen characters. The
218
+ # remainder of the length constraint of 256 is reserved for use by
219
+ # Athena.
192
220
  # @return [String]
193
221
  #
194
222
  # @!attribute [rw] type
@@ -458,8 +486,10 @@ module Aws::Athena
458
486
  #
459
487
  # @!attribute [rw] name
460
488
  # 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 128
462
- # alphanumeric, underscore, at sign, or hyphen characters.
489
+ # the Amazon Web Services account and can use a maximum of 127
490
+ # alphanumeric, underscore, at sign, or hyphen characters. The
491
+ # remainder of the length constraint of 256 is reserved for use by
492
+ # Athena.
463
493
  # @return [String]
464
494
  #
465
495
  # @!attribute [rw] description
@@ -527,7 +557,11 @@ module Aws::Athena
527
557
  # and type.
528
558
  #
529
559
  # @!attribute [rw] catalog_name
530
- # The name of the data catalog.
560
+ # The name of the data catalog. The catalog name is unique for the
561
+ # Amazon Web Services account and can use a maximum of 127
562
+ # alphanumeric, underscore, at sign, or hyphen characters. The
563
+ # remainder of the length constraint of 256 is reserved for use by
564
+ # Athena.
531
565
  # @return [String]
532
566
  #
533
567
  # @!attribute [rw] type
@@ -1879,13 +1913,18 @@ module Aws::Athena
1879
1913
  # The date and time that the query completed.
1880
1914
  # @return [Time]
1881
1915
  #
1916
+ # @!attribute [rw] athena_error
1917
+ # Provides information about an Athena query error.
1918
+ # @return [Types::AthenaError]
1919
+ #
1882
1920
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatus AWS API Documentation
1883
1921
  #
1884
1922
  class QueryExecutionStatus < Struct.new(
1885
1923
  :state,
1886
1924
  :state_change_reason,
1887
1925
  :submission_date_time,
1888
- :completion_date_time)
1926
+ :completion_date_time,
1927
+ :athena_error)
1889
1928
  SENSITIVE = []
1890
1929
  include Aws::Structure
1891
1930
  end
@@ -2447,7 +2486,9 @@ module Aws::Athena
2447
2486
  # @!attribute [rw] name
2448
2487
  # The name of the data catalog to update. The catalog name must be
2449
2488
  # unique for the Amazon Web Services account and can use a maximum of
2450
- # 128 alphanumeric, underscore, at sign, or hyphen characters.
2489
+ # 127 alphanumeric, underscore, at sign, or hyphen characters. The
2490
+ # remainder of the length constraint of 256 is reserved for use by
2491
+ # Athena.
2451
2492
  # @return [String]
2452
2493
  #
2453
2494
  # @!attribute [rw] type
@@ -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.43.0'
51
+ GEM_VERSION = '1.47.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.43.0
4
+ version: 1.47.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: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2022-02-03 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.122.0
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.122.0
32
+ version: 3.126.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement