aws-sdk-eks 1.172.0 → 1.174.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.
@@ -67,16 +67,17 @@ module Aws::EKS
67
67
  # The following table lists the valid waiter names, the operations they call,
68
68
  # and the default `:delay` and `:max_attempts` values.
69
69
  #
70
- # | waiter_name | params | :delay | :max_attempts |
71
- # | ----------------------- | --------------------------------- | -------- | ------------- |
72
- # | addon_active | {Client#describe_addon} | 10 | 60 |
73
- # | addon_deleted | {Client#describe_addon} | 10 | 60 |
74
- # | cluster_active | {Client#describe_cluster} | 30 | 40 |
75
- # | cluster_deleted | {Client#describe_cluster} | 30 | 40 |
76
- # | fargate_profile_active | {Client#describe_fargate_profile} | 10 | 60 |
77
- # | fargate_profile_deleted | {Client#describe_fargate_profile} | 30 | 60 |
78
- # | nodegroup_active | {Client#describe_nodegroup} | 30 | 80 |
79
- # | nodegroup_deleted | {Client#describe_nodegroup} | 30 | 40 |
70
+ # | waiter_name | params | :delay | :max_attempts |
71
+ # | ------------------------------------- | --------------------------------- | -------- | ------------- |
72
+ # | addon_active | {Client#describe_addon} | 10 | 60 |
73
+ # | addon_deleted | {Client#describe_addon} | 10 | 60 |
74
+ # | certificate_authority_update_complete | {Client#describe_update} | 30 | 40 |
75
+ # | cluster_active | {Client#describe_cluster} | 30 | 40 |
76
+ # | cluster_deleted | {Client#describe_cluster} | 30 | 40 |
77
+ # | fargate_profile_active | {Client#describe_fargate_profile} | 10 | 60 |
78
+ # | fargate_profile_deleted | {Client#describe_fargate_profile} | 30 | 60 |
79
+ # | nodegroup_active | {Client#describe_nodegroup} | 30 | 80 |
80
+ # | nodegroup_deleted | {Client#describe_nodegroup} | 30 | 40 |
80
81
  #
81
82
  module Waiters
82
83
 
@@ -173,6 +174,56 @@ module Aws::EKS
173
174
 
174
175
  end
175
176
 
177
+ class CertificateAuthorityUpdateComplete
178
+
179
+ # @param [Hash] options
180
+ # @option options [required, Client] :client
181
+ # @option options [Integer] :max_attempts (40)
182
+ # @option options [Integer] :delay (30)
183
+ # @option options [Proc] :before_attempt
184
+ # @option options [Proc] :before_wait
185
+ def initialize(options)
186
+ @client = options.fetch(:client)
187
+ @waiter = Aws::Waiters::Waiter.new({
188
+ max_attempts: 40,
189
+ delay: 30,
190
+ poller: Aws::Waiters::Poller.new(
191
+ operation_name: :describe_update,
192
+ acceptors: [
193
+ {
194
+ "expected" => "Failed",
195
+ "matcher" => "path",
196
+ "state" => "failure",
197
+ "argument" => "update.status"
198
+ },
199
+ {
200
+ "expected" => "Cancelled",
201
+ "matcher" => "path",
202
+ "state" => "failure",
203
+ "argument" => "update.status"
204
+ },
205
+ {
206
+ "expected" => "Successful",
207
+ "matcher" => "path",
208
+ "state" => "success",
209
+ "argument" => "update.status"
210
+ }
211
+ ]
212
+ )
213
+ }.merge(options))
214
+ end
215
+
216
+ # @option (see Client#describe_update)
217
+ # @return (see Client#describe_update)
218
+ def wait(params = {})
219
+ @waiter.wait(client: @client, params: params)
220
+ end
221
+
222
+ # @api private
223
+ attr_reader :waiter
224
+
225
+ end
226
+
176
227
  class ClusterActive
177
228
 
178
229
  # @param [Hash] options
data/lib/aws-sdk-eks.rb CHANGED
@@ -23,7 +23,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:eks)
23
23
  # structure.
24
24
  #
25
25
  # eks = Aws::EKS::Client.new
26
- # resp = eks.associate_access_policy(params)
26
+ # resp = eks.activate_certificate_authority(params)
27
27
  #
28
28
  # See {Client} for more information.
29
29
  #
