aws-sdk-athena 1.52.0 → 1.55.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8b8b6530d32dc05758dff613a83c110600fb7830f0ffaf07d516686f8f43b9e
4
- data.tar.gz: e49d2175aa7b1a4d078fb2d751df78db378b779b64bfd7d4b9951598d2fd879a
3
+ metadata.gz: d93a10bf117ae8c6ab4bb6e57c3fbe33d4b116abe69e9f38786486ebba621cfb
4
+ data.tar.gz: c08af9b491cbacbd85e97ed2a1e9b93fc56a716704e33ed780fe738d14da62d3
5
5
  SHA512:
6
- metadata.gz: bbf9867493f0ab6a68ca13fb32914dad2b888f0250022969053020aaf5766c7c45bbcbe42158b24ef557b6678f3419476813baa52c91290d8d06f2657259e2d2
7
- data.tar.gz: 6b9a5ba85d3db12347c340493db813ad4b2d27270509b4e00689eaa8a26d2467f7be8d0e9a6f65762d8ed504d9fce4e75e9a20b01be67eb23228b73250342e97
6
+ metadata.gz: 88a9ab5998ed7f54646b12ca95e92ede86b620ef0cbd6686d081862cc145b0b906772de30601fb0e9701911919e3c67c5fe9f7e11dbb0bf487d503e05e1e9e04
7
+ data.tar.gz: e4113fed8f2052810d2db2883fed1715e46790e43595357b0c29cbfb71fe3a18a7ebb3a7313b63178bd067b84af0521281f7b2a901f94782aec384528b14d1e0
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.55.0 (2022-07-14)
5
+ ------------------
6
+
7
+ * Feature - This release updates data types that contain either QueryExecutionId, NamedQueryId or ExpectedBucketOwner. Ids must be between 1 and 128 characters and contain only non-whitespace characters. ExpectedBucketOwner must be 12-digit string.
8
+
9
+ 1.54.0 (2022-06-30)
10
+ ------------------
11
+
12
+ * Feature - This feature introduces the API support for Athena's parameterized query and BatchGetPreparedStatement API.
13
+
14
+ 1.53.0 (2022-04-15)
15
+ ------------------
16
+
17
+ * Feature - This release adds subfields, ErrorMessage, Retryable, to the AthenaError response object in the GetQueryExecution API when a query fails.
18
+
4
19
  1.52.0 (2022-03-02)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.52.0
1
+ 1.55.0
@@ -409,6 +409,53 @@ module Aws::Athena
409
409
  req.send_request(options)
410
410
  end
411
411
 
412
+ # Returns the details of a single prepared statement or a list of up to
413
+ # 256 prepared statements for the array of prepared statement names that
414
+ # you provide. Requires you to have access to the workgroup to which the
415
+ # prepared statements belong. If a prepared statement cannot be
416
+ # retrieved for the name specified, the statement is listed in
417
+ # `UnprocessedPreparedStatementNames`.
418
+ #
419
+ # @option params [required, Array<String>] :prepared_statement_names
420
+ # A list of prepared statement names to return.
421
+ #
422
+ # @option params [required, String] :work_group
423
+ # The name of the workgroup to which the prepared statements belong.
424
+ #
425
+ # @return [Types::BatchGetPreparedStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
426
+ #
427
+ # * {Types::BatchGetPreparedStatementOutput#prepared_statements #prepared_statements} => Array&lt;Types::PreparedStatement&gt;
428
+ # * {Types::BatchGetPreparedStatementOutput#unprocessed_prepared_statement_names #unprocessed_prepared_statement_names} => Array&lt;Types::UnprocessedPreparedStatementName&gt;
429
+ #
430
+ # @example Request syntax with placeholder values
431
+ #
432
+ # resp = client.batch_get_prepared_statement({
433
+ # prepared_statement_names: ["StatementName"], # required
434
+ # work_group: "WorkGroupName", # required
435
+ # })
436
+ #
437
+ # @example Response structure
438
+ #
439
+ # resp.prepared_statements #=> Array
440
+ # resp.prepared_statements[0].statement_name #=> String
441
+ # resp.prepared_statements[0].query_statement #=> String
442
+ # resp.prepared_statements[0].work_group_name #=> String
443
+ # resp.prepared_statements[0].description #=> String
444
+ # resp.prepared_statements[0].last_modified_time #=> Time
445
+ # resp.unprocessed_prepared_statement_names #=> Array
446
+ # resp.unprocessed_prepared_statement_names[0].statement_name #=> String
447
+ # resp.unprocessed_prepared_statement_names[0].error_code #=> String
448
+ # resp.unprocessed_prepared_statement_names[0].error_message #=> String
449
+ #
450
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatement AWS API Documentation
451
+ #
452
+ # @overload batch_get_prepared_statement(params = {})
453
+ # @param [Hash] params ({})
454
+ def batch_get_prepared_statement(params = {}, options = {})
455
+ req = build_request(:batch_get_prepared_statement, params)
456
+ req.send_request(options)
457
+ end
458
+
412
459
  # Returns the details of a single query execution or a list of up to 50
