aws-sdk-athena 1.57.0 → 1.58.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: e34f601fcf51380c748dbd3595e720808fa00c01ceca0ebe652b53b1fa1b7184
4
- data.tar.gz: cb4ea48fb27f210100ee23f7f8264aefaea1de779453dcb95375a3e08bc3b6f2
3
+ metadata.gz: 495bf4b658faeea93f6a7e46ffee9e125ea3e0f1721a1976ab969ad02d025288
4
+ data.tar.gz: f5e14db3cbb8fbc9ea2d50fc50e42233ecfe9a9e5373e54dce26e4fd33c103f0
5
5
  SHA512:
6
- metadata.gz: 1b79e2c2b5a54c9bb76029fc1ea5006098fcf47938587ad8515f1a662a7da6067b1647c224d8fec2c33c734b0d76fd0b21db16e8330d1fe0ec72c14232e1df4f
7
- data.tar.gz: 56fc0bb9205f293e4a5887a8de61336b9638abb641e8efcd91bbd8198872876394f9a983c3ec927ffdb2e8dfdb1fa836615f813d303fb1889015adfde3b48802
6
+ metadata.gz: 0a58c4df679026bde7dce71a2ec550af96d6e098f5c355cbe68b4a1644a8c27f2749bca1beba2c35461d6f04ae2a6fcb3d58a2d865328fbce16f04c1cd2a7c98
7
+ data.tar.gz: 21c7df8e5f391324dc42009b37de53c70a596d4ed080d889ac3e326525b0968ebe6ff17798f10e3e461335c504ceef87c724739b4e885b8e7a0f7f6475a54640
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.58.0 (2022-11-07)
5
+ ------------------
6
+
7
+ * Feature - Adds support for using Query Result Reuse
8
+
4
9
  1.57.0 (2022-10-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.57.0
1
+ 1.58.0
@@ -506,6 +506,8 @@ module Aws::Athena
506
506
  # resp.query_executions[0].result_configuration.encryption_configuration.kms_key #=> String
507
507
  # resp.query_executions[0].result_configuration.expected_bucket_owner #=> String
508
508
  # resp.query_executions[0].result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
509
+ # resp.query_executions[0].result_reuse_configuration.result_reuse_by_age_configuration.enabled #=> Boolean
510
+ # resp.query_executions[0].result_reuse_configuration.result_reuse_by_age_configuration.max_age_in_minutes #=> Integer
509
511
  # resp.query_executions[0].query_execution_context.database #=> String
510
512
  # resp.query_executions[0].query_execution_context.catalog #=> String
511
513
  # resp.query_executions[0].status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
@@ -523,6 +525,7 @@ module Aws::Athena
523
525
  # resp.query_executions[0].statistics.query_queue_time_in_millis #=> Integer
524
526
  # resp.query_executions[0].statistics.query_planning_time_in_millis #=> Integer
525
527
  # resp.query_executions[0].statistics.service_processing_time_in_millis #=> Integer
528
+ # resp.query_executions[0].statistics.result_reuse_information.reused_previous_result #=> Boolean
526
529
  # resp.query_executions[0].work_group #=> String
527
530
  # resp.query_executions[0].engine_version.selected_engine_version #=> String
528
531
  # resp.query_executions[0].engine_version.effective_engine_version #=> String
@@ -1084,6 +1087,8 @@ module Aws::Athena
1084
1087
  # resp.query_execution.result_configuration.encryption_configuration.kms_key #=> String
1085
1088
  # resp.query_execution.result_configuration.expected_bucket_owner #=> String
1086
1089
  # resp.query_execution.result_configuration.acl_configuration.s3_acl_option #=> String, one of "BUCKET_OWNER_FULL_CONTROL"
1090
+ # resp.query_execution.result_reuse_configuration.result_reuse_by_age_configuration.enabled #=> Boolean
1091
+ # resp.query_execution.result_reuse_configuration.result_reuse_by_age_configuration.max_age_in_minutes #=> Integer
1087
1092
  # resp.query_execution.query_execution_context.database #=> String
1088
1093
  # resp.query_execution.query_execution_context.catalog #=> String
1089
1094
  # resp.query_execution.status.state #=> String, one of "QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "CANCELLED"
@@ -1101,6 +1106,7 @@ module Aws::Athena
1101
1106
  # resp.query_execution.statistics.query_queue_time_in_millis #=> Integer
1102
1107
  # resp.query_execution.statistics.query_planning_time_in_millis #=> Integer
1103
1108
  # resp.query_execution.statistics.service_processing_time_in_millis #=> Integer
1109
+ # resp.query_execution.statistics.result_reuse_information.reused_previous_result #=> Boolean
1104
1110
  # resp.query_execution.work_group #=> String
1105
1111
  # resp.query_execution.engine_version.selected_engine_version #=> String
1106
1112
  # resp.query_execution.engine_version.effective_engine_version #=> String
@@ -1834,6 +1840,9 @@ module Aws::Athena
1834
1840
  # sequentially to the parameters in the query in the order in which the
1835
1841
  # parameters occur.
1836
1842
  #
1843
+ # @option params [Types::ResultReuseConfiguration] :result_reuse_configuration
1844
+ # Specifies the query result reuse behavior for the query.
1845
+ #
1837
1846
  # @return [Types::StartQueryExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1838
1847
  #
1839
1848
  # * {Types::StartQueryExecutionOutput#query_execution_id #query_execution_id} => String
@@ -1860,6 +1869,12 @@ module Aws::Athena
1860
1869
  # },
1861
1870
  # work_group: "WorkGroupName",
1862
1871
  # execution_parameters: ["ExecutionParameter"],
1872
+ # result_reuse_configuration: {
1873
+ # result_reuse_by_age_configuration: {
1874
+ # enabled: false, # required
1875
+ # max_age_in_minutes: 1,
1876
+ # },
1877
+ # },
1863
1878
  # })
1864
1879
  #
1865
1880
  # @example Response structure
@@ -2193,7 +2208,7 @@ module Aws::Athena
2193
2208
  params: params,
2194
2209
  config: config)