@@ -55,7 +55,7 @@ module Aws::EKS
55
55
  autoload :EndpointProvider, 'aws-sdk-eks/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-eks/endpoints'
57
57
 
58
- GEM_VERSION = '1.172.0'
58
+ GEM_VERSION = '1.174.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -78,6 +78,19 @@ module Aws
78
78
  | (?Hash[Symbol, untyped]) -> instance
79
79
 
80
80
 
81
+ interface _ActivateCertificateAuthorityResponseSuccess
82
+ include ::Seahorse::Client::_ResponseSuccess[Types::ActivateCertificateAuthorityResponse]
83
+ def update: () -> Types::Update
84
+ def certificate_authority: () -> Types::CertificateAuthoritySummary
85
+ end
86
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EKS/Client.html#activate_certificate_authority-instance_method
87
+ def activate_certificate_authority: (
88
+ cluster_name: ::String,
89
+ certificate_authority_id: ::String,
90
+ ?client_request_token: ::String
91
+ ) -> _ActivateCertificateAuthorityResponseSuccess
92
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ActivateCertificateAuthorityResponseSuccess
93
+
81
94
  interface _AssociateAccessPolicyResponseSuccess
82
95
  include ::Seahorse::Client::_ResponseSuccess[Types::AssociateAccessPolicyResponse]
83
96
  def cluster_name: () -> ::String
@@ -231,6 +244,18 @@ module Aws
231
244
  ) -> _CreateCapabilityResponseSuccess
232
245
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCapabilityResponseSuccess
233
246
 
247
+ interface _CreateCertificateAuthorityResponseSuccess
248
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCertificateAuthorityResponse]
249
+ def update: () -> Types::Update
250
+ def certificate_authority: () -> Types::CertificateAuthoritySummary
251
+ end
252
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EKS/Client.html#create_certificate_authority-instance_method
253
+ def create_certificate_authority: (
254
+ cluster_name: ::String,
255
+ ?client_request_token: ::String
256
+ ) -> _CreateCertificateAuthorityResponseSuccess
257
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCertificateAuthorityResponseSuccess
258
+
234
259
  interface _CreateClusterResponseSuccess
235
260
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateClusterResponse]
236
261
  def cluster: () -> Types::Cluster
@@ -303,6 +328,19 @@ module Aws
303
328
  ?deletion_protection: bool,
304
329
  ?control_plane_scaling_config: {
305
330
  tier: ("standard" | "tier-xl" | "tier-2xl" | "tier-4xl" | "tier-8xl")?
331
+ },
332
+ ?kube_api_server_config: {
333
+ event_ttl: ::String?,
334
+ service_node_port_range: {
335
+ min_port: ::Integer?,
336
+ max_port: ::Integer?
337
+ }?
338
+ },
339
+ ?kube_scheduler_config: Params::kube_scheduler_config_request,
340
+ ?kube_controller_manager_config: {
341
+ horizontal_pod_autoscaler_controller_config: {
342
+ horizontal_pod_autoscaler_sync_period: ::String?
343
+ }?
306
344
  }
307
345
  ) -> _CreateClusterResponseSuccess
308
346
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateClusterResponseSuccess
@@ -454,6 +492,19 @@ module Aws
454
492
  ) -> _DeleteCapabilityResponseSuccess
455
493
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCapabilityResponseSuccess
456
494
 
495
+ interface _DeleteCertificateAuthorityResponseSuccess
496
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCertificateAuthorityResponse]
497
+ def update: () -> Types::Update
498
+ def certificate_authority: () -> Types::CertificateAuthoritySummary
499
+ end
500
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EKS/Client.html#delete_certificate_authority-instance_method
501
+ def delete_certificate_authority: (
502
+ cluster_name: ::String,
503
+ certificate_authority_id: ::String,
504
+ ?client_request_token: ::String
505
+ ) -> _DeleteCertificateAuthorityResponseSuccess
506
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCertificateAuthorityResponseSuccess
507
+
457
508
  interface _DeleteClusterResponseSuccess
458
509
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteClusterResponse]
459
510
  def cluster: () -> Types::Cluster
@@ -581,6 +632,17 @@ module Aws
581
632
  ) -> _DescribeCapabilityResponseSuccess
582
633
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeCapabilityResponseSuccess
583
634
 
