aws-sdk-athena 1.32.0 → 1.37.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.
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -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
- # catalog, `GLUE` for AWS Glue Catalog, or `HIVE` for an external hive
197
- # metastore.
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
@@ -325,6 +328,47 @@ module Aws::Athena
325
328
  include Aws::Structure
326
329
  end
327
330
 
331
+ # @note When making an API call, you may pass CreatePreparedStatementInput
332
+ # data as a hash:
333
+ #
334
+ # {
335
+ # statement_name: "StatementName", # required
336
+ # work_group: "WorkGroupName", # required
337
+ # query_statement: "QueryString", # required
338
+ # description: "DescriptionString",
339
+ # }
340
+ #
341
+ # @!attribute [rw] statement_name
342
+ # The name of the prepared statement.
343
+ # @return [String]
344
+ #
345
+ # @!attribute [rw] work_group
346
+ # The name of the workgroup to which the prepared statement belongs.
347
+ # @return [String]
348
+ #
349
+ # @!attribute [rw] query_statement
350
+ # The query string for the prepared statement.
351
+ # @return [String]
352
+ #
353
+ # @!attribute [rw] description
354
+ # The description of the prepared statement.
355
+ # @return [String]
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatementInput AWS API Documentation
358
+ #
359
+ class CreatePreparedStatementInput < Struct.new(
360
+ :statement_name,
361
+ :work_group,
362
+ :query_statement,
363
+ :description)
364
+ SENSITIVE = []
365
+ include Aws::Structure
366
+ end
367
+
368
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreatePreparedStatementOutput AWS API Documentation
369
+ #
370
+ class CreatePreparedStatementOutput < Aws::EmptyStructure; end
371
+
328
372
  # @note When making an API call, you may pass CreateWorkGroupInput
329
373
  # data as a hash:
330
374
  #
@@ -342,6 +386,10 @@ module Aws::Athena
342
386
  # publish_cloud_watch_metrics_enabled: false,
343
387
  # bytes_scanned_cutoff_per_query: 1,
344
388
  # requester_pays_enabled: false,
389
+ # engine_version: {
390
+ # selected_engine_version: "NameString",
391
+ # effective_engine_version: "NameString",
392
+ # },
345
393
  # },
346
394
  # description: "WorkGroupDescriptionString",
347
395
  # tags: [
@@ -405,8 +453,10 @@ module Aws::Athena
405
453
  # @return [String]
406
454
  #
407
455
  # @!attribute [rw] type
408
- # The type of data catalog: `LAMBDA` for a federated catalog, `GLUE`
409
- # for AWS Glue Catalog, or `HIVE` for an external hive metastore.
456
+ # The type of data catalog: `LAMBDA` for a federated catalog or `HIVE`
457
+ # for an external hive metastore. `GLUE` refers to the
458
+ # `AwsDataCatalog` that already exists in your account, of which you
459
+ # can have only one.
410
460
  # @return [String]
411
461
  #
412
462
  # @!attribute [rw] parameters
@@ -434,8 +484,6 @@ module Aws::Athena
434
484
  # Lambda function.
435
485
  #
436
486
  # `function=lambda_arn `
437
- #
438
- # * The `GLUE` type has no parameters.
439
487
  # @return [Hash<String,String>]
440
488
  #
441
489
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DataCatalog AWS API Documentation
@@ -556,6 +604,35 @@ module Aws::Athena
556
604
  #
557
605
  class DeleteNamedQueryOutput < Aws::EmptyStructure; end
558
606
 
607
+ # @note When making an API call, you may pass DeletePreparedStatementInput
608
+ # data as a hash:
609
+ #
610
+ # {
611
+ # statement_name: "StatementName", # required
612
+ # work_group: "WorkGroupName", # required
613
+ # }
614
+ #
615
+ # @!attribute [rw] statement_name
616
+ # The name of the prepared statement to delete.
617
+ # @return [String]
618
+ #
619
+ # @!attribute [rw] work_group
620
+ # The workgroup to which the statement to be deleted belongs.
621
+ # @return [String]
622
+ #
623
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatementInput AWS API Documentation
624
+ #
625
+ class DeletePreparedStatementInput < Struct.new(
626
+ :statement_name,
627
+ :work_group)
628
+ SENSITIVE = []
629
+ include Aws::Structure
630
+ end
631
+
632
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeletePreparedStatementOutput AWS API Documentation
633
+ #
634
+ class DeletePreparedStatementOutput < Aws::EmptyStructure; end
635
+
559
636
  # @note When making an API call, you may pass DeleteWorkGroupInput
