aws-sdk-athena 1.50.0 → 1.51.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89c891b7136886b602b201e9f40c94d12e6b21546c98beea47d5c8715abaf527
4
- data.tar.gz: 24e6da677858fc422993801fe3fc523656b3643bc943689c8e79a3f88a291a0d
3
+ metadata.gz: '0687af810b3e4362e24590cbad3f7d1268fd4cb23024a6edcc8b5dad6b117049'
4
+ data.tar.gz: 86b8e28554230e7d03c88d73d5a431677e024a5780cdcb700b594487eec11549
5
5
  SHA512:
6
- metadata.gz: dc1d0cb1f74cfe9e7d846a087cd4acc249289fdee33c7e2d743eb6b3e9ec0d1902c5060a40985af5fa79fc0d4e8010dce10a08439ca3af630a017c652464c627
7
- data.tar.gz: f7024782538b4b37093b25f85de5fd0154fb634c978fe1c9b8d5434f0a56d14cc98e610bad0aa196ead7987c924868e08b068489c1d4982cb72a6ad8f6510c35
6
+ metadata.gz: f6fa542f8be717ba15b5d06759909313ea0c1073df477496ccb8f22f6deb1f16b60ac5b14e7ddfcbbb6ee6f2637ebe97a8580de5eeae8cb261cf4c0e64399ec3
7
+ data.tar.gz: bb09d6c920f592b74692a85ed0c8918f967c145d2a8a59ade110454d2c920ef517432a43a62377ac2a8ebded912980c79443982831404b3f9028de4fd1ab260d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.51.0 (2022-02-28)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for updating an existing named query.
8
+
4
9
  1.50.0 (2022-02-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.50.0
1
+ 1.51.0
@@ -1907,6 +1907,41 @@ module Aws::Athena
1907
1907
  req.send_request(options)
1908
1908
  end
1909
1909
 
1910
+ # Updates a NamedQuery object. The database or workgroup cannot be
1911
+ # updated.
1912
+ #
1913
+ # @option params [required, String] :named_query_id
1914
+ # The unique identifier (UUID) of the query.
1915
+ #
1916
+ # @option params [required, String] :name
1917
+ # The name of the query.
1918
+ #
1919
+ # @option params [String] :description
1920
+ # The query description.
1921
+ #
1922
+ # @option params [required, String] :query_string
1923
+ # The contents of the query with all query statements.
1924
+ #
1925
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1926
+ #
1927
+ # @example Request syntax with placeholder values
1928
+ #
1929
+ # resp = client.update_named_query({
1930
+ # named_query_id: "NamedQueryId", # required
1931
+ # name: "NameString", # required
1932
+ # description: "NamedQueryDescriptionString",
1933
+ # query_string: "QueryString", # required
1934
+ # })
1935
+ #
1936
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQuery AWS API Documentation
1937
+ #
1938
+ # @overload update_named_query(params = {})
1939
+ # @param [Hash] params ({})
1940
+ def update_named_query(params = {}, options = {})
1941
+ req = build_request(:update_named_query, params)
1942
+ req.send_request(options)
1943
+ end
1944
+
1910
1945
  # Updates a prepared statement.
1911
1946
  #
1912
1947
  # @option params [required, String] :statement_name
@@ -2011,7 +2046,7 @@ module Aws::Athena
2011
2046
  params: params,
2012
2047
  config: config)
2013
2048
  context[:gem_name] = 'aws-sdk-athena'
2014
- context[:gem_version] = '1.50.0'
2049
+ context[:gem_version] = '1.51.0'
2015
2050
  Seahorse::Client::Request.new(handlers, context)
2016
2051
  end
2017
2052
 
@@ -117,6 +117,7 @@ module Aws::Athena
117
117
  MetadataException = Shapes::StructureShape.new(name: 'MetadataException')
118
118
  NameString = Shapes::StringShape.new(name: 'NameString')