413
460
  # query executions, which you provide as an array of query execution ID
414
461
  # strings. Requires you to have access to the workgroup in which the
@@ -450,6 +497,8 @@ module Aws::Athena
450
497
  # resp.query_executions[0].status.completion_date_time #=> Time
451
498
  # resp.query_executions[0].status.athena_error.error_category #=> Integer
452
499
  # resp.query_executions[0].status.athena_error.error_type #=> Integer
500
+ # resp.query_executions[0].status.athena_error.retryable #=> Boolean
501
+ # resp.query_executions[0].status.athena_error.error_message #=> String
453
502
  # resp.query_executions[0].statistics.engine_execution_time_in_millis #=> Integer
454
503
  # resp.query_executions[0].statistics.data_scanned_in_bytes #=> Integer
455
504
  # resp.query_executions[0].statistics.data_manifest_location #=> String
@@ -460,6 +509,8 @@ module Aws::Athena
460
509
  # resp.query_executions[0].work_group #=> String
461
510
  # resp.query_executions[0].engine_version.selected_engine_version #=> String
462
511
  # resp.query_executions[0].engine_version.effective_engine_version #=> String
512
+ # resp.query_executions[0].execution_parameters #=> Array
513
+ # resp.query_executions[0].execution_parameters[0] #=> String
463
514
  # resp.unprocessed_query_execution_ids #=> Array
464
515
  # resp.unprocessed_query_execution_ids[0].query_execution_id #=> String
465
516
  # resp.unprocessed_query_execution_ids[0].error_code #=> String
@@ -703,12 +754,12 @@ module Aws::Athena
703
754
  # name: "WorkGroupName", # required
704
755
  # configuration: {
705
756
  # result_configuration: {
706
- # output_location: "String",
757
+ # output_location: "ResultOutputLocation",
707
758
  # encryption_configuration: {
708
759
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
709
760
  # kms_key: "String",
710
761
  # },
711
- # expected_bucket_owner: "String",
762
+ # expected_bucket_owner: "AwsAccountId",
712
763
  # acl_configuration: {
713
764
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
714
765
  # },
@@ -1024,6 +1075,8 @@ module Aws::Athena
1024
1075
  # resp.query_execution.status.completion_date_time #=> Time
1025
1076
  # resp.query_execution.status.athena_error.error_category #=> Integer
1026
1077
  # resp.query_execution.status.athena_error.error_type #=> Integer
1078
+ # resp.query_execution.status.athena_error.retryable #=> Boolean
1079
+ # resp.query_execution.status.athena_error.error_message #=> String
1027
1080
  # resp.query_execution.statistics.engine_execution_time_in_millis #=> Integer
1028
1081
  # resp.query_execution.statistics.data_scanned_in_bytes #=> Integer
1029
1082
  # resp.query_execution.statistics.data_manifest_location #=> String
@@ -1034,6 +1087,8 @@ module Aws::Athena
1034
1087
  # resp.query_execution.work_group #=> String
1035
1088
  # resp.query_execution.engine_version.selected_engine_version #=> String
1036
1089
  # resp.query_execution.engine_version.effective_engine_version #=> String
1090
+ # resp.query_execution.execution_parameters #=> Array
1091
+ # resp.query_execution.execution_parameters[0] #=> String
1037
1092
  #
1038
1093
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetQueryExecution AWS API Documentation
1039
1094
  #
@@ -1396,7 +1451,7 @@ module Aws::Athena
1396
1451
  req.send_request(options)
1397
1452
  end
1398
1453
 
1399
- # Lists the prepared statements in the specfied workgroup.
1454
+ # Lists the prepared statements in the specified workgroup.
1400
1455
  #
1401
1456
  # @option params [required, String] :work_group
1402
1457
  # The workgroup to list the prepared statements for.
@@ -1701,6 +1756,11 @@ module Aws::Athena
1701
1756
  # @option params [String] :work_group
1702
1757
  # The name of the workgroup in which the query is being started.
1703
1758
  #
1759
+ # @option params [Array<String>] :execution_parameters
1760
+ # A list of values for the parameters in a query. The values are applied
1761
+ # sequentially to the parameters in the query in the order in which the
1762
+ # parameters occur.
1763
+ #
1704
1764
  # @return [Types::StartQueryExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1705
1765
  #
1706
1766
  # * {Types::StartQueryExecutionOutput#query_execution_id #query_execution_id} => String
@@ -1715,17 +1775,18 @@ module Aws::Athena
1715
1775
  # catalog: "CatalogNameString",
