aws-sdk-athena 1.34.0 → 1.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-athena.rb +1 -1
- data/lib/aws-sdk-athena/client.rb +74 -11
- data/lib/aws-sdk-athena/client_api.rb +33 -0
- data/lib/aws-sdk-athena/types.rb +153 -20
- 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: 28f71cbb3b6c90e76ef89f3334b884af46b0cd66287aa08d01f9bb2083038313
|
4
|
+
data.tar.gz: 33fd54da2031d1bc723ff234e8a1399fdf5afefbf3a62a338a2857c6e3fdee22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33bed14929a74ba6638c86a8dae9cd92dc9c427dbf35b062f47fbad0537385cce7c4ae3d2daa3c378dd0ccf174c518e7a567fbf001e096654da2292a9d1b0d5f
|
7
|
+
data.tar.gz: 62668dfec48e622fd8d75cd8e8182e5c1f1d98c6198ce7e11e54cb212846b3b6bdf062594353982364586b78c1f086ae57d577d259e4d8eb16d7eb16b1d217a2
|
data/lib/aws-sdk-athena.rb
CHANGED
@@ -430,6 +430,8 @@ module Aws::Athena
|
|
430
430
|
# resp.query_executions[0].statistics.query_planning_time_in_millis #=> Integer
|
431
431
|
# resp.query_executions[0].statistics.service_processing_time_in_millis #=> Integer
|
432
432
|
# resp.query_executions[0].work_group #=> String
|
433
|
+
# resp.query_executions[0].engine_version.selected_engine_version #=> String
|
434
|
+
# resp.query_executions[0].engine_version.effective_engine_version #=> String
|
433
435
|
# resp.unprocessed_query_execution_ids #=> Array
|
434
436
|
# resp.unprocessed_query_execution_ids[0].query_execution_id #=> String
|
435
437
|
# resp.unprocessed_query_execution_ids[0].error_code #=> String
|
@@ -454,8 +456,14 @@ module Aws::Athena
|
|
454
456
|
# underscore, at sign, or hyphen characters.
|
455
457
|
#
|
456
458
|
# @option params [required, String] :type
|
457
|
-
# The type of data catalog to create: `LAMBDA` for a federated catalog
|
458
|
-
#
|
459
|
+
# The type of data catalog to create: `LAMBDA` for a federated catalog
|
460
|
+
# or `HIVE` for an external hive metastore.
|
461
|
+
#
|
462
|
+
# <note markdown="1"> Do not use the `GLUE` type. This refers to the `AwsDataCatalog` that
|
463
|
+
# already exists in your account, of which you can have only one.
|
464
|
+
# Specifying the `GLUE` type will result in an `INVALID_INPUT` error.
|
465
|
+
#
|
466
|
+
# </note>
|
459
467
|
#
|
460
468
|
# @option params [String] :description
|
461
469
|
# A description of the data catalog to be created.
|
@@ -487,8 +495,6 @@ module Aws::Athena
|
|
487
495
|
#
|
488
496
|
# `function=lambda_arn `
|
489
497
|
#
|
490
|
-
# * The `GLUE` type has no parameters.
|
491
|
-
#
|
492
498
|
# @option params [Array<Types::Tag>] :tags
|
493
499
|
# A list of comma separated tags to add to the data catalog that is
|
494
500
|
# created.
|
@@ -630,6 +636,10 @@ module Aws::Athena
|
|
630
636
|
# publish_cloud_watch_metrics_enabled: false,
|
631
637
|
# bytes_scanned_cutoff_per_query: 1,
|
632
638
|
# requester_pays_enabled: false,
|
639
|
+
# engine_version: {
|
640
|
+
# selected_engine_version: "NameString",
|
641
|
+
# effective_engine_version: "NameString",
|
642
|
+
# },
|
633
643
|
# },
|
634
644
|
# description: "WorkGroupDescriptionString",
|
635
645
|
# tags: [
|
@@ -712,7 +722,7 @@ module Aws::Athena
|
|
712
722
|
#
|
713
723
|
# @option params [Boolean] :recursive_delete_option
|
714
724
|
# The option to delete the workgroup and its contents even if the
|
715
|
-
# workgroup contains any named queries.
|
725
|
+
# workgroup contains any named queries or query executions.
|
716
726
|
#
|
717
727
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
718
728
|
#
|
@@ -764,7 +774,7 @@ module Aws::Athena
|
|
764
774
|
req.send_request(options)
|
765
775
|
end
|
766
776
|
|
767
|
-
# Returns a database object for the
|
777
|
+
# Returns a database object for the specified database and data catalog.
|
768
778
|
#
|
769
779
|
# @option params [required, String] :catalog_name
|
770
780
|
# The name of the data catalog that contains the database to return.
|
@@ -873,6 +883,8 @@ module Aws::Athena
|
|
873
883
|
# resp.query_execution.statistics.query_planning_time_in_millis #=> Integer
|
874
884
|
# resp.query_execution.statistics.service_processing_time_in_millis #=> Integer
|
875
885
|
# resp.query_execution.work_group #=> String
|
886
|
+
# resp.query_execution.engine_version.selected_engine_version #=> String
|
887
|
+
# resp.query_execution.engine_version.effective_engine_version #=> String
|
876
888
|
#
|
877
889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution AWS API Documentation
|
878
890
|
#
|
@@ -1035,6 +1047,8 @@ module Aws::Athena
|
|
1035
1047
|
# resp.work_group.configuration.publish_cloud_watch_metrics_enabled #=> Boolean
|
1036
1048
|
# resp.work_group.configuration.bytes_scanned_cutoff_per_query #=> Integer
|
1037
1049
|
# resp.work_group.configuration.requester_pays_enabled #=> Boolean
|
1050
|
+
# resp.work_group.configuration.engine_version.selected_engine_version #=> String
|
1051
|
+
# resp.work_group.configuration.engine_version.effective_engine_version #=> String
|
1038
1052
|
# resp.work_group.description #=> String
|
1039
1053
|
# resp.work_group.creation_time #=> Time
|
1040
1054
|
#
|
@@ -1135,6 +1149,46 @@ module Aws::Athena
|
|
1135
1149
|
req.send_request(options)
|
1136
1150
|
end
|
1137
1151
|
|
1152
|
+
# Returns a list of engine versions that are available to choose from,
|
1153
|
+
# including the Auto option.
|
1154
|
+
#
|
1155
|
+
# @option params [String] :next_token
|
1156
|
+
# A token generated by the Athena service that specifies where to
|
1157
|
+
# continue pagination if a previous request was truncated. To obtain the
|
1158
|
+
# next set of pages, pass in the `NextToken` from the response object of
|
1159
|
+
# the previous page call.
|
1160
|
+
#
|
1161
|
+
# @option params [Integer] :max_results
|
1162
|
+
# The maximum number of engine versions to return in this request.
|
1163
|
+
#
|
1164
|
+
# @return [Types::ListEngineVersionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1165
|
+
#
|
1166
|
+
# * {Types::ListEngineVersionsOutput#engine_versions #engine_versions} => Array<Types::EngineVersion>
|
1167
|
+
# * {Types::ListEngineVersionsOutput#next_token #next_token} => String
|
1168
|
+
#
|
1169
|
+
# @example Request syntax with placeholder values
|
1170
|
+
#
|
1171
|
+
# resp = client.list_engine_versions({
|
1172
|
+
# next_token: "Token",
|
1173
|
+
# max_results: 1,
|
1174
|
+
# })
|
1175
|
+
#
|
1176
|
+
# @example Response structure
|
1177
|
+
#
|
1178
|
+
# resp.engine_versions #=> Array
|
1179
|
+
# resp.engine_versions[0].selected_engine_version #=> String
|
1180
|
+
# resp.engine_versions[0].effective_engine_version #=> String
|
1181
|
+
# resp.next_token #=> String
|
1182
|
+
#
|
1183
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersions AWS API Documentation
|
1184
|
+
#
|
1185
|
+
# @overload list_engine_versions(params = {})
|
1186
|
+
# @param [Hash] params ({})
|
1187
|
+
def list_engine_versions(params = {}, options = {})
|
1188
|
+
req = build_request(:list_engine_versions, params)
|
1189
|
+
req.send_request(options)
|
1190
|
+
end
|
1191
|
+
|
1138
1192
|
# Provides a list of available query IDs only for queries saved in the
|
1139
1193
|
# specified workgroup. Requires that you have access to the specified
|
1140
1194
|
# workgroup. If a workgroup is not specified, lists the saved queries
|
@@ -1393,6 +1447,8 @@ module Aws::Athena
|
|
1393
1447
|
# resp.work_groups[0].state #=> String, one of "ENABLED", "DISABLED"
|
1394
1448
|
# resp.work_groups[0].description #=> String
|
1395
1449
|
# resp.work_groups[0].creation_time #=> Time
|
1450
|
+
# resp.work_groups[0].engine_version.selected_engine_version #=> String
|
1451
|
+
# resp.work_groups[0].engine_version.effective_engine_version #=> String
|
1396
1452
|
# resp.next_token #=> String
|
1397
1453
|
#
|
1398
1454
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListWorkGroups AWS API Documentation
|
@@ -1601,8 +1657,13 @@ module Aws::Athena
|
|
1601
1657
|
#
|
1602
1658
|
# @option params [required, String] :type
|
1603
1659
|
# Specifies the type of data catalog to update. Specify `LAMBDA` for a
|
1604
|
-
# federated catalog
|
1605
|
-
#
|
1660
|
+
# federated catalog or `HIVE` for an external hive metastore.
|
1661
|
+
#
|
1662
|
+
# <note markdown="1"> Do not use the `GLUE` type. This refers to the `AwsDataCatalog` that
|
1663
|
+
# already exists in your account, of which you can have only one.
|
1664
|
+
# Specifying the `GLUE` type will result in an `INVALID_INPUT` error.
|
1665
|
+
#
|
1666
|
+
# </note>
|
1606
1667
|
#
|
1607
1668
|
# @option params [String] :description
|
1608
1669
|
# New or modified text that describes the data catalog.
|
@@ -1634,8 +1695,6 @@ module Aws::Athena
|
|
1634
1695
|
#
|
1635
1696
|
# `function=lambda_arn `
|
1636
1697
|
#
|
1637
|
-
# * The `GLUE` type has no parameters.
|
1638
|
-
#
|
1639
1698
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1640
1699
|
#
|
1641
1700
|
# @example Request syntax with placeholder values
|
@@ -1696,6 +1755,10 @@ module Aws::Athena
|
|
1696
1755
|
# bytes_scanned_cutoff_per_query: 1,
|
1697
1756
|
# remove_bytes_scanned_cutoff_per_query: false,
|
1698
1757
|
# requester_pays_enabled: false,
|
1758
|
+
# engine_version: {
|
1759
|
+
# selected_engine_version: "NameString",
|
1760
|
+
# effective_engine_version: "NameString",
|
1761
|
+
# },
|
1699
1762
|
# },
|
1700
1763
|
# state: "ENABLED", # accepts ENABLED, DISABLED
|
1701
1764
|
# })
|
@@ -1722,7 +1785,7 @@ module Aws::Athena
|
|
1722
1785
|
params: params,
|
1723
1786
|
config: config)
|
1724
1787
|
context[:gem_name] = 'aws-sdk-athena'
|
1725
|
-
context[:gem_version] = '1.
|
1788
|
+
context[:gem_version] = '1.35.0'
|
1726
1789
|
Seahorse::Client::Request.new(handlers, context)
|
1727
1790
|
end
|
1728
1791
|
|
@@ -52,6 +52,8 @@ module Aws::Athena
|
|
52
52
|
DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
|
53
53
|
EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
|
54
54
|
EncryptionOption = Shapes::StringShape.new(name: 'EncryptionOption')
|
55
|
+
EngineVersion = Shapes::StructureShape.new(name: 'EngineVersion')
|
56
|
+
EngineVersionsList = Shapes::ListShape.new(name: 'EngineVersionsList')
|
55
57
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
56
58
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
57
59
|
ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
|
@@ -78,6 +80,8 @@ module Aws::Athena
|
|
78
80
|
ListDataCatalogsOutput = Shapes::StructureShape.new(name: 'ListDataCatalogsOutput')
|
79
81
|
ListDatabasesInput = Shapes::StructureShape.new(name: 'ListDatabasesInput')
|
80
82
|
ListDatabasesOutput = Shapes::StructureShape.new(name: 'ListDatabasesOutput')
|
83
|
+
ListEngineVersionsInput = Shapes::StructureShape.new(name: 'ListEngineVersionsInput')
|
84
|
+
ListEngineVersionsOutput = Shapes::StructureShape.new(name: 'ListEngineVersionsOutput')
|
81
85
|
ListNamedQueriesInput = Shapes::StructureShape.new(name: 'ListNamedQueriesInput')
|
82
86
|
ListNamedQueriesOutput = Shapes::StructureShape.new(name: 'ListNamedQueriesOutput')
|
83
87
|
ListQueryExecutionsInput = Shapes::StructureShape.new(name: 'ListQueryExecutionsInput')
|
@@ -91,6 +95,7 @@ module Aws::Athena
|
|
91
95
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
92
96
|
MaxDataCatalogsCount = Shapes::IntegerShape.new(name: 'MaxDataCatalogsCount')
|
93
97
|
MaxDatabasesCount = Shapes::IntegerShape.new(name: 'MaxDatabasesCount')
|
98
|
+
MaxEngineVersionsCount = Shapes::IntegerShape.new(name: 'MaxEngineVersionsCount')
|
94
99
|
MaxNamedQueriesCount = Shapes::IntegerShape.new(name: 'MaxNamedQueriesCount')
|
95
100
|
MaxQueryExecutionsCount = Shapes::IntegerShape.new(name: 'MaxQueryExecutionsCount')
|
96
101
|
MaxQueryResults = Shapes::IntegerShape.new(name: 'MaxQueryResults')
|
@@ -268,6 +273,12 @@ module Aws::Athena
|
|
268
273
|
EncryptionConfiguration.add_member(:kms_key, Shapes::ShapeRef.new(shape: String, location_name: "KmsKey"))
|
269
274
|
EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
|
270
275
|
|
276
|
+
EngineVersion.add_member(:selected_engine_version, Shapes::ShapeRef.new(shape: NameString, location_name: "SelectedEngineVersion"))
|
277
|
+
EngineVersion.add_member(:effective_engine_version, Shapes::ShapeRef.new(shape: NameString, location_name: "EffectiveEngineVersion"))
|
278
|
+
EngineVersion.struct_class = Types::EngineVersion
|
279
|
+
|
280
|
+
EngineVersionsList.member = Shapes::ShapeRef.new(shape: EngineVersion)
|
281
|
+
|
271
282
|
GetDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
272
283
|
GetDataCatalogInput.struct_class = Types::GetDataCatalogInput
|
273
284
|
|
@@ -341,6 +352,14 @@ module Aws::Athena
|
|
341
352
|
ListDatabasesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
342
353
|
ListDatabasesOutput.struct_class = Types::ListDatabasesOutput
|
343
354
|
|
355
|
+
ListEngineVersionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
356
|
+
ListEngineVersionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxEngineVersionsCount, location_name: "MaxResults"))
|
357
|
+
ListEngineVersionsInput.struct_class = Types::ListEngineVersionsInput
|
358
|
+
|
359
|
+
ListEngineVersionsOutput.add_member(:engine_versions, Shapes::ShapeRef.new(shape: EngineVersionsList, location_name: "EngineVersions"))
|
360
|
+
ListEngineVersionsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
361
|
+
ListEngineVersionsOutput.struct_class = Types::ListEngineVersionsOutput
|
362
|
+
|
344
363
|
ListNamedQueriesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
|
345
364
|
ListNamedQueriesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxNamedQueriesCount, location_name: "MaxResults"))
|
346
365
|
ListNamedQueriesInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
@@ -413,6 +432,7 @@ module Aws::Athena
|
|
413
432
|
QueryExecution.add_member(:status, Shapes::ShapeRef.new(shape: QueryExecutionStatus, location_name: "Status"))
|
414
433
|
QueryExecution.add_member(:statistics, Shapes::ShapeRef.new(shape: QueryExecutionStatistics, location_name: "Statistics"))
|
415
434
|
QueryExecution.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
|
435
|
+
QueryExecution.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
416
436
|
QueryExecution.struct_class = Types::QueryExecution
|
417
437
|
|
418
438
|
QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
|
@@ -556,6 +576,7 @@ module Aws::Athena
|
|
556
576
|
WorkGroupConfiguration.add_member(:publish_cloud_watch_metrics_enabled, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "PublishCloudWatchMetricsEnabled"))
|
557
577
|
WorkGroupConfiguration.add_member(:bytes_scanned_cutoff_per_query, Shapes::ShapeRef.new(shape: BytesScannedCutoffValue, location_name: "BytesScannedCutoffPerQuery"))
|
558
578
|
WorkGroupConfiguration.add_member(:requester_pays_enabled, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RequesterPaysEnabled"))
|
579
|
+
WorkGroupConfiguration.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
559
580
|
WorkGroupConfiguration.struct_class = Types::WorkGroupConfiguration
|
560
581
|
|
561
582
|
WorkGroupConfigurationUpdates.add_member(:enforce_work_group_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnforceWorkGroupConfiguration"))
|
@@ -564,12 +585,14 @@ module Aws::Athena
|
|
564
585
|
WorkGroupConfigurationUpdates.add_member(:bytes_scanned_cutoff_per_query, Shapes::ShapeRef.new(shape: BytesScannedCutoffValue, location_name: "BytesScannedCutoffPerQuery"))
|
565
586
|
WorkGroupConfigurationUpdates.add_member(:remove_bytes_scanned_cutoff_per_query, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveBytesScannedCutoffPerQuery"))
|
566
587
|
WorkGroupConfigurationUpdates.add_member(:requester_pays_enabled, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RequesterPaysEnabled"))
|
588
|
+
WorkGroupConfigurationUpdates.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
567
589
|
WorkGroupConfigurationUpdates.struct_class = Types::WorkGroupConfigurationUpdates
|
568
590
|
|
569
591
|
WorkGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "Name"))
|
570
592
|
WorkGroupSummary.add_member(:state, Shapes::ShapeRef.new(shape: WorkGroupState, location_name: "State"))
|
571
593
|
WorkGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
|
572
594
|
WorkGroupSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
|
595
|
+
WorkGroupSummary.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
|
573
596
|
WorkGroupSummary.struct_class = Types::WorkGroupSummary
|
574
597
|
|
575
598
|
WorkGroupsList.member = Shapes::ShapeRef.new(shape: WorkGroupSummary)
|
@@ -785,6 +808,16 @@ module Aws::Athena
|
|
785
808
|
)
|
786
809
|
end)
|
787
810
|
|
811
|
+
api.add_operation(:list_engine_versions, Seahorse::Model::Operation.new.tap do |o|
|
812
|
+
o.name = "ListEngineVersions"
|
813
|
+
o.http_method = "POST"
|
814
|
+
o.http_request_uri = "/"
|
815
|
+
o.input = Shapes::ShapeRef.new(shape: ListEngineVersionsInput)
|
816
|
+
o.output = Shapes::ShapeRef.new(shape: ListEngineVersionsOutput)
|
817
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
818
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
819
|
+
end)
|
820
|
+
|
788
821
|
api.add_operation(:list_named_queries, Seahorse::Model::Operation.new.tap do |o|
|
789
822
|
o.name = "ListNamedQueries"
|
790
823
|
o.http_method = "POST"
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -192,9 +192,14 @@ module Aws::Athena
|
|
192
192
|
# @return [String]
|
193
193
|
#
|
194
194
|
# @!attribute [rw] type
|
195
|
-
# The type of data catalog to create: `LAMBDA` for a federated
|
196
|
-
#
|
197
|
-
#
|
195
|
+
# The type of data catalog to create: `LAMBDA` for a federated catalog
|
196
|
+
# or `HIVE` for an external hive metastore.
|
197
|
+
#
|
198
|
+
# <note markdown="1"> Do not use the `GLUE` type. This refers to the `AwsDataCatalog` that
|
199
|
+
# already exists in your account, of which you can have only one.
|
200
|
+
# Specifying the `GLUE` type will result in an `INVALID_INPUT` error.
|
201
|
+
#
|
202
|
+
# </note>
|
198
203
|
# @return [String]
|
199
204
|
#
|
200
205
|
# @!attribute [rw] description
|
@@ -227,8 +232,6 @@ module Aws::Athena
|
|
227
232
|
# Lambda function.
|
228
233
|
#
|
229
234
|
# `function=lambda_arn `
|
230
|
-
#
|
231
|
-
# * The `GLUE` type has no parameters.
|
232
235
|
# @return [Hash<String,String>]
|
233
236
|
#
|
234
237
|
# @!attribute [rw] tags
|
@@ -342,6 +345,10 @@ module Aws::Athena
|
|
342
345
|
# publish_cloud_watch_metrics_enabled: false,
|
343
346
|
# bytes_scanned_cutoff_per_query: 1,
|
344
347
|
# requester_pays_enabled: false,
|
348
|
+
# engine_version: {
|
349
|
+
# selected_engine_version: "NameString",
|
350
|
+
# effective_engine_version: "NameString",
|
351
|
+
# },
|
345
352
|
# },
|
346
353
|
# description: "WorkGroupDescriptionString",
|
347
354
|
# tags: [
|
@@ -405,8 +412,10 @@ module Aws::Athena
|
|
405
412
|
# @return [String]
|
406
413
|
#
|
407
414
|
# @!attribute [rw] type
|
408
|
-
# The type of data catalog: `LAMBDA` for a federated catalog
|
409
|
-
# for
|
415
|
+
# The type of data catalog: `LAMBDA` for a federated catalog or `HIVE`
|
416
|
+
# for an external hive metastore. `GLUE` refers to the
|
417
|
+
# `AwsDataCatalog` that already exists in your account, of which you
|
418
|
+
# can have only one.
|
410
419
|
# @return [String]
|
411
420
|
#
|
412
421
|
# @!attribute [rw] parameters
|
@@ -434,8 +443,6 @@ module Aws::Athena
|
|
434
443
|
# Lambda function.
|
435
444
|
#
|
436
445
|
# `function=lambda_arn `
|
437
|
-
#
|
438
|
-
# * The `GLUE` type has no parameters.
|
439
446
|
# @return [Hash<String,String>]
|
440
447
|
#
|
441
448
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DataCatalog AWS API Documentation
|
@@ -570,7 +577,7 @@ module Aws::Athena
|
|
570
577
|
#
|
571
578
|
# @!attribute [rw] recursive_delete_option
|
572
579
|
# The option to delete the workgroup and its contents even if the
|
573
|
-
# workgroup contains any named queries.
|
580
|
+
# workgroup contains any named queries or query executions.
|
574
581
|
# @return [Boolean]
|
575
582
|
#
|
576
583
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroupInput AWS API Documentation
|
@@ -622,6 +629,41 @@ module Aws::Athena
|
|
622
629
|
include Aws::Structure
|
623
630
|
end
|
624
631
|
|
632
|
+
# The Athena engine version for running queries.
|
633
|
+
#
|
634
|
+
# @note When making an API call, you may pass EngineVersion
|
635
|
+
# data as a hash:
|
636
|
+
#
|
637
|
+
# {
|
638
|
+
# selected_engine_version: "NameString",
|
639
|
+
# effective_engine_version: "NameString",
|
640
|
+
# }
|
641
|
+
#
|
642
|
+
# @!attribute [rw] selected_engine_version
|
643
|
+
# The engine version requested by the user. Possible values are
|
644
|
+
# determined by the output of `ListEngineVersions`, including Auto.
|
645
|
+
# The default is Auto.
|
646
|
+
# @return [String]
|
647
|
+
#
|
648
|
+
# @!attribute [rw] effective_engine_version
|
649
|
+
# Read only. The engine version on which the query runs. If the user
|
650
|
+
# requests a valid engine version other than Auto, the effective
|
651
|
+
# engine version is the same as the engine version that the user
|
652
|
+
# requested. If the user requests Auto, the effective engine version
|
653
|
+
# is chosen by Athena. When a request to update the engine version is
|
654
|
+
# made by a `CreateWorkGroup` or `UpdateWorkGroup` operation, the
|
655
|
+
# `EffectiveEngineVersion` field is ignored.
|
656
|
+
# @return [String]
|
657
|
+
#
|
658
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EngineVersion AWS API Documentation
|
659
|
+
#
|
660
|
+
class EngineVersion < Struct.new(
|
661
|
+
:selected_engine_version,
|
662
|
+
:effective_engine_version)
|
663
|
+
SENSITIVE = []
|
664
|
+
include Aws::Structure
|
665
|
+
end
|
666
|
+
|
625
667
|
# @note When making an API call, you may pass GetDataCatalogInput
|
626
668
|
# data as a hash:
|
627
669
|
#
|
@@ -1022,6 +1064,54 @@ module Aws::Athena
|
|
1022
1064
|
include Aws::Structure
|
1023
1065
|
end
|
1024
1066
|
|
1067
|
+
# @note When making an API call, you may pass ListEngineVersionsInput
|
1068
|
+
# data as a hash:
|
1069
|
+
#
|
1070
|
+
# {
|
1071
|
+
# next_token: "Token",
|
1072
|
+
# max_results: 1,
|
1073
|
+
# }
|
1074
|
+
#
|
1075
|
+
# @!attribute [rw] next_token
|
1076
|
+
# A token generated by the Athena service that specifies where to
|
1077
|
+
# continue pagination if a previous request was truncated. To obtain
|
1078
|
+
# the next set of pages, pass in the `NextToken` from the response
|
1079
|
+
# object of the previous page call.
|
1080
|
+
# @return [String]
|
1081
|
+
#
|
1082
|
+
# @!attribute [rw] max_results
|
1083
|
+
# The maximum number of engine versions to return in this request.
|
1084
|
+
# @return [Integer]
|
1085
|
+
#
|
1086
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersionsInput AWS API Documentation
|
1087
|
+
#
|
1088
|
+
class ListEngineVersionsInput < Struct.new(
|
1089
|
+
:next_token,
|
1090
|
+
:max_results)
|
1091
|
+
SENSITIVE = []
|
1092
|
+
include Aws::Structure
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
# @!attribute [rw] engine_versions
|
1096
|
+
# A list of engine versions that are available to choose from.
|
1097
|
+
# @return [Array<Types::EngineVersion>]
|
1098
|
+
#
|
1099
|
+
# @!attribute [rw] next_token
|
1100
|
+
# A token generated by the Athena service that specifies where to
|
1101
|
+
# continue pagination if a previous request was truncated. To obtain
|
1102
|
+
# the next set of pages, pass in the `NextToken` from the response
|
1103
|
+
# object of the previous page call.
|
1104
|
+
# @return [String]
|
1105
|
+
#
|
1106
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersionsOutput AWS API Documentation
|
1107
|
+
#
|
1108
|
+
class ListEngineVersionsOutput < Struct.new(
|
1109
|
+
:engine_versions,
|
1110
|
+
:next_token)
|
1111
|
+
SENSITIVE = []
|
1112
|
+
include Aws::Structure
|
1113
|
+
end
|
1114
|
+
|
1025
1115
|
# @note When making an API call, you may pass ListNamedQueriesInput
|
1026
1116
|
# data as a hash:
|
1027
1117
|
#
|
@@ -1280,8 +1370,8 @@ module Aws::Athena
|
|
1280
1370
|
end
|
1281
1371
|
|
1282
1372
|
# @!attribute [rw] work_groups
|
1283
|
-
#
|
1284
|
-
# creation times, and states.
|
1373
|
+
# A list of WorkGroupSummary objects that include the names,
|
1374
|
+
# descriptions, creation times, and states for each workgroup.
|
1285
1375
|
# @return [Array<Types::WorkGroupSummary>]
|
1286
1376
|
#
|
1287
1377
|
# @!attribute [rw] next_token
|
@@ -1404,6 +1494,10 @@ module Aws::Athena
|
|
1404
1494
|
# The name of the workgroup in which the query ran.
|
1405
1495
|
# @return [String]
|
1406
1496
|
#
|
1497
|
+
# @!attribute [rw] engine_version
|
1498
|
+
# The engine version that executed the query.
|
1499
|
+
# @return [Types::EngineVersion]
|
1500
|
+
#
|
1407
1501
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
|
1408
1502
|
#
|
1409
1503
|
class QueryExecution < Struct.new(
|
@@ -1414,7 +1508,8 @@ module Aws::Athena
|
|
1414
1508
|
:query_execution_context,
|
1415
1509
|
:status,
|
1416
1510
|
:statistics,
|
1417
|
-
:work_group
|
1511
|
+
:work_group,
|
1512
|
+
:engine_version)
|
1418
1513
|
SENSITIVE = []
|
1419
1514
|
include Aws::Structure
|
1420
1515
|
end
|
@@ -2114,8 +2209,13 @@ module Aws::Athena
|
|
2114
2209
|
#
|
2115
2210
|
# @!attribute [rw] type
|
2116
2211
|
# Specifies the type of data catalog to update. Specify `LAMBDA` for a
|
2117
|
-
# federated catalog
|
2118
|
-
#
|
2212
|
+
# federated catalog or `HIVE` for an external hive metastore.
|
2213
|
+
#
|
2214
|
+
# <note markdown="1"> Do not use the `GLUE` type. This refers to the `AwsDataCatalog` that
|
2215
|
+
# already exists in your account, of which you can have only one.
|
2216
|
+
# Specifying the `GLUE` type will result in an `INVALID_INPUT` error.
|
2217
|
+
#
|
2218
|
+
# </note>
|
2119
2219
|
# @return [String]
|
2120
2220
|
#
|
2121
2221
|
# @!attribute [rw] description
|
@@ -2148,8 +2248,6 @@ module Aws::Athena
|
|
2148
2248
|
# Lambda function.
|
2149
2249
|
#
|
2150
2250
|
# `function=lambda_arn `
|
2151
|
-
#
|
2152
|
-
# * The `GLUE` type has no parameters.
|
2153
2251
|
# @return [Hash<String,String>]
|
2154
2252
|
#
|
2155
2253
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalogInput AWS API Documentation
|
@@ -2188,6 +2286,10 @@ module Aws::Athena
|
|
2188
2286
|
# bytes_scanned_cutoff_per_query: 1,
|
2189
2287
|
# remove_bytes_scanned_cutoff_per_query: false,
|
2190
2288
|
# requester_pays_enabled: false,
|
2289
|
+
# engine_version: {
|
2290
|
+
# selected_engine_version: "NameString",
|
2291
|
+
# effective_engine_version: "NameString",
|
2292
|
+
# },
|
2191
2293
|
# },
|
2192
2294
|
# state: "ENABLED", # accepts ENABLED, DISABLED
|
2193
2295
|
# }
|
@@ -2302,6 +2404,10 @@ module Aws::Athena
|
|
2302
2404
|
# publish_cloud_watch_metrics_enabled: false,
|
2303
2405
|
# bytes_scanned_cutoff_per_query: 1,
|
2304
2406
|
# requester_pays_enabled: false,
|
2407
|
+
# engine_version: {
|
2408
|
+
# selected_engine_version: "NameString",
|
2409
|
+
# effective_engine_version: "NameString",
|
2410
|
+
# },
|
2305
2411
|
# }
|
2306
2412
|
#
|
2307
2413
|
# @!attribute [rw] result_configuration
|
@@ -2354,6 +2460,12 @@ module Aws::Athena
|
|
2354
2460
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
|
2355
2461
|
# @return [Boolean]
|
2356
2462
|
#
|
2463
|
+
# @!attribute [rw] engine_version
|
2464
|
+
# The engine version that all queries running on the workgroup use.
|
2465
|
+
# Queries on the `AmazonAthenaPreviewFunctionality` workgroup run on
|
2466
|
+
# the preview engine regardless of this setting.
|
2467
|
+
# @return [Types::EngineVersion]
|
2468
|
+
#
|
2357
2469
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupConfiguration AWS API Documentation
|
2358
2470
|
#
|
2359
2471
|
class WorkGroupConfiguration < Struct.new(
|
@@ -2361,7 +2473,8 @@ module Aws::Athena
|
|
2361
2473
|
:enforce_work_group_configuration,
|
2362
2474
|
:publish_cloud_watch_metrics_enabled,
|
2363
2475
|
:bytes_scanned_cutoff_per_query,
|
2364
|
-
:requester_pays_enabled
|
2476
|
+
:requester_pays_enabled,
|
2477
|
+
:engine_version)
|
2365
2478
|
SENSITIVE = []
|
2366
2479
|
include Aws::Structure
|
2367
2480
|
end
|
@@ -2392,6 +2505,10 @@ module Aws::Athena
|
|
2392
2505
|
# bytes_scanned_cutoff_per_query: 1,
|
2393
2506
|
# remove_bytes_scanned_cutoff_per_query: false,
|
2394
2507
|
# requester_pays_enabled: false,
|
2508
|
+
# engine_version: {
|
2509
|
+
# selected_engine_version: "NameString",
|
2510
|
+
# effective_engine_version: "NameString",
|
2511
|
+
# },
|
2395
2512
|
# }
|
2396
2513
|
#
|
2397
2514
|
# @!attribute [rw] enforce_work_group_configuration
|
@@ -2440,6 +2557,14 @@ module Aws::Athena
|
|
2440
2557
|
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
|
2441
2558
|
# @return [Boolean]
|
2442
2559
|
#
|
2560
|
+
# @!attribute [rw] engine_version
|
2561
|
+
# The engine version requested when a workgroup is updated. After the
|
2562
|
+
# update, all queries on the workgroup run on the requested engine
|
2563
|
+
# version. If no value was previously set, the default is Auto.
|
2564
|
+
# Queries on the `AmazonAthenaPreviewFunctionality` workgroup run on
|
2565
|
+
# the preview engine regardless of this setting.
|
2566
|
+
# @return [Types::EngineVersion]
|
2567
|
+
#
|
2443
2568
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupConfigurationUpdates AWS API Documentation
|
2444
2569
|
#
|
2445
2570
|
class WorkGroupConfigurationUpdates < Struct.new(
|
@@ -2448,7 +2573,8 @@ module Aws::Athena
|
|
2448
2573
|
:publish_cloud_watch_metrics_enabled,
|
2449
2574
|
:bytes_scanned_cutoff_per_query,
|
2450
2575
|
:remove_bytes_scanned_cutoff_per_query,
|
2451
|
-
:requester_pays_enabled
|
2576
|
+
:requester_pays_enabled,
|
2577
|
+
:engine_version)
|
2452
2578
|
SENSITIVE = []
|
2453
2579
|
include Aws::Structure
|
2454
2580
|
end
|
@@ -2472,13 +2598,20 @@ module Aws::Athena
|
|
2472
2598
|
# The workgroup creation date and time.
|
2473
2599
|
# @return [Time]
|
2474
2600
|
#
|
2601
|
+
# @!attribute [rw] engine_version
|
2602
|
+
# The engine version setting for all queries on the workgroup. Queries
|
2603
|
+
# on the `AmazonAthenaPreviewFunctionality` workgroup run on the
|
2604
|
+
# preview engine regardless of this setting.
|
2605
|
+
# @return [Types::EngineVersion]
|
2606
|
+
#
|
2475
2607
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupSummary AWS API Documentation
|
2476
2608
|
#
|
2477
2609
|
class WorkGroupSummary < Struct.new(
|
2478
2610
|
:name,
|
2479
2611
|
:state,
|
2480
2612
|
:description,
|
2481
|
-
:creation_time
|
2613
|
+
:creation_time,
|
2614
|
+
:engine_version)
|
2482
2615
|
SENSITIVE = []
|
2483
2616
|
include Aws::Structure
|
2484
2617
|
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.
|
4
|
+
version: 1.35.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-02-
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|