119
119
  NamedQuery = Shapes::StructureShape.new(name: 'NamedQuery')
120
+ NamedQueryDescriptionString = Shapes::StringShape.new(name: 'NamedQueryDescriptionString')
120
121
  NamedQueryId = Shapes::StringShape.new(name: 'NamedQueryId')
121
122
  NamedQueryIdList = Shapes::ListShape.new(name: 'NamedQueryIdList')
122
123
  NamedQueryList = Shapes::ListShape.new(name: 'NamedQueryList')
@@ -171,6 +172,8 @@ module Aws::Athena
171
172
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
172
173
  UpdateDataCatalogInput = Shapes::StructureShape.new(name: 'UpdateDataCatalogInput')
173
174
  UpdateDataCatalogOutput = Shapes::StructureShape.new(name: 'UpdateDataCatalogOutput')
175
+ UpdateNamedQueryInput = Shapes::StructureShape.new(name: 'UpdateNamedQueryInput')
176
+ UpdateNamedQueryOutput = Shapes::StructureShape.new(name: 'UpdateNamedQueryOutput')
174
177
  UpdatePreparedStatementInput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementInput')
175
178
  UpdatePreparedStatementOutput = Shapes::StructureShape.new(name: 'UpdatePreparedStatementOutput')
176
179
  UpdateWorkGroupInput = Shapes::StructureShape.new(name: 'UpdateWorkGroupInput')
@@ -625,6 +628,14 @@ module Aws::Athena
625
628
 
626
629
  UpdateDataCatalogOutput.struct_class = Types::UpdateDataCatalogOutput
627
630
 
631
+ UpdateNamedQueryInput.add_member(:named_query_id, Shapes::ShapeRef.new(shape: NamedQueryId, required: true, location_name: "NamedQueryId"))
632
+ UpdateNamedQueryInput.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
633
+ UpdateNamedQueryInput.add_member(:description, Shapes::ShapeRef.new(shape: NamedQueryDescriptionString, location_name: "Description"))
634
+ UpdateNamedQueryInput.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryString"))
635
+ UpdateNamedQueryInput.struct_class = Types::UpdateNamedQueryInput
636
+
637
+ UpdateNamedQueryOutput.struct_class = Types::UpdateNamedQueryOutput
638
+
628
639
  UpdatePreparedStatementInput.add_member(:statement_name, Shapes::ShapeRef.new(shape: StatementName, required: true, location_name: "StatementName"))
629
640
  UpdatePreparedStatementInput.add_member(:work_group, Shapes::ShapeRef.new(shape: WorkGroupName, required: true, location_name: "WorkGroup"))
630
641
  UpdatePreparedStatementInput.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "QueryStatement"))
@@ -1078,6 +1089,16 @@ module Aws::Athena
1078
1089
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1079
1090
  end)
1080
1091
 