1716
1776
  # },
1717
1777
  # result_configuration: {
1718
- # output_location: "String",
1778
+ # output_location: "ResultOutputLocation",
1719
1779
  # encryption_configuration: {
1720
1780
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
1721
1781
  # kms_key: "String",
1722
1782
  # },
1723
- # expected_bucket_owner: "String",
1783
+ # expected_bucket_owner: "AwsAccountId",
1724
1784
  # acl_configuration: {
1725
1785
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
1726
1786
  # },
1727
1787
  # },
1728
1788
  # work_group: "WorkGroupName",
1789
+ # execution_parameters: ["ExecutionParameter"],
1729
1790
  # })
1730
1791
  #
1731
1792
  # @example Response structure
@@ -2011,14 +2072,14 @@ module Aws::Athena
2011
2072
  # configuration_updates: {
2012
2073
  # enforce_work_group_configuration: false,
2013
2074
  # result_configuration_updates: {
2014
- # output_location: "String",
2075
+ # output_location: "ResultOutputLocation",
2015
2076
  # remove_output_location: false,
2016
2077
  # encryption_configuration: {
2017
2078
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2018
2079
  # kms_key: "String",
2019
2080
  # },
2020
2081
  # remove_encryption_configuration: false,
2021
- # expected_bucket_owner: "String",
2082
+ # expected_bucket_owner: "AwsAccountId",
2022
2083
  # remove_expected_bucket_owner: false,
2023
2084
  # acl_configuration: {
2024
2085
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
@@ -2059,7 +2120,7 @@ module Aws::Athena
2059
2120
  params: params,
2060
2121
  config: config)
2061
2122
  context[:gem_name] = 'aws-sdk-athena'
2062
- context[:gem_version] = '1.52.0'
2123
+ context[:gem_version] = '1.55.0'
2063
2124
  Seahorse::Client::Request.new(handlers, context)
2064
2125
  end
2065
2126
 
@@ -16,8 +16,11 @@ module Aws::Athena
16
16
  AclConfiguration = Shapes::StructureShape.new(name: 'AclConfiguration')
17
17
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
18
18
  AthenaError = Shapes::StructureShape.new(name: 'AthenaError')
19
+ AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
19
20
  BatchGetNamedQueryInput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryInput')
20
21
  BatchGetNamedQueryOutput = Shapes::StructureShape.new(name: 'BatchGetNamedQueryOutput')
22
+ BatchGetPreparedStatementInput = Shapes::StructureShape.new(name: 'BatchGetPreparedStatementInput')
23
+ BatchGetPreparedStatementOutput = Shapes::StructureShape.new(name: 'BatchGetPreparedStatementOutput')
21
24
  BatchGetQueryExecutionInput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionInput')
22
25
  BatchGetQueryExecutionOutput = Shapes::StructureShape.new(name: 'BatchGetQueryExecutionOutput')
23
26
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
@@ -64,6 +67,8 @@ module Aws::Athena
64
67
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
65
68
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
66
69
  ErrorType = Shapes::IntegerShape.new(name: 'ErrorType')
70
+ ExecutionParameter = Shapes::StringShape.new(name: 'ExecutionParameter')
71
+ ExecutionParameters = Shapes::ListShape.new(name: 'ExecutionParameters')
67
72
  ExpressionString = Shapes::StringShape.new(name: 'ExpressionString')
68
73
  GetDataCatalogInput = Shapes::StructureShape.new(name: 'GetDataCatalogInput')
69
74
  GetDataCatalogOutput = Shapes::StructureShape.new(name: 'GetDataCatalogOutput')
@@ -125,6 +130,8 @@ module Aws::Athena
125
130
  ParametersMap = Shapes::MapShape.new(name: 'ParametersMap')
126
131
  ParametersMapValue = Shapes::StringShape.new(name: 'ParametersMapValue')
127
132
  PreparedStatement = Shapes::StructureShape.new(name: 'PreparedStatement')
133
+ PreparedStatementDetailsList = Shapes::ListShape.new(name: 'PreparedStatementDetailsList')
134
+ PreparedStatementNameList = Shapes::ListShape.new(name: 'PreparedStatementNameList')
128
135
  PreparedStatementSummary = Shapes::StructureShape.new(name: 'PreparedStatementSummary')
129
136
  PreparedStatementsList = Shapes::ListShape.new(name: 'PreparedStatementsList')
130
137
  QueryExecution = Shapes::StructureShape.new(name: 'QueryExecution')
@@ -139,6 +146,7 @@ module Aws::Athena
139
146
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
140
147
  ResultConfiguration = Shapes::StructureShape.new(name: 'ResultConfiguration')
141
148
  ResultConfigurationUpdates = Shapes::StructureShape.new(name: 'ResultConfigurationUpdates')
