aws-sdk-athena 1.48.0 → 1.51.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 +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +40 -9
- data/lib/aws-sdk-athena/client_api.rb +23 -0
- data/lib/aws-sdk-athena/types.rb +64 -12
- 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: '0687af810b3e4362e24590cbad3f7d1268fd4cb23024a6edcc8b5dad6b117049'
|
4
|
+
data.tar.gz: 86b8e28554230e7d03c88d73d5a431677e024a5780cdcb700b594487eec11549
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6fa542f8be717ba15b5d06759909313ea0c1073df477496ccb8f22f6deb1f16b60ac5b14e7ddfcbbb6ee6f2637ebe97a8580de5eeae8cb261cf4c0e64399ec3
|
7
|
+
data.tar.gz: bb09d6c920f592b74692a85ed0c8918f967c145d2a8a59ade110454d2c920ef517432a43a62377ac2a8ebded912980c79443982831404b3f9028de4fd1ab260d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.51.0 (2022-02-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for updating an existing named query.
|
8
|
+
|
9
|
+
1.50.0 (2022-02-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.49.0 (2022-02-14)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release adds a subfield, ErrorType, to the AthenaError response object in the GetQueryExecution API when a query fails.
|
18
|
+
|
4
19
|
1.48.0 (2022-02-04)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.51.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)
|
@@ -446,6 +448,7 @@ module Aws::Athena
|
|
446
448
|
# resp.query_executions[0].status.submission_date_time #=> Time
|
447
449
|
# resp.query_executions[0].status.completion_date_time #=> Time
|
448
450
|
# resp.query_executions[0].status.athena_error.error_category #=> Integer
|
451
|
+
# resp.query_executions[0].status.athena_error.error_type #=> Integer
|
449
452
|
# resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
|
450
453
|
# resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
|
451
454
|
# resp.query_executions[0].statistics.data_manifest_location #=> String
|
@@ -1015,6 +1018,7 @@ module Aws::Athena
|
|
1015
1018
|
# resp.query_execution.status.submission_date_time #=> Time
|
1016
1019
|
# resp.query_execution.status.completion_date_time #=> Time
|
1017
1020
|
# resp.query_execution.status.athena_error.error_category #=> Integer
|
1021
|
+
# resp.query_execution.status.athena_error.error_type #=> Integer
|
1018
1022
|
# resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
|
1019
1023
|
# resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
|
1020
1024
|
# resp.query_execution.statistics.data_manifest_location #=> String
|
@@ -1041,14 +1045,6 @@ module Aws::Athena
|
|
1041
1045
|
# User Guide*. This request does not execute the query but returns
|
1042
1046
|
# results. Use StartQueryExecution to run a query.
|
1043
1047
|
#
|
1044
|
-
# If the original query execution ran using an
|
1045
|
-
# ResultConfiguration$ExpectedBucketOwner setting, the setting also
|
1046
|
-
# applies to Amazon S3 read operations when `GetQueryResults` is called.
|
1047
|
-
# If an expected bucket owner has been specified and the query results
|
1048
|
-
# are in an Amazon S3 bucket whose owner account ID is different from
|
1049
|
-
# the expected bucket owner, the `GetQueryResults` call fails with an
|
1050
|
-
# Amazon S3 permissions error.
|
1051
|
-
#
|
1052
1048
|
# To stream query results successfully, the IAM principal with
|
1053
1049
|
# permission to call `GetQueryResults` also must have permissions to the
|
1054
1050
|
# Amazon S3 `GetObject` action for the Athena query results location.
|
@@ -1911,6 +1907,41 @@ module Aws::Athena
|
|
1911
1907
|
req.send_request(options)
|
1912
1908
|
end
|
1913
1909
|
|
1910
|
+
# Updates a NamedQuery object. The database or workgroup cannot be
|
1911
|
+
# updated.
|
1912
|
+
#
|
1913
|
+
# @option params [required, String] :named_query_id
|
1914
|
+
# The unique identifier (UUID) of the query.
|
1915
|
+
#
|
1916
|
+
# @option params [required, String] :name
|
1917
|
+
# The name of the query.
|
1918
|
+
#
|
1919
|
+
# @option params [String] :description
|
1920
|
+
# The query description.
|
1921
|
+
#
|
1922
|
+
# @option params [required, String] :query_string
|
1923
|
+
# The contents of the query with all query statements.
|
1924
|
+
#
|
1925
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1926
|
+
#
|
1927
|
+
# @example Request syntax with placeholder values
|
1928
|
+
#
|
1929
|
+
# resp = client.update_named_query({
|
1930
|
+
# named_query_id: "NamedQueryId", # required
|
1931
|
+
# name: "NameString", # required
|
1932
|
+
# description: "NamedQueryDescriptionString",
|
1933
|
+
# query_string: "QueryString", # required
|
1934
|
+
# })
|
1935
|
+
#
|
1936
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery AWS API Documentation
|
1937
|
+
#
|
1938
|
+
# @overload update_named_query(params = {})
|
1939
|
+
# @param [Hash] params ({})
|
1940
|
+
def update_named_query(params = {}, options = {})
|
1941
|
+
req = build_request(:update_named_query, params)
|
1942
|
+
req.send_request(options)
|
1943
|
+
end
|
1944
|
+
|
1914
1945
|
# Updates a prepared statement.
|
1915
1946
|
#
|
1916
1947
|
# @option params [required, String] :statement_name
|
@@ -2015,7 +2046,7 @@ module Aws::Athena
|
|
2015
2046
|
params: params,
|
2016
2047
|
config: config)
|
2017
2048
|
context[:gem_name] = 'aws-sdk-athena'
|
2018
|
-
context[:gem_version] = '1.
|
2049
|
+
context[:gem_version] = '1.51.0'
|
2019
2050
|
Seahorse::Client::Request.new(handlers, context)
|
2020
2051
|
end
|
2021
2052
|
|
@@ -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')
|
@@ -116,6 +117,7 @@ module Aws::Athena
|
|
116
117
|
MetadataException = Shapes::StructureShape.new(name: 'MetadataException')
|
117
118
|
NameString = Shapes::StringShape.new(name: 'NameString')
|
118
119
|
NamedQuery = Shapes::StructureShape.new(name: 'NamedQuery')
|
120
|
+
NamedQueryDescriptionString = Shapes::StringShape.new(name: 'NamedQueryDescriptionString')
|
119
121
|
NamedQueryId = Shapes::StringShape.new(name: 'NamedQueryId')
|
120
122
|
NamedQueryIdList = Shapes::ListShape.new(name: 'NamedQueryIdList')
|
121
123
|
NamedQueryList = Shapes::ListShape.new(name: 'NamedQueryList')
|
@@ -170,6 +172,8 @@ module Aws::Athena
|
|
170
172
|
UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
|
171
173
|
UpdateDataCatalogInput = Shapes::StructureShape.new(name: 'UpdateDataCatalogInput')
|
172
174
|
UpdateDataCatalogOutput = Shapes::StructureShape.new(name: 'UpdateDataCatalogOutput')
|
175
|
+
UpdateNamedQueryInput = Shapes::StructureShape.new(name: 'UpdateNamedQueryInput')
|
176
|
+
UpdateNamedQueryOutput = Shapes::StructureShape.new(name: 'UpdateNamedQueryOutput')
|
173
177
|
UpdatePreparedStatementInput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementInput')
|
174
178
|
UpdatePreparedStatementOutput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementOutput')
|
175
179
|
UpdateWorkGroupInput = Shapes::StructureShape.new(name: 'UpdateWorkGroupInput')
|
@@ -186,6 +190,7 @@ module Aws::Athena
|
|
186
190
|
datumString = Shapes::StringShape.new(name: 'datumString')
|
187
191
|
|
188
192
|
AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
|
193
|
+
AthenaError.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorType"))
|
189
194
|
AthenaError.struct_class = Types::AthenaError
|
190
195
|
|
191
196
|
BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
|
@@ -623,6 +628,14 @@ module Aws::Athena
|
|
623
628
|
|
624
629
|
UpdateDataCatalogOutput.struct_class = Types::UpdateDataCatalogOutput
|
625
630
|
|
631
|
+
UpdateNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId"))
|
632
|
+
UpdateNamedQueryInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
|
633
|
+
UpdateNamedQueryInput.add_member(:description, Shapes::ShapeRef.new(shape: NamedQueryDescriptionString, location_name: "Description"))
|
634
|
+
UpdateNamedQueryInput.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
|
635
|
+
UpdateNamedQueryInput.struct_class = Types::UpdateNamedQueryInput
|
636
|
+
|
637
|
+
UpdateNamedQueryOutput.struct_class = Types::UpdateNamedQueryOutput
|
638
|
+
|
626
639
|
UpdatePreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
|
627
640
|
UpdatePreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
|
628
641
|
UpdatePreparedStatementInput.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryStatement"))
|
@@ -1076,6 +1089,16 @@ module Aws::Athena
|
|
1076
1089
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1077
1090
|
end)
|
1078
1091
|
|
1092
|
+
api.add_operation(:update_named_query, Seahorse::Model::Operation.new.tap do |o|
|
1093
|
+
o.name = "UpdateNamedQuery"
|
1094
|
+
o.http_method = "POST"
|
1095
|
+
o.http_request_uri = "/"
|
1096
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateNamedQueryInput)
|
1097
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateNamedQueryOutput)
|
1098
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1099
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1100
|
+
end)
|
1101
|
+
|
1079
1102
|
api.add_operation(:update_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
|
1080
1103
|
o.name = "UpdatePreparedStatement"
|
1081
1104
|
o.http_method = "POST"
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -15,7 +15,7 @@ module Aws::Athena
|
|
15
15
|
# failed queries and take steps after a query failure occurs.
|
16
16
|
# `AthenaError` includes an `ErrorCategory` field that specifies whether
|
17
17
|
# the cause of the failed query is due to system error, user error, or
|
18
|
-
#
|
18
|
+
# other error.
|
19
19
|
#
|
20
20
|
# @!attribute [rw] error_category
|
21
21
|
# An integer value that specifies the category of a query failure
|
@@ -25,13 +25,24 @@ module Aws::Athena
|
|
25
25
|
#
|
26
26
|
# **2** - User
|
27
27
|
#
|
28
|
-
# **3** -
|
28
|
+
# **3** - Other
|
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
|
29
39
|
# @return [Integer]
|
30
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
|
@@ -1631,8 +1642,8 @@ module Aws::Athena
|
|
1631
1642
|
include Aws::Structure
|
1632
1643
|
end
|
1633
1644
|
|
1634
|
-
# A query, where `QueryString`
|
1635
|
-
#
|
1645
|
+
# A query, where `QueryString` contains the SQL statements that make up
|
1646
|
+
# the query.
|
1636
1647
|
#
|
1637
1648
|
# @!attribute [rw] name
|
1638
1649
|
# The query name.
|
@@ -1647,7 +1658,7 @@ module Aws::Athena
|
|
1647
1658
|
# @return [String]
|
1648
1659
|
#
|
1649
1660
|
# @!attribute [rw] query_string
|
1650
|
-
# The SQL
|
1661
|
+
# The SQL statements that make up the query.
|
1651
1662
|
# @return [String]
|
1652
1663
|
#
|
1653
1664
|
# @!attribute [rw] named_query_id
|
@@ -2067,7 +2078,7 @@ module Aws::Athena
|
|
2067
2078
|
# in this workgroup should be ignored and set to null. If set to
|
2068
2079
|
# "false" or not set, and a value is present in the `OutputLocation`
|
2069
2080
|
# in `ResultConfigurationUpdates` (the client-side setting), the
|
2070
|
-
# `OutputLocation` in the workgroup's `ResultConfiguration`
|
2081
|
+
# `OutputLocation` in the workgroup's `ResultConfiguration` will be
|
2071
2082
|
# updated with the new value. For more information, see [Workgroup
|
2072
2083
|
# Settings Override Client-Side Settings][1].
|
2073
2084
|
#
|
@@ -2087,9 +2098,9 @@ module Aws::Athena
|
|
2087
2098
|
# to "false" or not set, and a value is present in the
|
2088
2099
|
# `EncryptionConfiguration` in `ResultConfigurationUpdates` (the
|
2089
2100
|
# client-side setting), the `EncryptionConfiguration` in the
|
2090
|
-
# workgroup's `ResultConfiguration`
|
2091
|
-
# For more information, see [Workgroup Settings Override
|
2092
|
-
# Settings][1].
|
2101
|
+
# workgroup's `ResultConfiguration` will be updated with the new
|
2102
|
+
# value. For more information, see [Workgroup Settings Override
|
2103
|
+
# Client-Side Settings][1].
|
2093
2104
|
#
|
2094
2105
|
#
|
2095
2106
|
#
|
@@ -2145,7 +2156,7 @@ module Aws::Athena
|
|
2145
2156
|
include Aws::Structure
|
2146
2157
|
end
|
2147
2158
|
|
2148
|
-
# The metadata and rows that
|
2159
|
+
# The metadata and rows that make up a query result set. The metadata
|
2149
2160
|
# describes the column structure and data types. To return a `ResultSet`
|
2150
2161
|
# object, use GetQueryResults.
|
2151
2162
|
#
|
@@ -2183,7 +2194,7 @@ module Aws::Athena
|
|
2183
2194
|
include Aws::Structure
|
2184
2195
|
end
|
2185
2196
|
|
2186
|
-
# The rows that
|
2197
|
+
# The rows that make up a query result table.
|
2187
2198
|
#
|
2188
2199
|
# @!attribute [rw] data
|
2189
2200
|
# The data that populates a row in a query result table.
|
@@ -2609,6 +2620,47 @@ module Aws::Athena
|
|
2609
2620
|
#
|
2610
2621
|
class UpdateDataCatalogOutput < Aws::EmptyStructure; end
|
2611
2622
|
|
2623
|
+
# @note When making an API call, you may pass UpdateNamedQueryInput
|
2624
|
+
# data as a hash:
|
2625
|
+
#
|
2626
|
+
# {
|
2627
|
+
# named_query_id: "NamedQueryId", # required
|
2628
|
+
# name: "NameString", # required
|
2629
|
+
# description: "NamedQueryDescriptionString",
|
2630
|
+
# query_string: "QueryString", # required
|
2631
|
+
# }
|
2632
|
+
#
|
2633
|
+
# @!attribute [rw] named_query_id
|
2634
|
+
# The unique identifier (UUID) of the query.
|
2635
|
+
# @return [String]
|
2636
|
+
#
|
2637
|
+
# @!attribute [rw] name
|
2638
|
+
# The name of the query.
|
2639
|
+
# @return [String]
|
2640
|
+
#
|
2641
|
+
# @!attribute [rw] description
|
2642
|
+
# The query description.
|
2643
|
+
# @return [String]
|
2644
|
+
#
|
2645
|
+
# @!attribute [rw] query_string
|
2646
|
+
# The contents of the query with all query statements.
|
2647
|
+
# @return [String]
|
2648
|
+
#
|
2649
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQueryInput AWS API Documentation
|
2650
|
+
#
|
2651
|
+
class UpdateNamedQueryInput < Struct.new(
|
2652
|
+
:named_query_id,
|
2653
|
+
:name,
|
2654
|
+
:description,
|
2655
|
+
:query_string)
|
2656
|
+
SENSITIVE = []
|
2657
|
+
include Aws::Structure
|
2658
|
+
end
|
2659
|
+
|
2660
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQueryOutput AWS API Documentation
|
2661
|
+
#
|
2662
|
+
class UpdateNamedQueryOutput < Aws::EmptyStructure; end
|
2663
|
+
|
2612
2664
|
# @note When making an API call, you may pass UpdatePreparedStatementInput
|
2613
2665
|
# data as a hash:
|
2614
2666
|
#
|
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.51.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-
|
11
|
+
date: 2022-02-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.
|
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.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|