2195
2210
  context[:gem_name] = 'aws-sdk-athena'
2196
- context[:gem_version] = '1.57.0'
2211
+ context[:gem_version] = '1.58.0'
2197
2212
  Seahorse::Client::Request.new(handlers, context)
2198
2213
  end
2199
2214
 
@@ -14,6 +14,7 @@ module Aws::Athena
14
14
  include Seahorse::Model
15
15
 
16
16
  AclConfiguration = Shapes::StructureShape.new(name: 'AclConfiguration')
17
+ Age = Shapes::IntegerShape.new(name: 'Age')
17
18
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
18
19
  AthenaError = Shapes::StructureShape.new(name: 'AthenaError')
19
20
  AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
@@ -156,6 +157,9 @@ module Aws::Athena
156
157
  ResultConfiguration = Shapes::StructureShape.new(name: 'ResultConfiguration')
157
158
  ResultConfigurationUpdates = Shapes::StructureShape.new(name: 'ResultConfigurationUpdates')
158
159
  ResultOutputLocation = Shapes::StringShape.new(name: 'ResultOutputLocation')
160
+ ResultReuseByAgeConfiguration = Shapes::StructureShape.new(name: 'ResultReuseByAgeConfiguration')
161
+ ResultReuseConfiguration = Shapes::StructureShape.new(name: 'ResultReuseConfiguration')
162
+ ResultReuseInformation = Shapes::StructureShape.new(name: 'ResultReuseInformation')
159
163
  ResultSet = Shapes::StructureShape.new(name: 'ResultSet')
160
164
  ResultSetMetadata = Shapes::StructureShape.new(name: 'ResultSetMetadata')
161
165
  Row = Shapes::StructureShape.new(name: 'Row')
@@ -543,6 +547,7 @@ module Aws::Athena
543
547
  QueryExecution.add_member(:query, Shapes::ShapeRef.new(shape: QueryString, location_name: "Query"))
544
548
  QueryExecution.add_member(:statement_type, Shapes::ShapeRef.new(shape: StatementType, location_name: "StatementType"))
545
549
  QueryExecution.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
550
+ QueryExecution.add_member(:result_reuse_configuration, Shapes::ShapeRef.new(shape: ResultReuseConfiguration, location_name: "ResultReuseConfiguration"))
546
551
  QueryExecution.add_member(:query_execution_context, Shapes::ShapeRef.new(shape: QueryExecutionContext, location_name: "QueryExecutionContext"))
547
552
  QueryExecution.add_member(:status, Shapes::ShapeRef.new(shape: QueryExecutionStatus, location_name: "Status"))
548
553
  QueryExecution.add_member(:statistics, Shapes::ShapeRef.new(shape: QueryExecutionStatistics, location_name: "Statistics"))
@@ -566,6 +571,7 @@ module Aws::Athena
566
571
  QueryExecutionStatistics.add_member(:query_queue_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "QueryQueueTimeInMillis"))
567
572
  QueryExecutionStatistics.add_member(:query_planning_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "QueryPlanningTimeInMillis"))
568
573
  QueryExecutionStatistics.add_member(:service_processing_time_in_millis, Shapes::ShapeRef.new(shape: Long, location_name: "ServiceProcessingTimeInMillis"))
574
+ QueryExecutionStatistics.add_member(:result_reuse_information, Shapes::ShapeRef.new(shape: ResultReuseInformation, location_name: "ResultReuseInformation"))
569
575
  QueryExecutionStatistics.struct_class = Types::QueryExecutionStatistics
570
576
 