149
+ ResultOutputLocation = Shapes::StringShape.new(name: 'ResultOutputLocation')
142
150
  ResultSet = Shapes::StructureShape.new(name: 'ResultSet')
143
151
  ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
144
152
  Row = Shapes::StructureShape.new(name: 'Row')
@@ -168,6 +176,8 @@ module Aws::Athena
168
176
  TypeString = Shapes::StringShape.new(name: 'TypeString')
169
177
  UnprocessedNamedQueryId = Shapes::StructureShape.new(name: 'UnprocessedNamedQueryId')
170
178
  UnprocessedNamedQueryIdList = Shapes::ListShape.new(name: 'UnprocessedNamedQueryIdList')
179
+ UnprocessedPreparedStatementName = Shapes::StructureShape.new(name: 'UnprocessedPreparedStatementName')
180
+ UnprocessedPreparedStatementNameList = Shapes::ListShape.new(name: 'UnprocessedPreparedStatementNameList')
171
181
  UnprocessedQueryExecutionId = Shapes::StructureShape.new(name: 'UnprocessedQueryExecutionId')
172
182
  UnprocessedQueryExecutionIdList = Shapes::ListShape.new(name: 'UnprocessedQueryExecutionIdList')
173
183
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
@@ -196,6 +206,8 @@ module Aws::Athena
196
206
 
197
207
  AthenaError.add_member(:error_category, Shapes::ShapeRef.new(shape: ErrorCategory, location_name: "ErrorCategory"))
198
208
  AthenaError.add_member(:error_type, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorType"))
209
+ AthenaError.add_member(:retryable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Retryable"))
210
+ AthenaError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
199
211
  AthenaError.struct_class = Types::AthenaError
200
212
 
201
213
  BatchGetNamedQueryInput.add_member(:named_query_ids, Shapes::ShapeRef.new(shape: NamedQueryIdList, required: true, location_name: "NamedQueryIds"))
@@ -205,6 +217,14 @@ module Aws::Athena
205
217
  BatchGetNamedQueryOutput.add_member(:unprocessed_named_query_ids, Shapes::ShapeRef.new(shape: UnprocessedNamedQueryIdList, location_name: "UnprocessedNamedQueryIds"))
206
218
  BatchGetNamedQueryOutput.struct_class = Types::BatchGetNamedQueryOutput
207
219
 
220
+ BatchGetPreparedStatementInput.add_member(:prepared_statement_names, Shapes::ShapeRef.new(shape: PreparedStatementNameList, required: true, location_name: "PreparedStatementNames"))
221
+ BatchGetPreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
222
+ BatchGetPreparedStatementInput.struct_class = Types::BatchGetPreparedStatementInput
223
+
224
+ BatchGetPreparedStatementOutput.add_member(:prepared_statements, Shapes::ShapeRef.new(shape: PreparedStatementDetailsList, location_name: "PreparedStatements"))
225
+ BatchGetPreparedStatementOutput.add_member(:unprocessed_prepared_statement_names, Shapes::ShapeRef.new(shape: UnprocessedPreparedStatementNameList, location_name: "UnprocessedPreparedStatementNames"))
226
+ BatchGetPreparedStatementOutput.struct_class = Types::BatchGetPreparedStatementOutput
227
+
208
228
  BatchGetQueryExecutionInput.add_member(:query_execution_ids, Shapes::ShapeRef.new(shape: QueryExecutionIdList, required: true, location_name: "QueryExecutionIds"))
209
229
  BatchGetQueryExecutionInput.struct_class = Types::BatchGetQueryExecutionInput
210
230
 
@@ -323,6 +343,8 @@ module Aws::Athena
323
343
 
324
344
  EngineVersionsList.member = Shapes::ShapeRef.new(shape: EngineVersion)
325
345
 
346
+ ExecutionParameters.member = Shapes::ShapeRef.new(shape: ExecutionParameter)
347
+
326
348
  GetDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
327
349
  GetDataCatalogInput.struct_class = Types::GetDataCatalogInput
328
350
 
@@ -491,6 +513,10 @@ module Aws::Athena
491
513
  PreparedStatement.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedTime"))
492
514
  PreparedStatement.struct_class = Types::PreparedStatement
493
515
 
516
+ PreparedStatementDetailsList.member = Shapes::ShapeRef.new(shape: PreparedStatement)
517
+
518
+ PreparedStatementNameList.member = Shapes::ShapeRef.new(shape: StatementName)
519
+
494
520
  PreparedStatementSummary.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
495
521
  PreparedStatementSummary.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastModifiedTime"))
496
522
  PreparedStatementSummary.struct_class = Types::PreparedStatementSummary
@@ -506,6 +532,7 @@ module Aws::Athena
506
532
  QueryExecution.add_member(:statistics, Shapes::ShapeRef.new(shape: QueryExecutionStatistics, location_name: "Statistics"))
507
533
  QueryExecution.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
508
534
  QueryExecution.add_member(:engine_version, Shapes::ShapeRef.new(shape: EngineVersion, location_name: "EngineVersion"))
535
+ QueryExecution.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
509
536
  QueryExecution.struct_class = Types::QueryExecution
510
537
 
511
538
  QueryExecutionContext.add_member(:database, Shapes::ShapeRef.new(shape: DatabaseString, location_name: "Database"))
@@ -536,17 +563,17 @@ module Aws::Athena
536
563
  ResourceNotFoundException.add_member(:resource_name, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceName"))
537
564
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
538
565
 
539
- ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
566
+ ResultConfiguration.add_member(:output_location, Shapes::ShapeRef.new(shape: ResultOutputLocation, location_name: "OutputLocation"))
540
567
  ResultConfiguration.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
541
- ResultConfiguration.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
568
+ ResultConfiguration.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AwsAccountId, location_name: "ExpectedBucketOwner"))
542
569
  ResultConfiguration.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
543
570
  ResultConfiguration.struct_class = Types::ResultConfiguration
544
571
 
545
- ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: String, location_name: "OutputLocation"))
572
+ ResultConfigurationUpdates.add_member(:output_location, Shapes::ShapeRef.new(shape: ResultOutputLocation, location_name: "OutputLocation"))
546
573
  ResultConfigurationUpdates.add_member(:remove_output_location, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveOutputLocation"))
547
574
  ResultConfigurationUpdates.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "EncryptionConfiguration"))
