aws-sdk-athena 1.45.0 → 1.46.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: f5df6530fc7a3a48a198f38e81e642d3024a34aaf0f77e8a17c3c4d863eda5bc
4
- data.tar.gz: d26bb1398322bc5e2f31d95a7e0b2a2d4689c1afa903a55564c469ba37ff3ab1
3
+ metadata.gz: 8e4adc124ea67b6ebb0ed0fd885a083ef1f8f4fcadd40375a5fbb6363dc76974
4
+ data.tar.gz: bd8ae71072285c2de1a139cbd9197cc786ff442f2dbe146ac73a664dbd38cd42
5
5
  SHA512:
6
- metadata.gz: 65efe7608a73cf29e2ac85a542be8c91bc0315ebf3ded45cc1a1a80ddd7be1f6dcad76e47efe5c4af3b1540f2a2d48aec254ff39b16e633fadae75fdd7c79dff
7
- data.tar.gz: f0a8885b1349885396ed0938534783c968ae270f1cb5f4b35d6281746c36c8ddd6d4be5e931f296c9aac95716a51fc37b4216af49a26b7dd62166b95f8c550ea
6
+ metadata.gz: 19d1695339895486b1b4448d1b52986c64dfbbc2a7e88f0189896987894ebc52873ac572bf16c64bbcdbd04dc491cb3d16a9d2553f72c96ccd67bdfe890f910b
7
+ data.tar.gz: cab239aad3e817d60d4f6f51527e0cb5c05c46ef62297a494824c229dd9864c9d584f5cfa0bac0f0812dd7890c2aaad9779545fbaa198d67a6250bb282749c26
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.45.0 (2021-12-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.46.0
@@ -442,6 +442,7 @@ module Aws::Athena
442
442
  # resp.query_executions[0].status.state_change_reason #=> String
443
443
  # resp.query_executions[0].status.submission_date_time #=> Time
444
444
  # resp.query_executions[0].status.completion_date_time #=> Time
445
+ # resp.query_executions[0].status.athena_error.error_category #=> Integer
445
446
  # resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
446
447
  # resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
447
448
  # resp.query_executions[0].statistics.data_manifest_location #=> String
@@ -473,7 +474,9 @@ module Aws::Athena
473
474
  # @option params [required, String] :name
474
475
  # The name of the data catalog to create. The catalog name must be
475
476
  # unique for the Amazon Web Services account and can use a maximum of
476
- # 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.
477
480
  #
478
481
  # @option params [required, String] :type
479
482
  # The type of data catalog to create: `LAMBDA` for a federated catalog,
@@ -1006,6 +1009,7 @@ module Aws::Athena
1006
1009
  # resp.query_execution.status.state_change_reason #=> String
1007
1010
  # resp.query_execution.status.submission_date_time #=> Time
1008
1011
  # resp.query_execution.status.completion_date_time #=> Time
1012
+ # resp.query_execution.status.athena_error.error_category #=> Integer
1009
1013
  # resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
1010
1014
  # resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
1011
1015
  # resp.query_execution.statistics.data_manifest_location #=> String
@@ -1831,7 +1835,9 @@ module Aws::Athena
1831
1835
  # @option params [required, String] :name
1832
1836
  # The name of the data catalog to update. The catalog name must be
1833
1837
  # unique for the Amazon Web Services account and can use a maximum of
1834
- # 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.
1835
1841
  #
1836
1842
  # @option params [required, String] :type
1837
1843
  # Specifies the type of data catalog to update. Specify `LAMBDA` for a
@@ -1992,7 +1998,7 @@ module Aws::Athena
1992
1998
  params: params,
1993
1999
  config: config)
1994
2000
  context[:gem_name] = 'aws-sdk-athena'
1995
- context[:gem_version] = '1.45.0'
2001
+ context[:gem_version] = '1.46.0'
1996
2002
  Seahorse::Client::Request.new(handlers, context)
1997
2003
  end
1998
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.45.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.45.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-12-21 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