aws-sdk-athena 1.68.0 → 1.70.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-athena/client.rb +38 -2
- data/lib/aws-sdk-athena/client_api.rb +18 -0
- data/lib/aws-sdk-athena/endpoints.rb +14 -0
- data/lib/aws-sdk-athena/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-athena/types.rb +32 -6
- data/lib/aws-sdk-athena.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68e67440bddc1509347603f21e3ee3eb4fccb60051c47d4d9c01608a89145d20
|
4
|
+
data.tar.gz: 138fa7fdfe2ff8e2d803e054fdead313c9a5a06216a43ec8dfc2cbec5b5ffc22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efdf08522a24208d5cd004e544805b0f1aee3fee45d35397c0dc1763ef86f350ab6ca59f2f85f5cc61dc3ba89550e57d380436df3ca3050854478e436d29fd6a
|
7
|
+
data.tar.gz: b1fb8ece89b881754ff146966698f87a57282d89e8fc18b12375b7163d692035a041ad586ab45f2e592ef9bda65f4593b516ff2003ff938204d9d757bd043981
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.70.0 (2023-06-08)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - You can now define custom spark properties at start of the session for use cases like cluster encryption, table formats, and general Spark tuning.
|
8
|
+
|
9
|
+
1.69.0 (2023-06-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release introduces the DeleteCapacityReservation API and the ability to manage capacity reservations using CloudFormation
|
13
|
+
|
4
14
|
1.68.0 (2023-05-31)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.70.0
|
@@ -551,7 +551,11 @@ module Aws::Athena
|
|
551
551
|
req.send_request(options)
|
552
552
|
end
|
553
553
|
|
554
|
-
# Cancels the capacity reservation with the specified name.
|
554
|
+
# Cancels the capacity reservation with the specified name. Cancelled
|
555
|
+
# reservations remain in your account and will be deleted 45 days after
|
556
|
+
# cancellation. During the 45 days, you cannot re-purpose or reuse a
|
557
|
+
# reservation that has been cancelled, but you can refer to its tags and
|
558
|
+
# view it for historical reference.
|
555
559
|
#
|
556
560
|
# @option params [required, String] :name
|
557
561
|
# The name of the capacity reservation to cancel.
|
@@ -970,6 +974,33 @@ module Aws::Athena
|
|
970
974
|
req.send_request(options)
|
971
975
|
end
|
972
976
|
|
977
|
+
# Deletes a cancelled capacity reservation. A reservation must be
|
978
|
+
# cancelled before it can be deleted. A deleted reservation is
|
979
|
+
# immediately removed from your account and can no longer be referenced,
|
980
|
+
# including by its ARN. A deleted reservation cannot be called by
|
981
|
+
# `GetCapacityReservation`, and deleted reservations do not appear in
|
982
|
+
# the output of `ListCapacityReservations`.
|
983
|
+
#
|
984
|
+
# @option params [required, String] :name
|
985
|
+
# The name of the capacity reservation to delete.
|
986
|
+
#
|
987
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
988
|
+
#
|
989
|
+
# @example Request syntax with placeholder values
|
990
|
+
#
|
991
|
+
# resp = client.delete_capacity_reservation({
|
992
|
+
# name: "CapacityReservationName", # required
|
993
|
+
# })
|
994
|
+
#
|
995
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservation AWS API Documentation
|
996
|
+
#
|
997
|
+
# @overload delete_capacity_reservation(params = {})
|
998
|
+
# @param [Hash] params ({})
|
999
|
+
def delete_capacity_reservation(params = {}, options = {})
|
1000
|
+
req = build_request(:delete_capacity_reservation, params)
|
1001
|
+
req.send_request(options)
|
1002
|
+
end
|
1003
|
+
|
973
1004
|
# Deletes a data catalog.
|
974
1005
|
#
|
975
1006
|
# @option params [required, String] :name
|
@@ -1721,6 +1752,8 @@ module Aws::Athena
|
|
1721
1752
|
# resp.engine_configuration.default_executor_dpu_size #=> Integer
|
1722
1753
|
# resp.engine_configuration.additional_configs #=> Hash
|
1723
1754
|
# resp.engine_configuration.additional_configs["KeyString"] #=> String
|
1755
|
+
# resp.engine_configuration.spark_properties #=> Hash
|
1756
|
+
# resp.engine_configuration.spark_properties["KeyString"] #=> String
|
1724
1757
|
# resp.notebook_version #=> String
|
1725
1758
|
# resp.session_configuration.execution_role #=> String
|
1726
1759
|
# resp.session_configuration.working_directory #=> String
|
@@ -3038,6 +3071,9 @@ module Aws::Athena
|
|
3038
3071
|
# additional_configs: {
|
3039
3072
|
# "KeyString" => "ParametersMapValue",
|
3040
3073
|
# },
|
3074
|
+
# spark_properties: {
|
3075
|
+
# "KeyString" => "ParametersMapValue",
|
3076
|
+
# },
|
3041
3077
|
# },
|
3042
3078
|
# notebook_version: "NameString",
|
3043
3079
|
# session_idle_timeout_in_minutes: 1,
|
@@ -3562,7 +3598,7 @@ module Aws::Athena
|
|
3562
3598
|
params: params,
|
3563
3599
|
config: config)
|
3564
3600
|
context[:gem_name] = 'aws-sdk-athena'
|
3565
|
-
context[:gem_version] = '1.
|
3601
|
+
context[:gem_version] = '1.70.0'
|
3566
3602
|
Seahorse::Client::Request.new(handlers, context)
|
3567
3603
|
end
|
3568
3604
|
|
@@ -86,6 +86,8 @@ module Aws::Athena
|
|
86
86
|
Date = Shapes::TimestampShape.new(name: 'Date')
|
87
87
|
Datum = Shapes::StructureShape.new(name: 'Datum')
|
88
88
|
DefaultExecutorDpuSize = Shapes::IntegerShape.new(name: 'DefaultExecutorDpuSize')
|
89
|
+
DeleteCapacityReservationInput = Shapes::StructureShape.new(name: 'DeleteCapacityReservationInput')
|
90
|
+
DeleteCapacityReservationOutput = Shapes::StructureShape.new(name: 'DeleteCapacityReservationOutput')
|
89
91
|
DeleteDataCatalogInput = Shapes::StructureShape.new(name: 'DeleteDataCatalogInput')
|
90
92
|
DeleteDataCatalogOutput = Shapes::StructureShape.new(name: 'DeleteDataCatalogOutput')
|
91
93
|
DeleteNamedQueryInput = Shapes::StructureShape.new(name: 'DeleteNamedQueryInput')
|
@@ -539,6 +541,11 @@ module Aws::Athena
|
|
539
541
|
Datum.add_member(:var_char_value, Shapes::ShapeRef.new(shape: datumString, location_name: "VarCharValue"))
|
540
542
|
Datum.struct_class = Types::Datum
|
541
543
|
|
544
|
+
DeleteCapacityReservationInput.add_member(:name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "Name"))
|
545
|
+
DeleteCapacityReservationInput.struct_class = Types::DeleteCapacityReservationInput
|
546
|
+
|
547
|
+
DeleteCapacityReservationOutput.struct_class = Types::DeleteCapacityReservationOutput
|
548
|
+
|
542
549
|
DeleteDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
|
543
550
|
DeleteDataCatalogInput.struct_class = Types::DeleteDataCatalogInput
|
544
551
|
|
@@ -574,6 +581,7 @@ module Aws::Athena
|
|
574
581
|
EngineConfiguration.add_member(:max_concurrent_dpus, Shapes::ShapeRef.new(shape: MaxConcurrentDpus, required: true, location_name: "MaxConcurrentDpus"))
|
575
582
|
EngineConfiguration.add_member(:default_executor_dpu_size, Shapes::ShapeRef.new(shape: DefaultExecutorDpuSize, location_name: "DefaultExecutorDpuSize"))
|
576
583
|
EngineConfiguration.add_member(:additional_configs, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "AdditionalConfigs"))
|
584
|
+
EngineConfiguration.add_member(:spark_properties, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "SparkProperties"))
|
577
585
|
EngineConfiguration.struct_class = Types::EngineConfiguration
|
578
586
|
|
579
587
|
EngineVersion.add_member(:selected_engine_version, Shapes::ShapeRef.new(shape: NameString, location_name: "SelectedEngineVersion"))
|
@@ -1441,6 +1449,16 @@ module Aws::Athena
|
|
1441
1449
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1442
1450
|
end)
|
1443
1451
|
|
1452
|
+
api.add_operation(:delete_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
|
1453
|
+
o.name = "DeleteCapacityReservation"
|
1454
|
+
o.http_method = "POST"
|
1455
|
+
o.http_request_uri = "/"
|
1456
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteCapacityReservationInput)
|
1457
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteCapacityReservationOutput)
|
1458
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
1459
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
1460
|
+
end)
|
1461
|
+
|
1444
1462
|
api.add_operation(:delete_data_catalog, Seahorse::Model::Operation.new.tap do |o|
|
1445
1463
|
o.name = "DeleteDataCatalog"
|
1446
1464
|
o.http_method = "POST"
|
@@ -165,6 +165,20 @@ module Aws::Athena
|
|
165
165
|
end
|
166
166
|
end
|
167
167
|
|
168
|
+
class DeleteCapacityReservation
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::Athena::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
168
182
|
class DeleteDataCatalog
|
169
183
|
def self.build(context)
|
170
184
|
unless context.config.regional_endpoint
|
@@ -78,6 +78,8 @@ module Aws::Athena
|
|
78
78
|
Aws::Athena::Endpoints::CreatePresignedNotebookUrl.build(context)
|
79
79
|
when :create_work_group
|
80
80
|
Aws::Athena::Endpoints::CreateWorkGroup.build(context)
|
81
|
+
when :delete_capacity_reservation
|
82
|
+
Aws::Athena::Endpoints::DeleteCapacityReservation.build(context)
|
81
83
|
when :delete_data_catalog
|
82
84
|
Aws::Athena::Endpoints::DeleteDataCatalog.build(context)
|
83
85
|
when :delete_named_query
|
data/lib/aws-sdk-athena/types.rb
CHANGED
@@ -889,7 +889,7 @@ module Aws::Athena
|
|
889
889
|
class CreateWorkGroupOutput < Aws::EmptyStructure; end
|
890
890
|
|
891
891
|
# Specifies the KMS key that is used to encrypt the user's data stores
|
892
|
-
# in Athena.
|
892
|
+
# in Athena. This setting does not apply to Athena SQL workgroups.
|
893
893
|
#
|
894
894
|
# @!attribute [rw] kms_key
|
895
895
|
# The KMS key that is used to encrypt the user's data stores in
|
@@ -1043,6 +1043,22 @@ module Aws::Athena
|
|
1043
1043
|
include Aws::Structure
|
1044
1044
|
end
|
1045
1045
|
|
1046
|
+
# @!attribute [rw] name
|
1047
|
+
# The name of the capacity reservation to delete.
|
1048
|
+
# @return [String]
|
1049
|
+
#
|
1050
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservationInput AWS API Documentation
|
1051
|
+
#
|
1052
|
+
class DeleteCapacityReservationInput < Struct.new(
|
1053
|
+
:name)
|
1054
|
+
SENSITIVE = []
|
1055
|
+
include Aws::Structure
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/DeleteCapacityReservationOutput AWS API Documentation
|
1059
|
+
#
|
1060
|
+
class DeleteCapacityReservationOutput < Aws::EmptyStructure; end
|
1061
|
+
|
1046
1062
|
# @!attribute [rw] name
|
1047
1063
|
# The name of the data catalog to delete.
|
1048
1064
|
# @return [String]
|
@@ -1195,13 +1211,19 @@ module Aws::Athena
|
|
1195
1211
|
# value of the Athena notebook ID.
|
1196
1212
|
# @return [Hash<String,String>]
|
1197
1213
|
#
|
1214
|
+
# @!attribute [rw] spark_properties
|
1215
|
+
# Specifies custom jar files and Spark properties for use cases like
|
1216
|
+
# cluster encryption, table formats, and general Spark tuning.
|
1217
|
+
# @return [Hash<String,String>]
|
1218
|
+
#
|
1198
1219
|
# @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/EngineConfiguration AWS API Documentation
|
1199
1220
|
#
|
1200
1221
|
class EngineConfiguration < Struct.new(
|
1201
1222
|
:coordinator_dpu_size,
|
1202
1223
|
:max_concurrent_dpus,
|
1203
1224
|
:default_executor_dpu_size,
|
1204
|
-
:additional_configs
|
1225
|
+
:additional_configs,
|
1226
|
+
:spark_properties)
|
1205
1227
|
SENSITIVE = []
|
1206
1228
|
include Aws::Structure
|
1207
1229
|
end
|
@@ -2996,7 +3018,8 @@ module Aws::Athena
|
|
2996
3018
|
# @!attribute [rw] execution_parameters
|
2997
3019
|
# A list of values for the parameters in a query. The values are
|
2998
3020
|
# applied sequentially to the parameters in the query in the order in
|
2999
|
-
# which the parameters occur.
|
3021
|
+
# which the parameters occur. The list of parameters is not returned
|
3022
|
+
# in the response.
|
3000
3023
|
# @return [Array<String>]
|
3001
3024
|
#
|
3002
3025
|
# @!attribute [rw] substatement_type
|
@@ -4806,7 +4829,8 @@ module Aws::Athena
|
|
4806
4829
|
#
|
4807
4830
|
# @!attribute [rw] customer_content_encryption_configuration
|
4808
4831
|
# Specifies the KMS key that is used to encrypt the user's data
|
4809
|
-
# stores in Athena.
|
4832
|
+
# stores in Athena. This setting does not apply to Athena SQL
|
4833
|
+
# workgroups.
|
4810
4834
|
# @return [Types::CustomerContentEncryptionConfiguration]
|
4811
4835
|
#
|
4812
4836
|
# @!attribute [rw] enable_minimum_encryption_configuration
|
@@ -4902,7 +4926,8 @@ module Aws::Athena
|
|
4902
4926
|
# @return [Types::EngineVersion]
|
4903
4927
|
#
|
4904
4928
|
# @!attribute [rw] remove_customer_content_encryption_configuration
|
4905
|
-
# Removes content encryption configuration
|
4929
|
+
# Removes content encryption configuration from an Apache
|
4930
|
+
# Spark-enabled Athena workgroup.
|
4906
4931
|
# @return [Boolean]
|
4907
4932
|
#
|
4908
4933
|
# @!attribute [rw] additional_configuration
|
@@ -4916,7 +4941,8 @@ module Aws::Athena
|
|
4916
4941
|
#
|
4917
4942
|
# @!attribute [rw] customer_content_encryption_configuration
|
4918
4943
|
# Specifies the KMS key that is used to encrypt the user's data
|
4919
|
-
# stores in Athena.
|
4944
|
+
# stores in Athena. This setting does not apply to Athena SQL
|
4945
|
+
# workgroups.
|
4920
4946
|
# @return [Types::CustomerContentEncryptionConfiguration]
|
4921
4947
|
#
|
4922
4948
|
# @!attribute [rw] enable_minimum_encryption_configuration
|
data/lib/aws-sdk-athena.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-athena
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.70.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: 2023-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|