548
575
  ResultConfigurationUpdates.add_member(:remove_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveEncryptionConfiguration"))
549
- ResultConfigurationUpdates.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: String, location_name: "ExpectedBucketOwner"))
576
+ ResultConfigurationUpdates.add_member(:expected_bucket_owner, Shapes::ShapeRef.new(shape: AwsAccountId, location_name: "ExpectedBucketOwner"))
550
577
  ResultConfigurationUpdates.add_member(:remove_expected_bucket_owner, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveExpectedBucketOwner"))
551
578
  ResultConfigurationUpdates.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
552
579
  ResultConfigurationUpdates.add_member(:remove_acl_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveAclConfiguration"))
@@ -569,6 +596,7 @@ module Aws::Athena
569
596
  StartQueryExecutionInput.add_member(:query_execution_context, Shapes::ShapeRef.new(shape: QueryExecutionContext, location_name: "QueryExecutionContext"))
570
597
  StartQueryExecutionInput.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
571
598
  StartQueryExecutionInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
599
+ StartQueryExecutionInput.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
572
600
  StartQueryExecutionInput.struct_class = Types::StartQueryExecutionInput
573
601
 
574
602
  StartQueryExecutionOutput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
@@ -615,6 +643,13 @@ module Aws::Athena
615
643
 
616
644
  UnprocessedNamedQueryIdList.member = Shapes::ShapeRef.new(shape: UnprocessedNamedQueryId)
617
645
 
646
+ UnprocessedPreparedStatementName.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, location_name: "StatementName"))
647
+ UnprocessedPreparedStatementName.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
648
+ UnprocessedPreparedStatementName.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
649
+ UnprocessedPreparedStatementName.struct_class = Types::UnprocessedPreparedStatementName
650
+
651
+ UnprocessedPreparedStatementNameList.member = Shapes::ShapeRef.new(shape: UnprocessedPreparedStatementName)
652
+
618
653
  UnprocessedQueryExecutionId.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
619
654
  UnprocessedQueryExecutionId.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
620
655
  UnprocessedQueryExecutionId.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
@@ -723,6 +758,16 @@ module Aws::Athena
723
758
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
724
759
  end)
725
760
 
761
+ api.add_operation(:batch_get_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
762
+ o.name = "BatchGetPreparedStatement"
763
+ o.http_method = "POST"
764
+ o.http_request_uri = "/"
765
+ o.input = Shapes::ShapeRef.new(shape: BatchGetPreparedStatementInput)
766
+ o.output = Shapes::ShapeRef.new(shape: BatchGetPreparedStatementOutput)
767
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
768
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
769
+ end)
770
+
726
771
  api.add_operation(:batch_get_query_execution, Seahorse::Model::Operation.new.tap do |o|
727
772
  o.name = "BatchGetQueryExecution"
728
773
  o.http_method = "POST"
@@ -77,15 +77,27 @@ module Aws::Athena
77
77
  # [1]: https://docs.aws.amazon.com/athena/latest/ug/error-reference.html#error-reference-error-type-reference
78
78
  # @return [Integer]
79
79
  #
80
+ # @!attribute [rw] retryable
81
+ # True if the query might succeed if resubmitted.
82
+ # @return [Boolean]
83
+ #
84
+ # @!attribute [rw] error_message
85
+ # Contains a short description of the error that occurred.
86
+ # @return [String]
87
+ #
80
88
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/AthenaError AWS API Documentation
81
89
  #
82
90
  class AthenaError < Struct.new(
83
91
  :error_category,
84
- :error_type)
92
+ :error_type,
93
+ :retryable,
94
+ :error_message)
85
95
  SENSITIVE = []
