aws-sdk-athena 1.64.0 → 1.66.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: ef4f565c264acbdf2e8231ff320670a5a809e877e71265e84529aee3060a3e24
4
- data.tar.gz: 8fc2bc53535c4a9ea120231a3ec2deb2eeb82faa6842d98da3e6552c4d1e71e2
3
+ metadata.gz: b86c590858a0e622014e598449567063af7f35b3e5b7ba56c9c9ad4b0fe800f9
4
+ data.tar.gz: 7c3d0904c0f910847528a85cec1807aea89c05979a158c2b32a22012e58b0078
5
5
  SHA512:
6
- metadata.gz: 7e47325bfb2ddf6cc4a4f05adb381b19c9e25d1601fce6adc0b4748df3f9d856f3725f9aa3a6e6899ca070b15fb460a69f1a19be3702fd09666ee1c3ea6ce06f
7
- data.tar.gz: 7b262a69c7faac4b11fa0847ac78928a4b6b8e127a065110834ab9d7bce6850e452cd293c2a9d80402850e940491afafde26bf46ae1b6bb5b7b7186463ee59f8
6
+ metadata.gz: 1f8791cde15a99b56e30e901dfac377ef187ca641f48e80bbf98dc28d9a355c18985d5c4a2a2c63906f3b5497a6f51561c8dee7391c049907008cc09e55c08ed
7
+ data.tar.gz: 97ec2dbb6e24e9fdd722549cbe057804f586aad027ce661321585ccd3cb126eae452965052c77ec8de2f17a108b8e865b19a864cd0071da936d071415a8260e3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.66.0 (2023-05-15)
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.65.0 (2023-04-28)
10
+ ------------------
11
+
12
+ * Feature - You can now use capacity reservations on Amazon Athena to run SQL queries on fully-managed compute capacity.
13
+
4
14
  1.64.0 (2023-03-30)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.66.0
@@ -546,6 +546,64 @@ module Aws::Athena
546
546
  req.send_request(options)
547
547
  end
548
548
 
549
+ # Cancels the capacity reservation with the specified name.
550
+ #
551
+ # @option params [required, String] :name
552
+ # The name of the capacity reservation to cancel.
553
+ #
554
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
555
+ #
556
+ # @example Request syntax with placeholder values
557
+ #
558
+ # resp = client.cancel_capacity_reservation({
559
+ # name: "CapacityReservationName", # required
560
+ # })
561
+ #
562
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CancelCapacityReservation AWS API Documentation
563
+ #
564
+ # @overload cancel_capacity_reservation(params = {})
565
+ # @param [Hash] params ({})
566
+ def cancel_capacity_reservation(params = {}, options = {})
567
+ req = build_request(:cancel_capacity_reservation, params)
568
+ req.send_request(options)
569
+ end
570
+
571
+ # Creates a capacity reservation with the specified name and number of
572
+ # requested data processing units.
573
+ #
574
+ # @option params [required, Integer] :target_dpus
575
+ # The number of requested data processing units.
576
+ #
577
+ # @option params [required, String] :name
578
+ # The name of the capacity reservation to create.
579
+ #
580
+ # @option params [Array<Types::Tag>] :tags
581
+ # The tags for the capacity reservation.
582
+ #
583
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
584
+ #
585
+ # @example Request syntax with placeholder values
586
+ #
587
+ # resp = client.create_capacity_reservation({
588
+ # target_dpus: 1, # required
589
+ # name: "CapacityReservationName", # required
590
+ # tags: [
591
+ # {
592
+ # key: "TagKey",
593
+ # value: "TagValue",
594
+ # },
595
+ # ],
596
+ # })
597
+ #
598
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/CreateCapacityReservation AWS API Documentation
599
+ #
600
+ # @overload create_capacity_reservation(params = {})
601
+ # @param [Hash] params ({})
602
+ def create_capacity_reservation(params = {}, options = {})
603
+ req = build_request(:create_capacity_reservation, params)
604
+ req.send_request(options)
605
+ end
606
+
549
607
  # Creates (registers) a data catalog with the specified name and
550
608
  # properties. Catalogs created are visible to all users of the same
551
609
  # Amazon Web Services account.
@@ -1183,6 +1241,77 @@ module Aws::Athena
1183
1241
  req.send_request(options)
1184
1242
  end
1185
1243
 