571
577
  QueryExecutionStatus.add_member(:state, Shapes::ShapeRef.new(shape: QueryExecutionState, location_name: "State"))
@@ -634,6 +640,16 @@ module Aws::Athena
634
640
  ResultConfigurationUpdates.add_member(:remove_acl_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "RemoveAclConfiguration"))
635
641
  ResultConfigurationUpdates.struct_class = Types::ResultConfigurationUpdates
636
642
 
643
+ ResultReuseByAgeConfiguration.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "Enabled"))
644
+ ResultReuseByAgeConfiguration.add_member(:max_age_in_minutes, Shapes::ShapeRef.new(shape: Age, location_name: "MaxAgeInMinutes"))
645
+ ResultReuseByAgeConfiguration.struct_class = Types::ResultReuseByAgeConfiguration
646
+
647
+ ResultReuseConfiguration.add_member(:result_reuse_by_age_configuration, Shapes::ShapeRef.new(shape: ResultReuseByAgeConfiguration, location_name: "ResultReuseByAgeConfiguration"))
648
+ ResultReuseConfiguration.struct_class = Types::ResultReuseConfiguration
649
+
650
+ ResultReuseInformation.add_member(:reused_previous_result, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "ReusedPreviousResult"))
651
+ ResultReuseInformation.struct_class = Types::ResultReuseInformation
652
+
637
653
  ResultSet.add_member(:rows, Shapes::ShapeRef.new(shape: RowList, location_name: "Rows"))
638
654
  ResultSet.add_member(:result_set_metadata, Shapes::ShapeRef.new(shape: ResultSetMetadata, location_name: "ResultSetMetadata"))
639
655
  ResultSet.struct_class = Types::ResultSet
@@ -652,6 +668,7 @@ module Aws::Athena
652
668
  StartQueryExecutionInput.add_member(:result_configuration, Shapes::ShapeRef.new(shape: ResultConfiguration, location_name: "ResultConfiguration"))
653
669
  StartQueryExecutionInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "WorkGroup"))
654
670
  StartQueryExecutionInput.add_member(:execution_parameters, Shapes::ShapeRef.new(shape: ExecutionParameters, location_name: "ExecutionParameters"))
671
+ StartQueryExecutionInput.add_member(:result_reuse_configuration, Shapes::ShapeRef.new(shape: ResultReuseConfiguration, location_name: "ResultReuseConfiguration"))
655
672
  StartQueryExecutionInput.struct_class = Types::StartQueryExecutionInput
656
673
 
657
674
  StartQueryExecutionOutput.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
@@ -976,6 +993,7 @@ module Aws::Athena
976
993
  o.output = Shapes::ShapeRef.new(shape: GetQueryResultsOutput)