635
+ interface _DescribeCertificateAuthorityResponseSuccess
636
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeCertificateAuthorityResponse]
637
+ def certificate_authority: () -> Types::CertificateAuthority
638
+ end
639
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EKS/Client.html#describe_certificate_authority-instance_method
640
+ def describe_certificate_authority: (
641
+ cluster_name: ::String,
642
+ certificate_authority_id: ::String
643
+ ) -> _DescribeCertificateAuthorityResponseSuccess
644
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeCertificateAuthorityResponseSuccess
645
+
584
646
  interface _DescribeClusterResponseSuccess
585
647
  include ::Seahorse::Client::_ResponseSuccess[Types::DescribeClusterResponse]
586
648
  def cluster: () -> Types::Cluster
@@ -798,6 +860,19 @@ module Aws
798
860
  ) -> _ListCapabilitiesResponseSuccess
799
861
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCapabilitiesResponseSuccess
800
862
 
863
+ interface _ListCertificateAuthoritiesResponseSuccess
864
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCertificateAuthoritiesResponse]
865
+ def certificate_authorities: () -> ::Array[Types::CertificateAuthoritySummary]
866
+ def next_token: () -> ::String
867
+ end
868
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EKS/Client.html#list_certificate_authorities-instance_method
869
+ def list_certificate_authorities: (
870
+ cluster_name: ::String,
871
+ ?max_results: ::Integer,
872
+ ?next_token: ::String
873
+ ) -> _ListCertificateAuthoritiesResponseSuccess
874
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCertificateAuthoritiesResponseSuccess
875
+
801
876
  interface _ListClustersResponseSuccess
802
877
  include ::Seahorse::Client::_ResponseSuccess[Types::ListClustersResponse]
803
878
  def clusters: () -> ::Array[::String]
@@ -1097,6 +1172,19 @@ module Aws
1097
1172
  ?deletion_protection: bool,
1098
1173
  ?control_plane_scaling_config: {
1099
1174
  tier: ("standard" | "tier-xl" | "tier-2xl" | "tier-4xl" | "tier-8xl")?
1175
+ },
1176
+ ?kube_api_server_config: {
1177
+ event_ttl: ::String?,
1178
+ service_node_port_range: {
1179
+ min_port: ::Integer?,
1180
+ max_port: ::Integer?
1181
+ }?
1182
+ },
1183
+ ?kube_scheduler_config: Params::kube_scheduler_config_request,
1184
+ ?kube_controller_manager_config: {
1185
+ horizontal_pod_autoscaler_controller_config: {
1186
+ horizontal_pod_autoscaler_sync_period: ::String?
1187
+ }?
1100
1188
  }
1101
1189
  ) -> _UpdateClusterConfigResponseSuccess
1102
1190
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateClusterConfigResponseSuccess
@@ -1226,6 +1314,14 @@ module Aws
1226
1314
  addon_name: ::String
1227
1315
  ) -> Client::_DescribeAddonResponseSuccess
1228
1316
  | (:addon_deleted waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeAddonResponseSuccess
1317
+ | (:certificate_authority_update_complete waiter_name,
1318
+ name: ::String,
1319
+ update_id: ::String,
1320
+ ?nodegroup_name: ::String,
1321
+ ?addon_name: ::String,
1322
+ ?capability_name: ::String
1323
+ ) -> Client::_DescribeUpdateResponseSuccess
1324
+ | (:certificate_authority_update_complete waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_DescribeUpdateResponseSuccess
1229
1325
  | (:cluster_active waiter_name,
1230
1326
  name: ::String
1231
1327
  ) -> Client::_DescribeClusterResponseSuccess
data/sig/params.rbs CHANGED
@@ -30,6 +30,22 @@ module Aws
30
30
  ]?
31
31
  }
32
32
 
33
+ type node_resources_fit_config = {
34
+ scoring_strategy: {
35
+ type: ("LeastAllocated" | "MostAllocated")?,
36
+ resources: Array[
37
+ {
38
+ name: ::String?,
39
+ weight: ::Integer?
40
+ }
41
+ ]?
42
+ }?
43
+ }
44
+
45
+ type kube_scheduler_config_request = {
46
+ node_resources_fit: Params::node_resources_fit_config?
47
+ }
48
+
33
49
  type node_repair_config = {
34
50
  enabled: bool?,
35
51
  max_unhealthy_node_threshold_count: ::Integer?,