aws-sdk-athena 1.42.0 → 1.46.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c732d1d48208faa9900253d87dbb4d751d2a63defe0486b2d9d4ff915c5b36c
4
- data.tar.gz: ce4b64c50ba8244c0b2e680b9175a1a9848618ebd11b699641a59f432e61520b
3
+ metadata.gz: 8e4adc124ea67b6ebb0ed0fd885a083ef1f8f4fcadd40375a5fbb6363dc76974
4
+ data.tar.gz: bd8ae71072285c2de1a139cbd9197cc786ff442f2dbe146ac73a664dbd38cd42
5
5
  SHA512:
6
- metadata.gz: 9e69613dfc1ae161456a79c85dc710285223f0b548fbacfaca8b0e1df4b7d829878b707fb2fab8fe3ee26bff665d68d0f2239be7aac797c6484f13ef729090ec
7
- data.tar.gz: 077ad36a69088e2b830918690a8cb959bebcd9a90af5fceeefdf76aa9b9889b8a39357900748ebac616dc77b288b53ab56cc6e9285d11534daffe589ec4ff173
6
+ metadata.gz: 19d1695339895486b1b4448d1b52986c64dfbbc2a7e88f0189896987894ebc52873ac572bf16c64bbcdbd04dc491cb3d16a9d2553f72c96ccd67bdfe890f910b
7
+ data.tar.gz: cab239aad3e817d60d4f6f51527e0cb5c05c46ef62297a494824c229dd9864c9d584f5cfa0bac0f0812dd7890c2aaad9779545fbaa198d67a6250bb282749c26
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.46.0 (2022-01-28)
5
+ ------------------
6
+
7
+ * Feature - This release adds a field, AthenaError, to the GetQueryExecution response object when a query fails.
8
+
9
+ 1.45.0 (2021-12-21)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.44.0 (2021-11-30)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.43.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.42.0 (2021-10-18)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.46.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/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
32
33
 
@@ -73,6 +74,7 @@ module Aws::Athena
73
74
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
75
  add_plugin(Aws::Plugins::TransferEncoding)
75
76
  add_plugin(Aws::Plugins::HttpChecksum)
77
+ add_plugin(Aws::Plugins::DefaultsMode)
76
78
  add_plugin(Aws::Plugins::SignatureV4)
77
79
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
78
80
 
@@ -119,7 +121,9 @@ module Aws::Athena
119
121
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
122
  # are very aggressive. Construct and pass an instance of
121
123
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
- # enable retries and extended timeouts.
124
+ # enable retries and extended timeouts. Instance profile credential
125
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
126
+ # to true.
123
127
  #
124
128
  # @option options [required, String] :region
125
129
  # The AWS region to connect to. The configured `:region` is
@@ -173,6 +177,10 @@ module Aws::Athena
173
177
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
178
  # a clock skew correction and retry requests with skewed client clocks.
175
179
  #
180
+ # @option options [String] :defaults_mode ("legacy")
181
+ # See {Aws::DefaultsModeConfiguration} for a list of the
182
+ # accepted modes and the configuration defaults that are included.
183
+ #
176
184
  # @option options [Boolean] :disable_host_prefix_injection (false)
177
185
  # Set to true to disable SDK automatically adding host prefix
178
186
  # to default service endpoint when available.
@@ -285,6 +293,15 @@ module Aws::Athena
285
293
  # ** Please note ** When response stubbing is enabled, no HTTP
286
294
  # requests are made, and retries are disabled.
287
295
  #
296
+ # @option options [Boolean] :use_dualstack_endpoint
297
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
298
+ # will be used if available.
299
+ #
300
+ # @option options [Boolean] :use_fips_endpoint
301
+ # When set to `true`, fips compatible endpoints will be used if available.
302
+ # When a `fips` region is used, the region is normalized and this config
303
+ # is set to `true`.
304
+ #
288
305
  # @option options [Boolean] :validate_params (true)