1092
+ api.add_operation(:update_named_query, Seahorse::Model::Operation.new.tap do |o|
1093
+ o.name = "UpdateNamedQuery"
1094
+ o.http_method = "POST"
1095
+ o.http_request_uri = "/"
1096
+ o.input = Shapes::ShapeRef.new(shape: UpdateNamedQueryInput)
1097
+ o.output = Shapes::ShapeRef.new(shape: UpdateNamedQueryOutput)
1098
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1099
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1100
+ end)
1101
+
1081
1102
  api.add_operation(:update_prepared_statement, Seahorse::Model::Operation.new.tap do |o|
1082
1103
  o.name = "UpdatePreparedStatement"
1083
1104
  o.http_method = "POST"
@@ -15,7 +15,7 @@ module Aws::Athena
15
15
  # failed queries and take steps after a query failure occurs.
16
16
  # `AthenaError` includes an `ErrorCategory` field that specifies whether
17
17
  # the cause of the failed query is due to system error, user error, or
18
- # unknown error.
18
+ # other error.
19
19
  #
20
20
  # @!attribute [rw] error_category
21
21
  # An integer value that specifies the category of a query failure
@@ -25,7 +25,7 @@ module Aws::Athena
25
25
  #
26
26
  # **2** - User
27
27
  #
28
- # **3** - Unknown
28
+ # **3** - Other
29
29
  # @return [Integer]
30
30
  #
31
31
  # @!attribute [rw] error_type
@@ -1642,8 +1642,8 @@ module Aws::Athena
1642
1642
  include Aws::Structure
1643
1643
  end
1644
1644
 
1645
- # A query, where `QueryString` is the list of SQL query statements that
1646
- # comprise the query.
1645
+ # A query, where `QueryString` contains the SQL statements that make up
1646
+ # the query.
1647
1647
  #
1648
1648
  # @!attribute [rw] name
1649
1649
  # The query name.
@@ -1658,7 +1658,7 @@ module Aws::Athena
1658
1658
  # @return [String]
1659
1659
  #
1660
1660
  # @!attribute [rw] query_string
1661
- # The SQL query statements that comprise the query.
1661
+ # The SQL statements that make up the query.
1662
1662
  # @return [String]
1663
1663
  #
1664
1664
  # @!attribute [rw] named_query_id
@@ -2156,7 +2156,7 @@ module Aws::Athena
2156
2156
  include Aws::Structure
2157
2157
  end
2158
2158
 
2159
- # The metadata and rows that comprise a query result set. The metadata
2159
+ # The metadata and rows that make up a query result set. The metadata
2160
2160
  # describes the column structure and data types. To return a `ResultSet`
2161
2161
  # object, use GetQueryResults.
2162
2162
  #
@@ -2194,7 +2194,7 @@ module Aws::Athena
2194
2194
  include Aws::Structure
2195
2195
  end
2196
2196
 
2197
- # The rows that comprise a query result table.
2197
+ # The rows that make up a query result table.
2198
2198
  #
2199
2199
  # @!attribute [rw] data
2200
2200
  # The data that populates a row in a query result table.
@@ -2620,6 +2620,47 @@ module Aws::Athena
2620
2620
  #
2621
2621
  class UpdateDataCatalogOutput < Aws::EmptyStructure; end
2622
2622
 
2623
+ # @note When making an API call, you may pass UpdateNamedQueryInput
2624
+ # data as a hash:
2625
+ #
2626
+ # {
2627
+ # named_query_id: "NamedQueryId", # required
2628
+ # name: "NameString", # required
2629
+ # description: "NamedQueryDescriptionString",
2630
+ # query_string: "QueryString", # required
2631
+ # }
2632
+ #
2633
+ # @!attribute [rw] named_query_id
2634
+ # The unique identifier (UUID) of the query.
2635
+ # @return [String]
2636
+ #
2637
+ # @!attribute [rw] name
2638
+ # The name of the query.
2639
+ # @return [String]
2640
+ #
2641
+ # @!attribute [rw] description
2642
+ # The query description.
2643
+ # @return [String]
2644
+ #
2645
+ # @!attribute [rw] query_string
2646
+ # The contents of the query with all query statements.
2647
+ # @return [String]
2648
+ #
2649
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQueryInput AWS API Documentation
2650
+ #
2651
+ class UpdateNamedQueryInput < Struct.new(
2652
+ :named_query_id,
2653
+ :name,
2654
+ :description,
2655
+ :query_string)
2656
+ SENSITIVE = []
2657
+ include Aws::Structure
2658
+ end
2659
+
2660
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateNamedQueryOutput AWS API Documentation
2661
+ #
2662
+ class UpdateNamedQueryOutput < Aws::EmptyStructure; end
2663
+
2623
2664
  # @note When making an API call, you may pass UpdatePreparedStatementInput
2624
2665
  # data as a hash:
2625
2666
  #
@@ -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.50.0'
51
+ GEM_VERSION = '1.51.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.50.0
4
+ version: 1.51.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-02-24 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core