560
637
  # data as a hash:
561
638
  #
@@ -570,7 +647,7 @@ module Aws::Athena
570
647
  #
571
648
  # @!attribute [rw] recursive_delete_option
572
649
  # The option to delete the workgroup and its contents even if the
573
- # workgroup contains any named queries.
650
+ # workgroup contains any named queries or query executions.
574
651
  # @return [Boolean]
575
652
  #
576
653
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteWorkGroupInput AWS API Documentation
@@ -622,6 +699,41 @@ module Aws::Athena
622
699
  include Aws::Structure
623
700
  end
624
701
 
702
+ # The Athena engine version for running queries.
703
+ #
704
+ # @note When making an API call, you may pass EngineVersion
705
+ # data as a hash:
706
+ #
707
+ # {
708
+ # selected_engine_version: "NameString",
709
+ # effective_engine_version: "NameString",
710
+ # }
711
+ #
712
+ # @!attribute [rw] selected_engine_version
713
+ # The engine version requested by the user. Possible values are
714
+ # determined by the output of `ListEngineVersions`, including Auto.
715
+ # The default is Auto.
716
+ # @return [String]
717
+ #
718
+ # @!attribute [rw] effective_engine_version
719
+ # Read only. The engine version on which the query runs. If the user
720
+ # requests a valid engine version other than Auto, the effective
721
+ # engine version is the same as the engine version that the user
722
+ # requested. If the user requests Auto, the effective engine version
723
+ # is chosen by Athena. When a request to update the engine version is
724
+ # made by a `CreateWorkGroup` or `UpdateWorkGroup` operation, the
725
+ # `EffectiveEngineVersion` field is ignored.
726
+ # @return [String]
727
+ #
728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EngineVersion AWS API Documentation
729
+ #
730
+ class EngineVersion < Struct.new(
731
+ :selected_engine_version,
732
+ :effective_engine_version)
733
+ SENSITIVE = []
734
+ include Aws::Structure
735
+ end
736
+
625
737
  # @note When making an API call, you may pass GetDataCatalogInput
626
738
  # data as a hash:
627
739
  #
@@ -721,6 +833,43 @@ module Aws::Athena
721
833
  include Aws::Structure
722
834
  end
723
835
 
836
+ # @note When making an API call, you may pass GetPreparedStatementInput
837
+ # data as a hash:
838
+ #
839
+ # {
840
+ # statement_name: "StatementName", # required
841
+ # work_group: "WorkGroupName", # required
842
+ # }
843
+ #
844
+ # @!attribute [rw] statement_name
845
+ # The name of the prepared statement to retrieve.
846
+ # @return [String]
847
+ #
848
+ # @!attribute [rw] work_group
849
+ # The workgroup to which the statement to be retrieved belongs.
850
+ # @return [String]
851
+ #
852
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatementInput AWS API Documentation
853
+ #
854
+ class GetPreparedStatementInput < Struct.new(
855
+ :statement_name,
856
+ :work_group)
857
+ SENSITIVE = []
858
+ include Aws::Structure
859
+ end
860
+
861
+ # @!attribute [rw] prepared_statement
862
+ # The name of the prepared statement that was retrieved.
863
+ # @return [Types::PreparedStatement]
864
+ #
865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetPreparedStatementOutput AWS API Documentation
866
+ #
867
+ class GetPreparedStatementOutput < Struct.new(
868
+ :prepared_statement)
869
+ SENSITIVE = []
870
+ include Aws::Structure
871
+ end
872
+
724
873
  # @note When making an API call, you may pass GetQueryExecutionInput