86
96
  include Aws::Structure
87
97
  end
88
98
 
99
+ # Contains an array of named query IDs.
100
+ #
89
101
  # @note When making an API call, you may pass BatchGetNamedQueryInput
90
102
  # data as a hash:
91
103
  #
@@ -122,6 +134,51 @@ module Aws::Athena
122
134
  include Aws::Structure
123
135
  end
124
136
 
137
+ # @note When making an API call, you may pass BatchGetPreparedStatementInput
138
+ # data as a hash:
139
+ #
140
+ # {
141
+ # prepared_statement_names: ["StatementName"], # required
142
+ # work_group: "WorkGroupName", # required
143
+ # }
144
+ #
145
+ # @!attribute [rw] prepared_statement_names
146
+ # A list of prepared statement names to return.
147
+ # @return [Array<String>]
148
+ #
149
+ # @!attribute [rw] work_group
150
+ # The name of the workgroup to which the prepared statements belong.
151
+ # @return [String]
152
+ #
153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatementInput AWS API Documentation
154
+ #
155
+ class BatchGetPreparedStatementInput < Struct.new(
156
+ :prepared_statement_names,
157
+ :work_group)
158
+ SENSITIVE = []
159
+ include Aws::Structure
160
+ end
161
+
162
+ # @!attribute [rw] prepared_statements
163
+ # The list of prepared statements returned.
164
+ # @return [Array<Types::PreparedStatement>]
165
+ #
166
+ # @!attribute [rw] unprocessed_prepared_statement_names
167
+ # A list of one or more prepared statements that were requested but
168
+ # could not be returned.
169
+ # @return [Array<Types::UnprocessedPreparedStatementName>]
170
+ #
171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/BatchGetPreparedStatementOutput AWS API Documentation
172
+ #
173
+ class BatchGetPreparedStatementOutput < Struct.new(
174
+ :prepared_statements,
175
+ :unprocessed_prepared_statement_names)
176
+ SENSITIVE = []
177
+ include Aws::Structure
178
+ end
179
+
180
+ # Contains an array of query execution IDs.
181
+ #
125
182
  # @note When making an API call, you may pass BatchGetQueryExecutionInput
126
183
  # data as a hash:
127
184
  #
@@ -467,12 +524,12 @@ module Aws::Athena
467
524
  # name: "WorkGroupName", # required
468
525
  # configuration: {
469
526
  # result_configuration: {
470
- # output_location: "String",
527
+ # output_location: "ResultOutputLocation",
471
528
  # encryption_configuration: {
472
529
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
473
530
  # kms_key: "String",
474
531
  # },
475
- # expected_bucket_owner: "String",
532
+ # expected_bucket_owner: "AwsAccountId",
476
533
  # acl_configuration: {
477
534
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
478
535
  # },
@@ -778,7 +835,7 @@ module Aws::Athena
778
835
  class DeleteWorkGroupOutput < Aws::EmptyStructure; end
779
836
 
780
837
  # If query results are encrypted in Amazon S3, indicates the encryption
781
- # option used (for example, `SSE-KMS` or `CSE-KMS`) and key information.
838
+ # option used (for example, `SSE_KMS` or `CSE_KMS`) and key information.
782
839
  #
783
840
  # @note When making an API call, you may pass EncryptionConfiguration
784
841
  # data as a hash:
@@ -790,9 +847,9 @@ module Aws::Athena
790
847
  #
791
848
  # @!attribute [rw] encryption_option
792
849
  # Indicates whether Amazon S3 server-side encryption with Amazon
793
- # S3-managed keys (`SSE-S3`), server-side encryption with KMS-managed
794
- # keys (`SSE-KMS`), or client-side encryption with KMS-managed keys
795
- # (CSE-KMS) is used.
850
+ # S3-managed keys (`SSE_S3`), server-side encryption with KMS-managed
851
+ # keys (`SSE_KMS`), or client-side encryption with KMS-managed keys
852
+ # (`CSE_KMS`) is used.
796
853
  #
797
854
  # If a query runs in a workgroup and the workgroup overrides
798
855
  # client-side settings, then the workgroup's setting for encryption
@@ -801,7 +858,7 @@ module Aws::Athena
801
858
  # @return [String]
802
859
  #
803
860
  # @!attribute [rw] kms_key