1244
+ # Gets the capacity assignment configuration for a capacity reservation,
1245
+ # if one exists.
1246
+ #
1247
+ # @option params [required, String] :capacity_reservation_name
1248
+ # The name of the capacity reservation to retrieve the capacity
1249
+ # assignment configuration for.
1250
+ #
1251
+ # @return [Types::GetCapacityAssignmentConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1252
+ #
1253
+ # * {Types::GetCapacityAssignmentConfigurationOutput#capacity_assignment_configuration #capacity_assignment_configuration} => Types::CapacityAssignmentConfiguration
1254
+ #
1255
+ # @example Request syntax with placeholder values
1256
+ #
1257
+ # resp = client.get_capacity_assignment_configuration({
1258
+ # capacity_reservation_name: "CapacityReservationName", # required
1259
+ # })
1260
+ #
1261
+ # @example Response structure
1262
+ #
1263
+ # resp.capacity_assignment_configuration.capacity_reservation_name #=> String
1264
+ # resp.capacity_assignment_configuration.capacity_assignments #=> Array
1265
+ # resp.capacity_assignment_configuration.capacity_assignments[0].work_group_names #=> Array
1266
+ # resp.capacity_assignment_configuration.capacity_assignments[0].work_group_names[0] #=> String
1267
+ #
1268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityAssignmentConfiguration AWS API Documentation
1269
+ #
1270
+ # @overload get_capacity_assignment_configuration(params = {})
1271
+ # @param [Hash] params ({})
1272
+ def get_capacity_assignment_configuration(params = {}, options = {})
1273
+ req = build_request(:get_capacity_assignment_configuration, params)
1274
+ req.send_request(options)
1275
+ end
1276
+
1277
+ # Returns information about the capacity reservation with the specified
1278
+ # name.
1279
+ #
1280
+ # @option params [required, String] :name
1281
+ # The name of the capacity reservation.
1282
+ #
1283
+ # @return [Types::GetCapacityReservationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1284
+ #
1285
+ # * {Types::GetCapacityReservationOutput#capacity_reservation #capacity_reservation} => Types::CapacityReservation
1286
+ #
1287
+ # @example Request syntax with placeholder values
1288
+ #
1289
+ # resp = client.get_capacity_reservation({
1290
+ # name: "CapacityReservationName", # required
1291
+ # })
1292
+ #
1293
+ # @example Response structure
1294
+ #
1295
+ # resp.capacity_reservation.name #=> String
1296
+ # resp.capacity_reservation.status #=> String, one of "PENDING", "ACTIVE", "CANCELLING", "CANCELLED", "FAILED", "UPDATE_PENDING"
1297
+ # resp.capacity_reservation.target_dpus #=> Integer
1298
+ # resp.capacity_reservation.allocated_dpus #=> Integer
1299
+ # resp.capacity_reservation.last_allocation.status #=> String, one of "PENDING", "SUCCEEDED", "FAILED"
1300
+ # resp.capacity_reservation.last_allocation.status_message #=> String
1301
+ # resp.capacity_reservation.last_allocation.request_time #=> Time
1302
+ # resp.capacity_reservation.last_allocation.request_completion_time #=> Time
1303
+ # resp.capacity_reservation.last_successful_allocation_time #=> Time
1304
+ # resp.capacity_reservation.creation_time #=> Time
1305
+ #
1306
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/GetCapacityReservation AWS API Documentation
1307
+ #
1308
+ # @overload get_capacity_reservation(params = {})
1309
+ # @param [Hash] params ({})
1310
+ def get_capacity_reservation(params = {}, options = {})
1311
+ req = build_request(:get_capacity_reservation, params)
1312
+ req.send_request(options)
1313
+ end
1314
+
1186
1315
  # Returns the specified data catalog.
1187
1316
  #
1188
1317
  # @option params [required, String] :name
@@ -1587,6 +1716,8 @@ module Aws::Athena
1587
1716
  # resp.engine_configuration.default_executor_dpu_size #=> Integer
1588
1717
  # resp.engine_configuration.additional_configs #=> Hash
1589
1718
  # resp.engine_configuration.additional_configs["KeyString"] #=> String
1719
+ # resp.engine_configuration.spark_properties #=> Hash
1720
+ # resp.engine_configuration.spark_properties["KeyString"] #=> String
1590
1721
  # resp.notebook_version #=> String
1591
1722
  # resp.session_configuration.execution_role #=> String
1592
1723
  # resp.session_configuration.working_directory #=> String
@@ -1910,6 +2041,53 @@ module Aws::Athena
1910
2041
  req.send_request(options)
1911
2042
  end
1912
2043
 