725
874
  # data as a hash:
726
875
  #
@@ -1022,6 +1171,54 @@ module Aws::Athena
1022
1171
  include Aws::Structure
1023
1172
  end
1024
1173
 
1174
+ # @note When making an API call, you may pass ListEngineVersionsInput
1175
+ # data as a hash:
1176
+ #
1177
+ # {
1178
+ # next_token: "Token",
1179
+ # max_results: 1,
1180
+ # }
1181
+ #
1182
+ # @!attribute [rw] next_token
1183
+ # A token generated by the Athena service that specifies where to
1184
+ # continue pagination if a previous request was truncated. To obtain
1185
+ # the next set of pages, pass in the `NextToken` from the response
1186
+ # object of the previous page call.
1187
+ # @return [String]
1188
+ #
1189
+ # @!attribute [rw] max_results
1190
+ # The maximum number of engine versions to return in this request.
1191
+ # @return [Integer]
1192
+ #
1193
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersionsInput AWS API Documentation
1194
+ #
1195
+ class ListEngineVersionsInput < Struct.new(
1196
+ :next_token,
1197
+ :max_results)
1198
+ SENSITIVE = []
1199
+ include Aws::Structure
1200
+ end
1201
+
1202
+ # @!attribute [rw] engine_versions
1203
+ # A list of engine versions that are available to choose from.
1204
+ # @return [Array<Types::EngineVersion>]
1205
+ #
1206
+ # @!attribute [rw] next_token
1207
+ # A token generated by the Athena service that specifies where to
1208
+ # continue pagination if a previous request was truncated. To obtain
1209
+ # the next set of pages, pass in the `NextToken` from the response
1210
+ # object of the previous page call.
1211
+ # @return [String]
1212
+ #
1213
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListEngineVersionsOutput AWS API Documentation
1214
+ #
1215
+ class ListEngineVersionsOutput < Struct.new(
1216
+ :engine_versions,
1217
+ :next_token)
1218
+ SENSITIVE = []
1219
+ include Aws::Structure
1220
+ end
1221
+
1025
1222
  # @note When making an API call, you may pass ListNamedQueriesInput
1026
1223
  # data as a hash:
1027
1224
  #
@@ -1078,6 +1275,60 @@ module Aws::Athena
1078
1275
  include Aws::Structure
1079
1276
  end
1080
1277
 
1278
+ # @note When making an API call, you may pass ListPreparedStatementsInput
1279
+ # data as a hash:
1280
+ #
1281
+ # {
1282
+ # work_group: "WorkGroupName", # required
1283
+ # next_token: "Token",
1284
+ # max_results: 1,
1285
+ # }
1286
+ #
1287
+ # @!attribute [rw] work_group
1288
+ # The workgroup to list the prepared statements for.
1289
+ # @return [String]
1290
+ #
1291
+ # @!attribute [rw] next_token
1292
+ # A token generated by the Athena service that specifies where to
1293
+ # continue pagination if a previous request was truncated. To obtain
1294
+ # the next set of pages, pass in the `NextToken` from the response
1295
+ # object of the previous page call.
1296
+ # @return [String]
1297
+ #
1298
+ # @!attribute [rw] max_results
1299
+ # The maximum number of results to return in this request.
1300
+ # @return [Integer]
1301
+ #
1302
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatementsInput AWS API Documentation
1303
+ #
1304
+ class ListPreparedStatementsInput < Struct.new(
1305
+ :work_group,
1306
+ :next_token,
1307
+ :max_results)
1308
+ SENSITIVE = []
1309
+ include Aws::Structure
1310
+ end
1311
+
1312
+ # @!attribute [rw] prepared_statements
1313
+ # The list of prepared statements for the workgroup.
1314
+ # @return [Array<Types::PreparedStatementSummary>]
1315
+ #
1316
+ # @!attribute [rw] next_token
1317
+ # A token generated by the Athena service that specifies where to
1318
+ # continue pagination if a previous request was truncated. To obtain
1319
+ # the next set of pages, pass in the `NextToken` from the response
1320
+ # object of the previous page call.
1321
+ # @return [String]
1322
+ #
1323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListPreparedStatementsOutput AWS API Documentation
1324
+ #
1325
+ class ListPreparedStatementsOutput < Struct.new(
1326
+ :prepared_statements,
1327
+ :next_token)
1328
+ SENSITIVE = []
1329
+ include Aws::Structure
1330
+ end
1331
+
1081
1332
  # @note When making an API call, you may pass ListQueryExecutionsInput