977
994
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
978
995
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
996
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
979
997
  o[:pager] = Aws::Pager.new(
980
998
  limit_key: "max_results",
981
999
  tokens: {
@@ -1892,6 +1892,11 @@ module Aws::Athena
1892
1892
  # workgroup.
1893
1893
  # @return [Types::ResultConfiguration]
1894
1894
  #
1895
+ # @!attribute [rw] result_reuse_configuration
1896
+ # Specifies the query result reuse behavior that was used for the
1897
+ # query.
1898
+ # @return [Types::ResultReuseConfiguration]
1899
+ #
1895
1900
  # @!attribute [rw] query_execution_context
1896
1901
  # The database in which the query execution occurred.
1897
1902
  # @return [Types::QueryExecutionContext]
@@ -1928,6 +1933,7 @@ module Aws::Athena
1928
1933
  :query,
1929
1934
  :statement_type,
1930
1935
  :result_configuration,
1936
+ :result_reuse_configuration,
1931
1937
  :query_execution_context,
1932
1938
  :status,
1933
1939
  :statistics,
@@ -2017,6 +2023,11 @@ module Aws::Athena
2017
2023
  # the query results after the query engine finished running the query.
2018
2024
  # @return [Integer]
2019
2025
  #
2026
+ # @!attribute [rw] result_reuse_information
2027
+ # Contains information about whether previous query results were
2028
+ # reused for the query.
2029
+ # @return [Types::ResultReuseInformation]
2030
+ #
2020
2031
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/QueryExecutionStatistics AWS API Documentation
2021
2032
  #
2022
2033
  class QueryExecutionStatistics < Struct.new(
@@ -2026,7 +2037,8 @@ module Aws::Athena
2026
2037
  :total_execution_time_in_millis,
2027
2038
  :query_queue_time_in_millis,
2028
2039
  :query_planning_time_in_millis,
2029
- :service_processing_time_in_millis)
2040
+ :service_processing_time_in_millis,
2041
+ :result_reuse_information)
2030
2042
  SENSITIVE = []
2031
2043
  include Aws::Structure
2032
2044
  end
@@ -2532,6 +2544,77 @@ module Aws::Athena
2532
2544
  include Aws::Structure
2533
2545
  end
2534
2546
 
2547
+ # Specifies whether previous query results are reused, and if so, their
2548
+ # maximum age.
2549
+ #
2550
+ # @note When making an API call, you may pass ResultReuseByAgeConfiguration
2551
+ # data as a hash:
2552
+ #
2553
+ # {
2554
+ # enabled: false, # required
2555
+ # max_age_in_minutes: 1,
2556
+ # }
2557
+ #
2558
+ # @!attribute [rw] enabled
2559
+ # True if previous query results can be reused when the query is run;
2560
+ # otherwise, false. The default is false.
2561
+ # @return [Boolean]
2562
+ #
2563
+ # @!attribute [rw] max_age_in_minutes
2564
+ # Specifies, in minutes, the maximum age of a previous query result
2565
+ # that Athena should consider for reuse. The default is 60.
2566
+ # @return [Integer]
2567
+ #
2568
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultReuseByAgeConfiguration AWS API Documentation
2569
+ #
2570
+ class ResultReuseByAgeConfiguration < Struct.new(
2571
+ :enabled,
2572
+ :max_age_in_minutes)
2573
+ SENSITIVE = []
2574
+ include Aws::Structure
2575
+ end
2576
+
2577
+ # Specifies the query result reuse behavior for the query.
2578
+ #
2579
+ # @note When making an API call, you may pass ResultReuseConfiguration
2580
+ # data as a hash:
2581
+ #
2582
+ # {
2583
+ # result_reuse_by_age_configuration: {
2584
+ # enabled: false, # required
2585
+ # max_age_in_minutes: 1,
2586
+ # },
2587
+ # }
2588
+ #
2589
+ # @!attribute [rw] result_reuse_by_age_configuration
2590
+ # Specifies whether previous query results are reused, and if so,
2591
+ # their maximum age.
2592
+ # @return [Types::ResultReuseByAgeConfiguration]
2593
+ #
2594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultReuseConfiguration AWS API Documentation
2595
+ #
2596
+ class ResultReuseConfiguration < Struct.new(
2597
+ :result_reuse_by_age_configuration)
2598
+ SENSITIVE = []
2599
+ include Aws::Structure
2600
+ end
2601
+
2602
+ # Contains information about whether the result of a previous query was
2603
+ # reused.
2604
+ #
2605
+ # @!attribute [rw] reused_previous_result
2606
+ # True if a previous query result was reused; false if the result was
2607
+ # generated from a new run of the query.
2608
+ # @return [Boolean]
2609
+ #
2610
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ResultReuseInformation AWS API Documentation
2611
+ #
2612
+ class ResultReuseInformation < Struct.new(
2613
+ :reused_previous_result)
2614
+ SENSITIVE = []
2615
+ include Aws::Structure
2616
+ end
2617
+
2535
2618
  # The metadata and rows that make up a query result set. The metadata
2536
2619
  # describes the column structure and data types. To return a `ResultSet`
2537
2620
  # object, use GetQueryResults.
@@ -2607,6 +2690,12 @@ module Aws::Athena
2607
2690
  # },
2608
2691
  # work_group: "WorkGroupName",
2609
2692
  # execution_parameters: ["ExecutionParameter"],
2693
+ # result_reuse_configuration: {
2694
+ # result_reuse_by_age_configuration: {
2695
+ # enabled: false, # required
2696
+ # max_age_in_minutes: 1,
2697
+ # },
2698
+ # },
2610
2699
  # }
2611
2700
  #
2612
2701
  # @!attribute [rw] query_string
@@ -2654,6 +2743,10 @@ module Aws::Athena
2654
2743
  # which the parameters occur.
2655
2744
  # @return [Array<String>]
2656
2745
  #
2746
+ # @!attribute [rw] result_reuse_configuration
2747
+ # Specifies the query result reuse behavior for the query.
2748
+ # @return [Types::ResultReuseConfiguration]
2749
+ #
2657
2750
  # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecutionInput AWS API Documentation
2658
2751
  #
2659
2752
  class StartQueryExecutionInput < Struct.new(
@@ -2662,7 +2755,8 @@ module Aws::Athena
2662
2755
  :query_execution_context,
2663
2756
  :result_configuration,
2664
2757
  :work_group,
2665
- :execution_parameters)
2758
+ :execution_parameters,
2759
+ :result_reuse_configuration)
2666
2760
  SENSITIVE = []
2667
2761
  include Aws::Structure
2668
2762
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-athena/customizations'
52
52
  # @!group service
53
53
  module Aws::Athena
54
54
 
55
- GEM_VERSION = '1.57.0'
55
+ GEM_VERSION = '1.58.0'
56
56
 
57
57
  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.57.0
4
+ version: 1.58.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-10-25 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core