2044
+ # Lists the capacity reservations for the current account.
2045
+ #
2046
+ # @option params [String] :next_token
2047
+ # A token generated by the Athena service that specifies where to
2048
+ # continue pagination if a previous request was truncated.
2049
+ #
2050
+ # @option params [Integer] :max_results
2051
+ # Specifies the maximum number of results to return.
2052
+ #
2053
+ # @return [Types::ListCapacityReservationsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2054
+ #
2055
+ # * {Types::ListCapacityReservationsOutput#next_token #next_token} => String
2056
+ # * {Types::ListCapacityReservationsOutput#capacity_reservations #capacity_reservations} => Array&lt;Types::CapacityReservation&gt;
2057
+ #
2058
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2059
+ #
2060
+ # @example Request syntax with placeholder values
2061
+ #
2062
+ # resp = client.list_capacity_reservations({
2063
+ # next_token: "Token",
2064
+ # max_results: 1,
2065
+ # })
2066
+ #
2067
+ # @example Response structure
2068
+ #
2069
+ # resp.next_token #=> String
2070
+ # resp.capacity_reservations #=> Array
2071
+ # resp.capacity_reservations[0].name #=> String
2072
+ # resp.capacity_reservations[0].status #=> String, one of "PENDING", "ACTIVE", "CANCELLING", "CANCELLED", "FAILED", "UPDATE_PENDING"
2073
+ # resp.capacity_reservations[0].target_dpus #=> Integer
2074
+ # resp.capacity_reservations[0].allocated_dpus #=> Integer
2075
+ # resp.capacity_reservations[0].last_allocation.status #=> String, one of "PENDING", "SUCCEEDED", "FAILED"
2076
+ # resp.capacity_reservations[0].last_allocation.status_message #=> String
2077
+ # resp.capacity_reservations[0].last_allocation.request_time #=> Time
2078
+ # resp.capacity_reservations[0].last_allocation.request_completion_time #=> Time
2079
+ # resp.capacity_reservations[0].last_successful_allocation_time #=> Time
2080
+ # resp.capacity_reservations[0].creation_time #=> Time
2081
+ #
2082
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListCapacityReservations AWS API Documentation
2083
+ #
2084
+ # @overload list_capacity_reservations(params = {})
2085
+ # @param [Hash] params ({})
2086
+ def list_capacity_reservations(params = {}, options = {})
2087
+ req = build_request(:list_capacity_reservations, params)
2088
+ req.send_request(options)
2089
+ end
2090
+
1913
2091
  # Lists the data catalogs in the current Amazon Web Services account.
1914
2092
  #
1915
2093
  # <note markdown="1"> In the Athena console, data catalogs are listed as "data sources" on
@@ -2520,8 +2698,7 @@ module Aws::Athena
2520
2698
  req.send_request(options)
2521
2699
  end
2522
2700
 
2523
- # Lists the tags associated with an Athena workgroup or data catalog
2524
- # resource.
2701
+ # Lists the tags associated with an Athena resource.
2525
2702
  #
2526
2703
  # @option params [required, String] :resource_arn
2527
2704
  # Lists the tags for the resource with the specified ARN.
@@ -2611,6 +2788,40 @@ module Aws::Athena
2611
2788
  req.send_request(options)
2612
2789
  end
2613
2790
 
2791
+ # Puts a new capacity assignment configuration for a specified capacity
2792
+ # reservation. If a capacity assignment configuration already exists for
2793
+ # the capacity reservation, replaces the existing capacity assignment
2794
+ # configuration.
2795
+ #
2796
+ # @option params [required, String] :capacity_reservation_name
2797
+ # The name of the capacity reservation to put a capacity assignment
2798
+ # configuration for.
2799
+ #
2800
+ # @option params [required, Array<Types::CapacityAssignment>] :capacity_assignments
2801
+ # The list of assignments for the capacity assignment configuration.
2802
+ #
2803
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2804
+ #
2805
+ # @example Request syntax with placeholder values
2806
+ #
2807
+ # resp = client.put_capacity_assignment_configuration({
2808
+ # capacity_reservation_name: "CapacityReservationName", # required
2809
+ # capacity_assignments: [ # required
2810
+ # {
2811
+ # work_group_names: ["WorkGroupName"],
2812
+ # },
2813
+ # ],
2814
+ # })
2815
+ #
2816
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/PutCapacityAssignmentConfiguration AWS API Documentation
2817
+ #
2818
+ # @overload put_capacity_assignment_configuration(params = {})
2819
+ # @param [Hash] params ({})
2820
+ def put_capacity_assignment_configuration(params = {}, options = {})
2821
+ req = build_request(:put_capacity_assignment_configuration, params)
2822
+ req.send_request(options)
2823
+ end
2824
+
2614
2825
  # Submits calculations for execution within a session. You can supply
2615
2826
  # the code to run as an inline code block within the request.
2616
2827
  #
@@ -2824,6 +3035,9 @@ module Aws::Athena
2824
3035
  # additional_configs: {
2825
3036
  # "KeyString" => "ParametersMapValue",
2826
3037
  # },
3038
+ # spark_properties: {
3039
+ # "KeyString" => "ParametersMapValue",
3040
+ # },
2827
3041
  # },
2828
3042
  # notebook_version: "NameString",