1082
1333
  # data as a hash:
1083
1334
  #
@@ -1280,8 +1531,8 @@ module Aws::Athena
1280
1531
  end
1281
1532
 
1282
1533
  # @!attribute [rw] work_groups
1283
- # The list of workgroups, including their names, descriptions,
1284
- # creation times, and states.
1534
+ # A list of WorkGroupSummary objects that include the names,
1535
+ # descriptions, creation times, and states for each workgroup.
1285
1536
  # @return [Array<Types::WorkGroupSummary>]
1286
1537
  #
1287
1538
  # @!attribute [rw] next_token
@@ -1358,6 +1609,59 @@ module Aws::Athena
1358
1609
  include Aws::Structure
1359
1610
  end
1360
1611
 
1612
+ # A prepared SQL statement for use with Athena.
1613
+ #
1614
+ # @!attribute [rw] statement_name
1615
+ # The name of the prepared statement.
1616
+ # @return [String]
1617
+ #
1618
+ # @!attribute [rw] query_statement
1619
+ # The query string for the prepared statement.
1620
+ # @return [String]
1621
+ #
1622
+ # @!attribute [rw] work_group_name
1623
+ # The name of the workgroup to which the prepared statement belongs.
1624
+ # @return [String]
1625
+ #
1626
+ # @!attribute [rw] description
1627
+ # The description of the prepared statement.
1628
+ # @return [String]
1629
+ #
1630
+ # @!attribute [rw] last_modified_time
1631
+ # The last modified time of the prepared statement.
1632
+ # @return [Time]
1633
+ #
1634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PreparedStatement AWS API Documentation
1635
+ #
1636
+ class PreparedStatement < Struct.new(
1637
+ :statement_name,
1638
+ :query_statement,
1639
+ :work_group_name,
1640
+ :description,
1641
+ :last_modified_time)
1642
+ SENSITIVE = []
1643
+ include Aws::Structure
1644
+ end
1645
+
1646
+ # The name and last modified time of the prepared statement.
1647
+ #
1648
+ # @!attribute [rw] statement_name
1649
+ # The name of the prepared statement.
1650
+ # @return [String]
1651
+ #
1652
+ # @!attribute [rw] last_modified_time
1653
+ # The last modified time of the prepared statement.
1654
+ # @return [Time]
1655
+ #
1656
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PreparedStatementSummary AWS API Documentation
1657
+ #
1658
+ class PreparedStatementSummary < Struct.new(
1659
+ :statement_name,
1660
+ :last_modified_time)
1661
+ SENSITIVE = []
1662
+ include Aws::Structure
1663
+ end
1664
+
1361
1665
  # Information about a single instance of a query execution.
1362
1666
  #
1363
1667
  # @!attribute [rw] query_execution_id
@@ -1404,6 +1708,10 @@ module Aws::Athena
1404
1708
  # The name of the workgroup in which the query ran.
1405
1709
  # @return [String]
1406
1710
  #
1711
+ # @!attribute [rw] engine_version
1712
+ # The engine version that executed the query.
1713
+ # @return [Types::EngineVersion]
1714
+ #
1407
1715
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
1408
1716
  #
1409
1717
  class QueryExecution < Struct.new(
@@ -1414,7 +1722,8 @@ module Aws::Athena
1414
1722
  :query_execution_context,
1415
1723
  :status,
1416
1724
  :statistics,
1417
- :work_group)
1725
+ :work_group,
1726
+ :engine_version)
1418
1727
  SENSITIVE = []