289
306
  # When `true`, request parameters are validated before
290
307
  # sending the request.
@@ -296,7 +313,7 @@ module Aws::Athena
296
313
  # seconds to wait when opening a HTTP session before raising a
297
314
  # `Timeout::Error`.
298
315
  #
299
- # @option options [Integer] :http_read_timeout (60) The default
316
+ # @option options [Float] :http_read_timeout (60) The default
300
317
  # number of seconds to wait for response data. This value can
301
318
  # safely be set per-request on the session.
302
319
  #
@@ -312,6 +329,9 @@ module Aws::Athena
312
329
  # disables this behaviour. This value can safely be set per
313
330
  # request on the session.
314
331
  #
332
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
333
+ # in seconds.
334
+ #
315
335
  # @option options [Boolean] :http_wire_trace (false) When `true`,
316
336
  # HTTP debug output will be sent to the `:logger`.
317
337
  #
@@ -422,6 +442,7 @@ module Aws::Athena
422
442
  # resp.query_executions[0].status.state_change_reason #=> String
423
443
  # resp.query_executions[0].status.submission_date_time #=> Time
424
444
  # resp.query_executions[0].status.completion_date_time #=> Time
445
+ # resp.query_executions[0].status.athena_error.error_category #=> Integer
425
446
  # resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
426
447
  # resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
427
448
  # resp.query_executions[0].statistics.data_manifest_location #=> String
@@ -453,7 +474,9 @@ module Aws::Athena
453
474
  # @option params [required, String] :name
454
475
  # The name of the data catalog to create. The catalog name must be
455
476
  # unique for the Amazon Web Services account and can use a maximum of
456
- # 128 alphanumeric, underscore, at sign, or hyphen characters.
477
+ # 127 alphanumeric, underscore, at sign, or hyphen characters. The
478
+ # remainder of the length constraint of 256 is reserved for use by
479
+ # Athena.
457
480
  #
458
481
  # @option params [required, String] :type
459
482
  # The type of data catalog to create: `LAMBDA` for a federated catalog,
@@ -986,6 +1009,7 @@ module Aws::Athena
986
1009
  # resp.query_execution.status.state_change_reason #=> String
987
1010
  # resp.query_execution.status.submission_date_time #=> Time
988
1011
  # resp.query_execution.status.completion_date_time #=> Time
1012
+ # resp.query_execution.status.athena_error.error_category #=> Integer
989
1013
  # resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
990
1014
  # resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
991
1015
  # resp.query_execution.statistics.data_manifest_location #=> String
@@ -1811,7 +1835,9 @@ module Aws::Athena
1811
1835
  # @option params [required, String] :name
1812
1836
  # The name of the data catalog to update. The catalog name must be
1813
1837
  # unique for the Amazon Web Services account and can use a maximum of
1814
- # 128 alphanumeric, underscore, at sign, or hyphen characters.
1838
+ # 127 alphanumeric, underscore, at sign, or hyphen characters. The
1839
+ # remainder of the length constraint of 256 is reserved for use by
1840
+ # Athena.
1815
1841
  #
1816
1842
  # @option params [required, String] :type
1817
1843
  # Specifies the type of data catalog to update. Specify `LAMBDA` for a
@@ -1972,7 +1998,7 @@ module Aws::Athena
1972
1998
  params: params,
1973
1999
  config: config)
1974
2000
  context[:gem_name] = 'aws-sdk-athena'
1975
- context[:gem_version] = '1.42.0'
2001
+ context[:gem_version] = '1.46.0'
1976
2002
  Seahorse::Client::Request.new(handlers, context)
1977
2003
  end
1978
2004
 
@@ -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.42.0'
51
+ GEM_VERSION = '1.46.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.42.0
4
+ version: 1.46.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-10-18 00:00:00.000000000 Z
11
+ date: 2022-01-28 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.121.2
22
+ version: 3.125.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.121.2
32
+ version: 3.125.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement