aws-sdk-eks 1.33.0 → 1.38.1
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 +5 -5
- data/lib/aws-sdk-eks.rb +1 -1
- data/lib/aws-sdk-eks/client.rb +67 -41
- data/lib/aws-sdk-eks/resource.rb +1 -7
- data/lib/aws-sdk-eks/types.rb +8 -8
- data/lib/aws-sdk-eks/waiters.rb +64 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e2a0431299aa1eb0229d5af4b8a5ed3cd86a45e127f37e75c7da506434832515
|
4
|
+
data.tar.gz: d2dd095ba36c113f8d2a55c582e8792d55278ccab747b7b4f1a0ff0fddb9d08a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c56d6a4e0b6adaf50624a4024d51d8adfe56f74745b1264b0e5a179a067bb049a29bea38042d39687dbffb2b14d70d325bea7cf9a9cbd9f6add261f891ef8775
|
7
|
+
data.tar.gz: 217219ff59a8a005eaac1568a9568773877d4ecb3ba86d42a530c32d3a150fb7a0145fa28064ff2aa9097a8937bffcd28a801ac4e305654cdc6a56a26105fc5c
|
data/lib/aws-sdk-eks.rb
CHANGED
data/lib/aws-sdk-eks/client.rb
CHANGED
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
30
|
|
@@ -32,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:eks)
|
|
32
33
|
module Aws::EKS
|
33
34
|
# An API client for EKS. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
35
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
36
|
+
# client = Aws::EKS::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
40
41
|
#
|
41
42
|
# For details on configuring region and credentials see
|
42
43
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -69,6 +70,7 @@ module Aws::EKS
|
|
69
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
75
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
76
|
|
@@ -105,7 +107,7 @@ module Aws::EKS
|
|
105
107
|
# @option options [required, String] :region
|
106
108
|
# The AWS region to connect to. The configured `:region` is
|
107
109
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
109
111
|
#
|
110
112
|
# * `Aws.config[:region]`
|
111
113
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +163,7 @@ module Aws::EKS
|
|
161
163
|
# @option options [String] :endpoint
|
162
164
|
# The client endpoint is normally constructed from the `:region`
|
163
165
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
167
|
#
|
166
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +178,7 @@ module Aws::EKS
|
|
176
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
179
|
#
|
178
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
182
|
#
|
181
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
184
|
# The log formatter.
|
@@ -229,15 +231,19 @@ module Aws::EKS
|
|
229
231
|
#
|
230
232
|
# @option options [String] :retry_mode ("legacy")
|
231
233
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
234
|
+
#
|
235
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
236
|
+
# no retry mode is provided.
|
237
|
+
#
|
238
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
239
|
+
# This includes support for retry quotas, which limit the number of
|
240
|
+
# unsuccessful retries a client can make.
|
241
|
+
#
|
242
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
243
|
+
# functionality of `standard` mode along with automatic client side
|
244
|
+
# throttling. This is a provisional mode that may change behavior
|
245
|
+
# in the future.
|
246
|
+
#
|
241
247
|
#
|
242
248
|
# @option options [String] :secret_access_key
|
243
249
|
#
|
@@ -265,8 +271,7 @@ module Aws::EKS
|
|
265
271
|
#
|
266
272
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
273
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
274
|
+
# safely be set per-request on the session.
|
270
275
|
#
|
271
276
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
277
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +283,7 @@ module Aws::EKS
|
|
278
283
|
# request body. This option has no effect unless the request has
|
279
284
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
285
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
286
|
+
# request on the session.
|
282
287
|
#
|
283
288
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
289
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -718,14 +723,14 @@ module Aws::EKS
|
|
718
723
|
# The remote access (SSH) configuration to use with your node group.
|
719
724
|
#
|
720
725
|
# @option params [required, String] :node_role
|
721
|
-
# The
|
722
|
-
# node `kubelet` daemon makes calls to
|
723
|
-
#
|
724
|
-
#
|
725
|
-
# and register them into a cluster,
|
726
|
-
# those worker nodes to use when they
|
727
|
-
# information, see [Amazon EKS Worker Node IAM
|
728
|
-
# <i>Amazon EKS User Guide</i> </i>.
|
726
|
+
# The Amazon Resource Name (ARN) of the IAM role to associate with your
|
727
|
+
# node group. The Amazon EKS worker node `kubelet` daemon makes calls to
|
728
|
+
# AWS APIs on your behalf. Worker nodes receive permissions for these
|
729
|
+
# API calls through an IAM instance profile and associated policies.
|
730
|
+
# Before you can launch worker nodes and register them into a cluster,
|
731
|
+
# you must create an IAM role for those worker nodes to use when they
|
732
|
+
# are launched. For more information, see [Amazon EKS Worker Node IAM
|
733
|
+
# Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
729
734
|
#
|
730
735
|
#
|
731
736
|
#
|
@@ -828,7 +833,7 @@ module Aws::EKS
|
|
828
833
|
# resp.nodegroup.resources.remote_access_security_group #=> String
|
829
834
|
# resp.nodegroup.disk_size #=> Integer
|
830
835
|
# resp.nodegroup.health.issues #=> Array
|
831
|
-
# resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "IamInstanceProfileNotFound", "IamNodeRoleNotFound", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
|
836
|
+
# resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "Ec2SubnetInvalidConfiguration", "IamInstanceProfileNotFound", "IamLimitExceeded", "IamNodeRoleNotFound", "NodeCreationFailure", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
|
832
837
|
# resp.nodegroup.health.issues[0].message #=> String
|
833
838
|
# resp.nodegroup.health.issues[0].resource_ids #=> Array
|
834
839
|
# resp.nodegroup.health.issues[0].resource_ids[0] #=> String
|
@@ -855,7 +860,7 @@ module Aws::EKS
|
|
855
860
|
#
|
856
861
|
# If you have managed node groups or Fargate profiles attached to the
|
857
862
|
# cluster, you must delete them first. For more information, see
|
858
|
-
# DeleteNodegroup
|
863
|
+
# DeleteNodegroup and DeleteFargateProfile.
|
859
864
|
#
|
860
865
|
#
|
861
866
|
#
|
@@ -1035,7 +1040,7 @@ module Aws::EKS
|
|
1035
1040
|
# resp.nodegroup.resources.remote_access_security_group #=> String
|
1036
1041
|
# resp.nodegroup.disk_size #=> Integer
|
1037
1042
|
# resp.nodegroup.health.issues #=> Array
|
1038
|
-
# resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "IamInstanceProfileNotFound", "IamNodeRoleNotFound", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
|
1043
|
+
# resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "Ec2SubnetInvalidConfiguration", "IamInstanceProfileNotFound", "IamLimitExceeded", "IamNodeRoleNotFound", "NodeCreationFailure", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
|
1039
1044
|
# resp.nodegroup.health.issues[0].message #=> String
|
1040
1045
|
# resp.nodegroup.health.issues[0].resource_ids #=> Array
|
1041
1046
|
# resp.nodegroup.health.issues[0].resource_ids[0] #=> String
|
@@ -1149,6 +1154,12 @@ module Aws::EKS
|
|
1149
1154
|
# resp.cluster.encryption_config[0].resources[0] #=> String
|
1150
1155
|
# resp.cluster.encryption_config[0].provider.key_arn #=> String
|
1151
1156
|
#
|
1157
|
+
#
|
1158
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
1159
|
+
#
|
1160
|
+
# * cluster_active
|
1161
|
+
# * cluster_deleted
|
1162
|
+
#
|
1152
1163
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster AWS API Documentation
|
1153
1164
|
#
|
1154
1165
|
# @overload describe_cluster(params = {})
|
@@ -1252,13 +1263,19 @@ module Aws::EKS
|
|
1252
1263
|
# resp.nodegroup.resources.remote_access_security_group #=> String
|
1253
1264
|
# resp.nodegroup.disk_size #=> Integer
|
1254
1265
|
# resp.nodegroup.health.issues #=> Array
|
1255
|
-
# resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "IamInstanceProfileNotFound", "IamNodeRoleNotFound", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
|
1266
|
+
# resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "Ec2SubnetInvalidConfiguration", "IamInstanceProfileNotFound", "IamLimitExceeded", "IamNodeRoleNotFound", "NodeCreationFailure", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
|
1256
1267
|
# resp.nodegroup.health.issues[0].message #=> String
|
1257
1268
|
# resp.nodegroup.health.issues[0].resource_ids #=> Array
|
1258
1269
|
# resp.nodegroup.health.issues[0].resource_ids[0] #=> String
|
1259
1270
|
# resp.nodegroup.tags #=> Hash
|
1260
1271
|
# resp.nodegroup.tags["TagKey"] #=> String
|
1261
1272
|
#
|
1273
|
+
#
|
1274
|
+
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
1275
|
+
#
|
1276
|
+
# * nodegroup_active
|
1277
|
+
# * nodegroup_deleted
|
1278
|
+
#
|
1262
1279
|
# @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeNodegroup AWS API Documentation
|
1263
1280
|
#
|
1264
1281
|
# @overload describe_nodegroup(params = {})
|
@@ -1350,6 +1367,8 @@ module Aws::EKS
|
|
1350
1367
|
# * {Types::ListClustersResponse#clusters #clusters} => Array<String>
|
1351
1368
|
# * {Types::ListClustersResponse#next_token #next_token} => String
|
1352
1369
|
#
|
1370
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1371
|
+
#
|
1353
1372
|
#
|
1354
1373
|
# @example Example: To list your available clusters
|
1355
1374
|
#
|
@@ -1418,6 +1437,8 @@ module Aws::EKS
|
|
1418
1437
|
# * {Types::ListFargateProfilesResponse#fargate_profile_names #fargate_profile_names} => Array<String>
|
1419
1438
|
# * {Types::ListFargateProfilesResponse#next_token #next_token} => String
|
1420
1439
|
#
|
1440
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1441
|
+
#
|
1421
1442
|
# @example Request syntax with placeholder values
|
1422
1443
|
#
|
1423
1444
|
# resp = client.list_fargate_profiles({
|
@@ -1441,8 +1462,9 @@ module Aws::EKS
|
|
1441
1462
|
req.send_request(options)
|
1442
1463
|
end
|
1443
1464
|
|
1444
|
-
# Lists the Amazon EKS node groups associated with the specified
|
1445
|
-
# in your AWS account in the specified Region.
|
1465
|
+
# Lists the Amazon EKS managed node groups associated with the specified
|
1466
|
+
# cluster in your AWS account in the specified Region. Self-managed node
|
1467
|
+
# groups are not listed.
|
1446
1468
|
#
|
1447
1469
|
# @option params [required, String] :cluster_name
|
1448
1470
|
# The name of the Amazon EKS cluster that you would like to list node
|
@@ -1469,6 +1491,8 @@ module Aws::EKS
|
|
1469
1491
|
# * {Types::ListNodegroupsResponse#nodegroups #nodegroups} => Array<String>
|
1470
1492
|
# * {Types::ListNodegroupsResponse#next_token #next_token} => String
|
1471
1493
|
#
|
1494
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1495
|
+
#
|
1472
1496
|
# @example Request syntax with placeholder values
|
1473
1497
|
#
|
1474
1498
|
# resp = client.list_nodegroups({
|
@@ -1569,6 +1593,8 @@ module Aws::EKS
|
|
1569
1593
|
# * {Types::ListUpdatesResponse#update_ids #update_ids} => Array<String>
|
1570
1594
|
# * {Types::ListUpdatesResponse#next_token #next_token} => String
|
1571
1595
|
#
|
1596
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1597
|
+
#
|
1572
1598
|
# @example Request syntax with placeholder values
|
1573
1599
|
#
|
1574
1600
|
# resp = client.list_updates({
|
@@ -2030,7 +2056,7 @@ module Aws::EKS
|
|
2030
2056
|
params: params,
|
2031
2057
|
config: config)
|
2032
2058
|
context[:gem_name] = 'aws-sdk-eks'
|
2033
|
-
context[:gem_version] = '1.
|
2059
|
+
context[:gem_version] = '1.38.1'
|
2034
2060
|
Seahorse::Client::Request.new(handlers, context)
|
2035
2061
|
end
|
2036
2062
|
|
@@ -2096,12 +2122,12 @@ module Aws::EKS
|
|
2096
2122
|
# The following table lists the valid waiter names, the operations they call,
|
2097
2123
|
# and the default `:delay` and `:max_attempts` values.
|
2098
2124
|
#
|
2099
|
-
# | waiter_name | params
|
2100
|
-
# | ----------------- |
|
2101
|
-
# | cluster_active | {#describe_cluster} | 30 | 40 |
|
2102
|
-
# | cluster_deleted | {#describe_cluster} | 30 | 40 |
|
2103
|
-
# | nodegroup_active | {#describe_nodegroup} | 30 | 80 |
|
2104
|
-
# | nodegroup_deleted | {#describe_nodegroup} | 30 | 40 |
|
2125
|
+
# | waiter_name | params | :delay | :max_attempts |
|
2126
|
+
# | ----------------- | --------------------------- | -------- | ------------- |
|
2127
|
+
# | cluster_active | {Client#describe_cluster} | 30 | 40 |
|
2128
|
+
# | cluster_deleted | {Client#describe_cluster} | 30 | 40 |
|
2129
|
+
# | nodegroup_active | {Client#describe_nodegroup} | 30 | 80 |
|
2130
|
+
# | nodegroup_deleted | {Client#describe_nodegroup} | 30 | 40 |
|
2105
2131
|
#
|
2106
2132
|
# @raise [Errors::FailureStateError] Raised when the waiter terminates
|
2107
2133
|
# because the waiter has entered a state that it will not transition
|
data/lib/aws-sdk-eks/resource.rb
CHANGED
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::EKS
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::EKS::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::EKS::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::EKS::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
data/lib/aws-sdk-eks/types.rb
CHANGED
@@ -490,14 +490,14 @@ module Aws::EKS
|
|
490
490
|
# @return [Types::RemoteAccessConfig]
|
491
491
|
#
|
492
492
|
# @!attribute [rw] node_role
|
493
|
-
# The
|
494
|
-
# node
|
495
|
-
#
|
496
|
-
#
|
497
|
-
# worker nodes and register them into
|
498
|
-
# IAM role for those worker nodes to use
|
499
|
-
# more information, see [Amazon EKS Worker
|
500
|
-
# <i> <i>Amazon EKS User Guide</i> </i>.
|
493
|
+
# The Amazon Resource Name (ARN) of the IAM role to associate with
|
494
|
+
# your node group. The Amazon EKS worker node `kubelet` daemon makes
|
495
|
+
# calls to AWS APIs on your behalf. Worker nodes receive permissions
|
496
|
+
# for these API calls through an IAM instance profile and associated
|
497
|
+
# policies. Before you can launch worker nodes and register them into
|
498
|
+
# a cluster, you must create an IAM role for those worker nodes to use
|
499
|
+
# when they are launched. For more information, see [Amazon EKS Worker
|
500
|
+
# Node IAM Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
|
501
501
|
#
|
502
502
|
#
|
503
503
|
#
|
data/lib/aws-sdk-eks/waiters.rb
CHANGED
@@ -8,6 +8,70 @@
|
|
8
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
10
|
module Aws::EKS
|
11
|
+
# Waiters are utility methods that poll for a particular state to occur
|
12
|
+
# on a client. Waiters can fail after a number of attempts at a polling
|
13
|
+
# interval defined for the service client.
|
14
|
+
#
|
15
|
+
# For a list of operations that can be waited for and the
|
16
|
+
# client methods called for each operation, see the table below or the
|
17
|
+
# {Client#wait_until} field documentation for the {Client}.
|
18
|
+
#
|
19
|
+
# # Invoking a Waiter
|
20
|
+
# To invoke a waiter, call #wait_until on a {Client}. The first parameter
|
21
|
+
# is the waiter name, which is specific to the service client and indicates
|
22
|
+
# which operation is being waited for. The second parameter is a hash of
|
23
|
+
# parameters that are passed to the client method called by the waiter,
|
24
|
+
# which varies according to the waiter name.
|
25
|
+
#
|
26
|
+
# # Wait Failures
|
27
|
+
# To catch errors in a waiter, use WaiterFailed,
|
28
|
+
# as shown in the following example.
|
29
|
+
#
|
30
|
+
# rescue rescue Aws::Waiters::Errors::WaiterFailed => error
|
31
|
+
# puts "failed waiting for instance running: #{error.message}
|
32
|
+
# end
|
33
|
+
#
|
34
|
+
# # Configuring a Waiter
|
35
|
+
# Each waiter has a default polling interval and a maximum number of
|
36
|
+
# attempts it will make before returning control to your program.
|
37
|
+
# To set these values, use the `max_attempts` and `delay` parameters
|
38
|
+
# in your `#wait_until` call.
|
39
|
+
# The following example waits for up to 25 seconds, polling every five seconds.
|
40
|
+
#
|
41
|
+
# client.wait_until(...) do |w|
|
42
|
+
# w.max_attempts = 5
|
43
|
+
# w.delay = 5
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# To disable wait failures, set the value of either of these parameters
|
47
|
+
# to `nil`.
|
48
|
+
#
|
49
|
+
# # Extending a Waiter
|
50
|
+
# To modify the behavior of waiters, you can register callbacks that are
|
51
|
+
# triggered before each polling attempt and before waiting.
|
52
|
+
#
|
53
|
+
# The following example implements an exponential backoff in a waiter
|
54
|
+
# by doubling the amount of time to wait on every attempt.
|
55
|
+
#
|
56
|
+
# client.wait_until(...) do |w|
|
57
|
+
# w.interval = 0 # disable normal sleep
|
58
|
+
# w.before_wait do |n, resp|
|
59
|
+
# sleep(n ** 2)
|
60
|
+
# end
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# # Available Waiters
|
64
|
+
#
|
65
|
+
# The following table lists the valid waiter names, the operations they call,
|
66
|
+
# and the default `:delay` and `:max_attempts` values.
|
67
|
+
#
|
68
|
+
# | waiter_name | params | :delay | :max_attempts |
|
69
|
+
# | ----------------- | --------------------------- | -------- | ------------- |
|
70
|
+
# | cluster_active | {Client#describe_cluster} | 30 | 40 |
|
71
|
+
# | cluster_deleted | {Client#describe_cluster} | 30 | 40 |
|
72
|
+
# | nodegroup_active | {Client#describe_nodegroup} | 30 | 80 |
|
73
|
+
# | nodegroup_deleted | {Client#describe_nodegroup} | 30 | 40 |
|
74
|
+
#
|
11
75
|
module Waiters
|
12
76
|
|
13
77
|
class ClusterActive
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-eks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.38.1
|
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: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.7.6.2
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: AWS SDK for Ruby - Amazon EKS
|