1419
1728
  include Aws::Structure
1420
1729
  end
@@ -2114,8 +2423,13 @@ module Aws::Athena
2114
2423
  #
2115
2424
  # @!attribute [rw] type
2116
2425
  # Specifies the type of data catalog to update. Specify `LAMBDA` for a
2117
- # federated catalog, `GLUE` for AWS Glue Catalog, or `HIVE` for an
2118
- # external hive metastore.
2426
+ # federated catalog or `HIVE` for an external hive metastore.
2427
+ #
2428
+ # <note markdown="1"> Do not use the `GLUE` type. This refers to the `AwsDataCatalog` that
2429
+ # already exists in your account, of which you can have only one.
2430
+ # Specifying the `GLUE` type will result in an `INVALID_INPUT` error.
2431
+ #
2432
+ # </note>
2119
2433
  # @return [String]
2120
2434
  #
2121
2435
  # @!attribute [rw] description
@@ -2148,8 +2462,6 @@ module Aws::Athena
2148
2462
  # Lambda function.
2149
2463
  #
2150
2464
  # `function=lambda_arn `
2151
- #
2152
- # * The `GLUE` type has no parameters.
2153
2465
  # @return [Hash<String,String>]
2154
2466
  #
2155
2467
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateDataCatalogInput AWS API Documentation
@@ -2167,6 +2479,47 @@ module Aws::Athena
2167
2479
  #
2168
2480
  class UpdateDataCatalogOutput < Aws::EmptyStructure; end
2169
2481
 
2482
+ # @note When making an API call, you may pass UpdatePreparedStatementInput
2483
+ # data as a hash:
2484
+ #
2485
+ # {
2486
+ # statement_name: "StatementName", # required
2487
+ # work_group: "WorkGroupName", # required
2488
+ # query_statement: "QueryString", # required
2489
+ # description: "DescriptionString",
2490
+ # }
2491
+ #
2492
+ # @!attribute [rw] statement_name
2493
+ # The name of the prepared statement.
2494
+ # @return [String]
2495
+ #
2496
+ # @!attribute [rw] work_group
2497
+ # The workgroup for the prepared statement.
2498
+ # @return [String]
2499
+ #
2500
+ # @!attribute [rw] query_statement
2501
+ # The query string for the prepared statement.
2502
+ # @return [String]
2503
+ #
2504
+ # @!attribute [rw] description
2505
+ # The description of the prepared statement.
2506
+ # @return [String]
2507
+ #
2508
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatementInput AWS API Documentation
2509
+ #
2510
+ class UpdatePreparedStatementInput < Struct.new(
2511
+ :statement_name,
2512
+ :work_group,
2513
+ :query_statement,
2514
+ :description)
2515
+ SENSITIVE = []
2516
+ include Aws::Structure
2517
+ end
2518
+
2519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdatePreparedStatementOutput AWS API Documentation
2520
+ #
2521
+ class UpdatePreparedStatementOutput < Aws::EmptyStructure; end
2522
+
2170
2523
  # @note When making an API call, you may pass UpdateWorkGroupInput
2171
2524
  # data as a hash:
2172
2525
  #
@@ -2188,6 +2541,10 @@ module Aws::Athena
2188
2541
  # bytes_scanned_cutoff_per_query: 1,
2189
2542
  # remove_bytes_scanned_cutoff_per_query: false,
2190
2543
  # requester_pays_enabled: false,
2544
+ # engine_version: {
2545
+ # selected_engine_version: "NameString",
2546
+ # effective_engine_version: "NameString",
2547
+ # },
2191
2548
  # },
2192
2549
  # state: "ENABLED", # accepts ENABLED, DISABLED
2193
2550
  # }
@@ -2302,6 +2659,10 @@ module Aws::Athena
2302
2659
  # publish_cloud_watch_metrics_enabled: false,
2303
2660
  # bytes_scanned_cutoff_per_query: 1,
2304
2661
  # requester_pays_enabled: false,
2662
+ # engine_version: {
2663
+ # selected_engine_version: "NameString",
2664
+ # effective_engine_version: "NameString",
2665
+ # },
2305
2666
  # }
2306
2667
  #
2307
2668
  # @!attribute [rw] result_configuration
@@ -2354,6 +2715,12 @@ module Aws::Athena
2354
2715
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
2355
2716
  # @return [Boolean]
2356
2717
  #
2718
+ # @!attribute [rw] engine_version
2719
+ # The engine version that all queries running on the workgroup use.
2720
+ # Queries on the `AmazonAthenaPreviewFunctionality` workgroup run on
2721
+ # the preview engine regardless of this setting.
2722
+ # @return [Types::EngineVersion]
2723
+ #
2357
2724
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupConfiguration AWS API Documentation
2358
2725
  #
2359
2726
  class WorkGroupConfiguration < Struct.new(
@@ -2361,7 +2728,8 @@ module Aws::Athena
2361
2728
  :enforce_work_group_configuration,
2362
2729
  :publish_cloud_watch_metrics_enabled,
2363
2730
  :bytes_scanned_cutoff_per_query,
2364
- :requester_pays_enabled)
2731
+ :requester_pays_enabled,
2732
+ :engine_version)
2365
2733
  SENSITIVE = []
2366
2734
  include Aws::Structure
2367
2735
  end
@@ -2392,6 +2760,10 @@ module Aws::Athena
2392
2760
  # bytes_scanned_cutoff_per_query: 1,
2393
2761
  # remove_bytes_scanned_cutoff_per_query: false,
2394
2762
  # requester_pays_enabled: false,
2763
+ # engine_version: {
2764
+ # selected_engine_version: "NameString",
2765
+ # effective_engine_version: "NameString",
2766
+ # },
2395
2767
  # }
2396
2768
  #
2397
2769
  # @!attribute [rw] enforce_work_group_configuration
@@ -2440,6 +2812,14 @@ module Aws::Athena
2440
2812
  # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/RequesterPaysBuckets.html
2441
2813
  # @return [Boolean]
2442
2814
  #
2815
+ # @!attribute [rw] engine_version
2816
+ # The engine version requested when a workgroup is updated. After the
2817
+ # update, all queries on the workgroup run on the requested engine
2818
+ # version. If no value was previously set, the default is Auto.
2819
+ # Queries on the `AmazonAthenaPreviewFunctionality` workgroup run on
2820
+ # the preview engine regardless of this setting.
2821
+ # @return [Types::EngineVersion]
2822
+ #
2443
2823
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupConfigurationUpdates AWS API Documentation
2444
2824
  #
2445
2825
  class WorkGroupConfigurationUpdates < Struct.new(
@@ -2448,7 +2828,8 @@ module Aws::Athena
2448
2828
  :publish_cloud_watch_metrics_enabled,
2449
2829
  :bytes_scanned_cutoff_per_query,
2450
2830
  :remove_bytes_scanned_cutoff_per_query,
2451
- :requester_pays_enabled)
2831
+ :requester_pays_enabled,
2832
+ :engine_version)
2452
2833
  SENSITIVE = []
2453
2834
  include Aws::Structure
2454
2835
  end
@@ -2472,13 +2853,20 @@ module Aws::Athena
2472
2853
  # The workgroup creation date and time.
2473
2854
  # @return [Time]
2474
2855
  #
2856
+ # @!attribute [rw] engine_version
2857
+ # The engine version setting for all queries on the workgroup. Queries
2858
+ # on the `AmazonAthenaPreviewFunctionality` workgroup run on the
2859
+ # preview engine regardless of this setting.
2860
+ # @return [Types::EngineVersion]
2861
+ #
2475
2862
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/WorkGroupSummary AWS API Documentation
2476
2863
  #
2477
2864
  class WorkGroupSummary < Struct.new(
2478
2865
  :name,
2479
2866
  :state,
2480
2867
  :description,
2481
- :creation_time)
2868
+ :creation_time,
2869
+ :engine_version)
2482
2870
  SENSITIVE = []
2483
2871
  include Aws::Structure
2484
2872
  end