aws-sdk-athena 1.61.0 → 1.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +8 -1
- data/lib/aws-sdk-athena/client_api.rb +1 -0
- data/lib/aws-sdk-athena/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-athena/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-athena/types.rb +13 -3
- data/lib/aws-sdk-athena.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4a4c22e8952ea1dd742f01f5b203f29812b5552bffd03f4331c9a6679dec358
|
4
|
+
data.tar.gz: 17d2a692e4c12c919f739dbe98f84449dc8c556ae441d7c92f46bb8e6e37a08c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0283bcc1f9848c71a877f6946f3986212ac546117cb385c883b04d8e467566ded299cca035702c425c8b4f718608866e9532312587e9351bba0db436cbbbbc69'
|
7
|
+
data.tar.gz: 4c6f835a21d72118d53ff1c4437eb890ddd9bf95359281894ee4b03c307ba4bd445bb992261132a0b2c91fb28c813430708c71e0c98523b7c9382e10cf1c4af1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.62.0 (2023-03-08)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - A new field SubstatementType is added to GetQueryExecution API, so customers have an error free way to detect the query type and interpret the result.
|
8
|
+
|
4
9
|
1.61.0 (2023-01-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.62.0
|
@@ -531,6 +531,7 @@ module Aws::Athena
|
|
531
531
|
# resp.query_executions[0].engine_version.effective_engine_version #=> String
|
532
532
|
# resp.query_executions[0].execution_parameters #=> Array
|
533
533
|
# resp.query_executions[0].execution_parameters[0] #=> String
|
534
|
+
# resp.query_executions[0].substatement_type #=> String
|
534
535
|
# resp.unprocessed_query_execution_ids #=> Array
|
535
536
|
# resp.unprocessed_query_execution_ids[0].query_execution_id #=> String
|
536
537
|
# resp.unprocessed_query_execution_ids[0].error_code #=> String
|
@@ -1402,6 +1403,7 @@ module Aws::Athena
|
|
1402
1403
|
# resp.query_execution.engine_version.effective_engine_version #=> String
|
1403
1404
|
# resp.query_execution.execution_parameters #=> Array
|
1404
1405
|
# resp.query_execution.execution_parameters[0] #=> String
|
1406
|
+
# resp.query_execution.substatement_type #=> String
|
1405
1407
|
#
|
1406
1408
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution AWS API Documentation
|
1407
1409
|
#
|
@@ -1904,6 +1906,11 @@ module Aws::Athena
|
|
1904
1906
|
|
1905
1907
|
# Lists the data catalogs in the current Amazon Web Services account.
|
1906
1908
|
#
|
1909
|
+
# <note markdown="1"> In the Athena console, data catalogs are listed as "data sources" on
|
1910
|
+
# the **Data sources** page under the **Data source name** column.
|
1911
|
+
#
|
1912
|
+
# </note>
|
1913
|
+
#
|
1907
1914
|
# @option params [String] :next_token
|
1908
1915
|
# A token generated by the Athena service that specifies where to
|
1909
1916
|
# continue pagination if a previous request was truncated. To obtain the
|
@@ -3309,7 +3316,7 @@ module Aws::Athena
|
|
3309
3316
|
params: params,
|
3310
3317
|
config: config)
|
3311
3318
|
context[:gem_name] = 'aws-sdk-athena'
|
3312
|
-
context[:gem_version] = '1.
|
3319
|
+
context[:gem_version] = '1.62.0'
|
3313
3320
|
Seahorse::Client::Request.new(handlers, context)
|
3314
3321
|
end
|
3315
3322
|
|
@@ -870,6 +870,7 @@ module Aws::Athena
|
|
870
870
|
QueryExecution.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
871
871
|
QueryExecution.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
872
872
|
QueryExecution.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
|
873
|
+
QueryExecution.add_member(:substatement_type, Shapes::ShapeRef.new(shape: String, location_name: "SubstatementType"))
|
873
874
|
QueryExecution.struct_class = Types::QueryExecution
|
874
875
|
|
875
876
|
QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
|
@@ -50,9 +50,6 @@ module Aws::Athena
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -14,36 +14,39 @@ module Aws::Athena
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
-
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
-
end
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
-
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
-
end
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
38
20
|
end
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
-
|
41
|
-
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://athena-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
42
45
|
end
|
43
|
-
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
44
47
|
end
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://athena.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
48
|
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
48
51
|
|
49
52
|
end
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -743,6 +743,11 @@ module Aws::Athena
|
|
743
743
|
# Contains information about a data catalog in an Amazon Web Services
|
744
744
|
# account.
|
745
745
|
#
|
746
|
+
# <note markdown="1"> In the Athena console, data catalogs are listed as "data sources" on
|
747
|
+
# the **Data sources** page under the **Data source name** column.
|
748
|
+
#
|
749
|
+
# </note>
|
750
|
+
#
|
746
751
|
# @!attribute [rw] name
|
747
752
|
# The name of the data catalog. The catalog name must be unique for
|
748
753
|
# the Amazon Web Services account and can use a maximum of 127
|
@@ -1040,8 +1045,8 @@ module Aws::Athena
|
|
1040
1045
|
#
|
1041
1046
|
# @!attribute [rw] selected_engine_version
|
1042
1047
|
# The engine version requested by the user. Possible values are
|
1043
|
-
# determined by the output of `ListEngineVersions`, including
|
1044
|
-
# The default is
|
1048
|
+
# determined by the output of `ListEngineVersions`, including AUTO.
|
1049
|
+
# The default is AUTO.
|
1045
1050
|
# @return [String]
|
1046
1051
|
#
|
1047
1052
|
# @!attribute [rw] effective_engine_version
|
@@ -2718,6 +2723,10 @@ module Aws::Athena
|
|
2718
2723
|
# which the parameters occur.
|
2719
2724
|
# @return [Array<String>]
|
2720
2725
|
#
|
2726
|
+
# @!attribute [rw] substatement_type
|
2727
|
+
# The kind of query statement that was run.
|
2728
|
+
# @return [String]
|
2729
|
+
#
|
2721
2730
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
|
2722
2731
|
#
|
2723
2732
|
class QueryExecution < Struct.new(
|
@@ -2731,7 +2740,8 @@ module Aws::Athena
|
|
2731
2740
|
:statistics,
|
2732
2741
|
:work_group,
|
2733
2742
|
:engine_version,
|
2734
|
-
:execution_parameters
|
2743
|
+
:execution_parameters,
|
2744
|
+
:substatement_type)
|
2735
2745
|
SENSITIVE = []
|
2736
2746
|
include Aws::Structure
|
2737
2747
|
end
|
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.62.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: 2023-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|