2829
3043
  # session_idle_timeout_in_minutes: 1,
@@ -2917,30 +3131,29 @@ module Aws::Athena
2917
3131
  end
2918
3132
 
2919
3133
  # Adds one or more tags to an Athena resource. A tag is a label that you
2920
- # assign to a resource. In Athena, a resource can be a workgroup or data
2921
- # catalog. Each tag consists of a key and an optional value, both of
2922
- # which you define. For example, you can use tags to categorize Athena
2923
- # workgroups or data catalogs by purpose, owner, or environment. Use a
2924
- # consistent set of tag keys to make it easier to search and filter
2925
- # workgroups or data catalogs in your account. For best practices, see
2926
- # [Tagging Best Practices][1]. Tag keys can be from 1 to 128 UTF-8
2927
- # Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode
2928
- # characters. Tags can use letters and numbers representable in UTF-8,
2929
- # and the following characters: + - = . \_ : / @. Tag keys and values
2930
- # are case-sensitive. Tag keys must be unique per resource. If you
2931
- # specify more than one tag, separate them by commas.
3134
+ # assign to a resource. Each tag consists of a key and an optional
3135
+ # value, both of which you define. For example, you can use tags to
3136
+ # categorize Athena workgroups, data catalogs, or capacity reservations
3137
+ # by purpose, owner, or environment. Use a consistent set of tag keys to
3138
+ # make it easier to search and filter the resources in your account. For
3139
+ # best practices, see [Tagging Best Practices][1]. Tag keys can be from
3140
+ # 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256
3141
+ # UTF-8 Unicode characters. Tags can use letters and numbers
3142
+ # representable in UTF-8, and the following characters: + - = . \_ : /
3143
+ # @. Tag keys and values are case-sensitive. Tag keys must be unique per
3144
+ # resource. If you specify more than one tag, separate them by commas.
2932
3145
  #
2933
3146
  #
2934
3147
  #
2935
3148
  # [1]: https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html
2936
3149
  #
2937
3150
  # @option params [required, String] :resource_arn
2938
- # Specifies the ARN of the Athena resource (workgroup or data catalog)
2939
- # to which tags are to be added.
3151
+ # Specifies the ARN of the Athena resource to which tags are to be
3152
+ # added.
2940
3153
  #
2941
3154
  # @option params [required, Array<Types::Tag>] :tags
2942
3155
  # A collection of one or more tags, separated by commas, to be added to
2943
- # an Athena workgroup or data catalog resource.
3156
+ # an Athena resource.
2944
3157
  #
2945
3158
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2946
3159
  #
@@ -2997,7 +3210,7 @@ module Aws::Athena
2997
3210
  req.send_request(options)
2998
3211
  end
2999
3212
 
3000
- # Removes one or more tags from a data catalog or workgroup resource.
3213
+ # Removes one or more tags from an Athena resource.
3001
3214
  #
3002
3215
  # @option params [required, String] :resource_arn
3003
3216
  # Specifies the ARN of the resource from which tags are to be removed.
@@ -3024,6 +3237,33 @@ module Aws::Athena
3024
3237
  req.send_request(options)
3025
3238
  end
3026
3239
 
3240
+ # Updates the number of requested data processing units for the capacity
3241
+ # reservation with the specified name.
3242
+ #
3243
+ # @option params [required, Integer] :target_dpus
3244
+ # The new number of requested data processing units.
3245
+ #
3246
+ # @option params [required, String] :name
3247
+ # The name of the capacity reservation.
3248
+ #
3249
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3250
+ #
3251
+ # @example Request syntax with placeholder values
3252
+ #
3253
+ # resp = client.update_capacity_reservation({
3254
+ # target_dpus: 1, # required
3255
+ # name: "CapacityReservationName", # required
3256
+ # })
3257
+ #
3258
+ # @see http://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UpdateCapacityReservation AWS API Documentation
3259
+ #
3260
+ # @overload update_capacity_reservation(params = {})
3261
+ # @param [Hash] params ({})
3262
+ def update_capacity_reservation(params = {}, options = {})
3263
+ req = build_request(:update_capacity_reservation, params)
3264
+ req.send_request(options)
3265
+ end
3266
+
3027
3267
  # Updates the data catalog that has the specified name.
3028
3268
  #
3029
3269
  # @option params [required, String] :name
@@ -3322,7 +3562,7 @@ module Aws::Athena
3322
3562
  params: params,
3323
3563
  config: config)
3324
3564
  context[:gem_name] = 'aws-sdk-athena'
3325
- context[:gem_version] = '1.64.0'
3565
+ context[:gem_version] = '1.66.0'
3326
3566
  Seahorse::Client::Request.new(handlers, context)
3327
3567
  end
3328
3568