804
- # For `SSE-KMS` and `CSE-KMS`, this is the KMS key ARN or ID.
861
+ # For `SSE_KMS` and `CSE_KMS`, this is the KMS key ARN or ID.
805
862
  # @return [String]
806
863
  #
807
864
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EncryptionConfiguration AWS API Documentation
@@ -1827,6 +1884,12 @@ module Aws::Athena
1827
1884
  # The engine version that executed the query.
1828
1885
  # @return [Types::EngineVersion]
1829
1886
  #
1887
+ # @!attribute [rw] execution_parameters
1888
+ # A list of values for the parameters in a query. The values are
1889
+ # applied sequentially to the parameters in the query in the order in
1890
+ # which the parameters occur.
1891
+ # @return [Array<String>]
1892
+ #
1830
1893
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecution AWS API Documentation
1831
1894
  #
1832
1895
  class QueryExecution < Struct.new(
@@ -1838,7 +1901,8 @@ module Aws::Athena
1838
1901
  :status,
1839
1902
  :statistics,
1840
1903
  :work_group,
1841
- :engine_version)
1904
+ :engine_version,
1905
+ :execution_parameters)
1842
1906
  SENSITIVE = []
1843
1907
  include Aws::Structure
1844
1908
  end
@@ -1989,6 +2053,7 @@ module Aws::Athena
1989
2053
  # @return [String]
1990
2054
  #
1991
2055
  # @!attribute [rw] resource_name
2056
+ # The name of the Amazon resource.
1992
2057
  # @return [String]
1993
2058
  #
1994
2059
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResourceNotFoundException AWS API Documentation
@@ -2009,12 +2074,12 @@ module Aws::Athena
2009
2074
  # data as a hash:
2010
2075
  #
2011
2076
  # {
2012
- # output_location: "String",
2077
+ # output_location: "ResultOutputLocation",
2013
2078
  # encryption_configuration: {
2014
2079
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2015
2080
  # kms_key: "String",
2016
2081
  # },
2017
- # expected_bucket_owner: "String",
2082
+ # expected_bucket_owner: "AwsAccountId",
2018
2083
  # acl_configuration: {
2019
2084
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
2020
2085
  # },
@@ -2039,7 +2104,7 @@ module Aws::Athena
2039
2104
  #
2040
2105
  # @!attribute [rw] encryption_configuration
2041
2106
  # If query results are encrypted in Amazon S3, indicates the
2042
- # encryption option used (for example, `SSE-KMS` or `CSE-KMS`) and key
2107
+ # encryption option used (for example, `SSE_KMS` or `CSE_KMS`) and key
2043
2108
  # information. This is a client-side setting. If workgroup settings
2044
2109
  # override client-side settings, then the query uses the encryption
2045
2110
  # configuration that is specified for the workgroup, and also uses the
@@ -2107,14 +2172,14 @@ module Aws::Athena
2107
2172
  # data as a hash:
2108
2173
  #
2109
2174
  # {
2110
- # output_location: "String",
2175
+ # output_location: "ResultOutputLocation",
2111
2176
  # remove_output_location: false,
2112
2177
  # encryption_configuration: {
2113
2178
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2114
2179
  # kms_key: "String",
2115
2180
  # },
2116
2181
  # remove_encryption_configuration: false,
2117
- # expected_bucket_owner: "String",
2182
+ # expected_bucket_owner: "AwsAccountId",
2118
2183
  # remove_expected_bucket_owner: false,
2119
2184
  # acl_configuration: {
2120
2185
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
@@ -2305,17 +2370,18 @@ module Aws::Athena
2305
2370
  # catalog: "CatalogNameString",
2306
2371
  # },
2307
2372
  # result_configuration: {
2308
- # output_location: "String",
2373
+ # output_location: "ResultOutputLocation",
2309
2374
  # encryption_configuration: {
2310
2375
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2311
2376
  # kms_key: "String",
2312
2377
  # },
2313
- # expected_bucket_owner: "String",
2378
+ # expected_bucket_owner: "AwsAccountId",
2314
2379
  # acl_configuration: {
2315
2380
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
2316
2381
  # },
2317
2382
  # },
2318
2383
  # work_group: "WorkGroupName",
2384
+ # execution_parameters: ["ExecutionParameter"],
2319
2385
  # }
2320
2386
  #
2321
2387
  # @!attribute [rw] query_string
@@ -2357,6 +2423,12 @@ module Aws::Athena
2357
2423
  # The name of the workgroup in which the query is being started.
2358
2424
  # @return [String]
2359
2425
  #
2426
+ # @!attribute [rw] execution_parameters
2427
+ # A list of values for the parameters in a query. The values are
2428
+ # applied sequentially to the parameters in the query in the order in
2429
+ # which the parameters occur.
2430
+ # @return [Array<String>]
2431
+ #
2360
2432
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionInput AWS API Documentation
2361
2433
  #
2362
2434
  class StartQueryExecutionInput < Struct.new(
@@ -2364,7 +2436,8 @@ module Aws::Athena
2364
2436
  :client_request_token,
2365
2437
  :query_execution_context,
2366
2438
  :result_configuration,
2367
- :work_group)
2439
+ :work_group,
2440
+ :execution_parameters)
2368
2441
  SENSITIVE = []
2369
2442
  include Aws::Structure
2370
2443
  end
@@ -2580,6 +2653,42 @@ module Aws::Athena
2580
2653
  include Aws::Structure
2581
2654
  end
2582
2655
 
2656
+ # The name of a prepared statement that could not be returned.
2657
+ #
2658
+ # @!attribute [rw] statement_name
2659
+ # The name of a prepared statement that could not be returned due to
2660
+ # an error.
2661
+ # @return [String]
2662
+ #
2663
+ # @!attribute [rw] error_code
2664
+ # The error code returned when the request for the prepared statement
2665
+ # failed.
2666
+ # @return [String]
2667
+ #
2668
+ # @!attribute [rw] error_message
2669
+ # The error message containing the reason why the prepared statement
2670
+ # could not be returned. The following error messages are possible:
2671
+ #
2672
+ # * `INVALID_INPUT` - The name of the prepared statement that was
2673
+ # provided is not valid (for example, the name is too long).
2674
+ #
2675
+ # * `STATEMENT_NOT_FOUND` - A prepared statement with the name
2676
+ # provided could not be found.
2677
+ #
2678
+ # * `UNAUTHORIZED` - The requester does not have permission to access
2679
+ # the workgroup that contains the prepared statement.
2680
+ # @return [String]
2681
+ #
2682
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UnprocessedPreparedStatementName AWS API Documentation
2683
+ #
2684
+ class UnprocessedPreparedStatementName < Struct.new(
2685
+ :statement_name,
2686
+ :error_code,
2687
+ :error_message)
2688
+ SENSITIVE = []
2689
+ include Aws::Structure
2690
+ end
2691
+
2583
2692
  # Describes a query execution that failed to process.
2584
2693
  #
2585
2694
  # @!attribute [rw] query_execution_id
@@ -2800,14 +2909,14 @@ module Aws::Athena
2800
2909
  # configuration_updates: {
2801
2910
  # enforce_work_group_configuration: false,
2802
2911
  # result_configuration_updates: {
2803
- # output_location: "String",
2912
+ # output_location: "ResultOutputLocation",
2804
2913
  # remove_output_location: false,
2805
2914
  # encryption_configuration: {
2806
2915
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2807
2916
  # kms_key: "String",
2808
2917
  # },
2809
2918
  # remove_encryption_configuration: false,
2810
- # expected_bucket_owner: "String",
2919
+ # expected_bucket_owner: "AwsAccountId",
2811
2920
  # remove_expected_bucket_owner: false,
2812
2921
  # acl_configuration: {
2813
2922
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
@@ -2926,12 +3035,12 @@ module Aws::Athena
2926
3035
  #
2927
3036
  # {
2928
3037
  # result_configuration: {
2929
- # output_location: "String",
3038
+ # output_location: "ResultOutputLocation",
2930
3039
  # encryption_configuration: {
2931
3040
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
2932
3041
  # kms_key: "String",
2933
3042
  # },
2934
- # expected_bucket_owner: "String",
3043
+ # expected_bucket_owner: "AwsAccountId",
2935
3044
  # acl_configuration: {
2936
3045
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
2937
3046
  # },
@@ -3029,14 +3138,14 @@ module Aws::Athena
3029
3138
  # {
3030
3139
  # enforce_work_group_configuration: false,
3031
3140
  # result_configuration_updates: {
3032
- # output_location: "String",
3141
+ # output_location: "ResultOutputLocation",
3033
3142
  # remove_output_location: false,
3034
3143
  # encryption_configuration: {
3035
3144
  # encryption_option: "SSE_S3", # required, accepts SSE_S3, SSE_KMS, CSE_KMS
3036
3145
  # kms_key: "String",
3037
3146
  # },
3038
3147
  # remove_encryption_configuration: false,
3039
- # expected_bucket_owner: "String",
3148
+ # expected_bucket_owner: "AwsAccountId",
3040
3149
  # remove_expected_bucket_owner: false,
3041
3150
  # acl_configuration: {
3042
3151
  # s3_acl_option: "BUCKET_OWNER_FULL_CONTROL", # required, accepts BUCKET_OWNER_FULL_CONTROL
@@ -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.52.0'
51
+ GEM_VERSION = '1.55.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.52.0
4
+ version: 1.55.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-03-02 00:00:00.000000000 Z
11
+ date: 2022-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core