aws-sdk-eks 1.32.0 → 1.37.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
- SHA1:
3
- metadata.gz: 35509c7263b61352667f37625da4910aa6684e65
4
- data.tar.gz: cc8db9f3ecc1bd0d84d4f52bdbba1929f80c9bdb
2
+ SHA256:
3
+ metadata.gz: bb5c1aef1d2b7d7460765f217970f79d00faae1ddb7fc79d9ce2201c3fb039d3
4
+ data.tar.gz: c468ae7c437671d3c8214b763bb6dde5e706cc5eb3fd03cd722408959e5a33b0
5
5
  SHA512:
6
- metadata.gz: '049fbd4bbdf27b074d24d19c497ab2d2b0ed0a09eb052282b202de7c7de43f0875c40cd20e19f348e1bd4021920598320f8faa7bea2bf6b6a8848bbe13b7ef4b'
7
- data.tar.gz: a144043e34b078b9a0f038b897b966b7e667c6f6f7ebe6c4bddccef1a490f3d95f0d51bb66e5c2582cfca07ac6597777fee12e9e20354ea23446f1946807bbbb
6
+ metadata.gz: 5a1e6c8caf6ec6bb7f855148bdc2bc80377b0c11572b6521aff2f7b94251f22ca4f9cfe2b75ac3999773c5c6d1f9b00aa0ff394c867aea9034201ce0d60852ff
7
+ data.tar.gz: 1288c042363f3210a3be685588e223145d0783ee6fc2c6379705bdacae5390ab60bd6fa7c2c1964ab0595c18142ba15f7e7d9f8451e78e6670002b9e4fa8a1cc
@@ -46,6 +46,6 @@ require_relative 'aws-sdk-eks/customizations'
46
46
  # @service
47
47
  module Aws::EKS
48
48
 
49
- GEM_VERSION = '1.32.0'
49
+ GEM_VERSION = '1.37.0'
50
50
 
51
51
  end
@@ -30,14 +30,16 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:eks)
31
31
 
32
32
  module Aws::EKS
33
- # An API client for EKS. To construct a client, you need to configure a +:region+ and +:credentials+.
33
+ # An API client for EKS. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
34
35
  # client = Aws::EKS::Client.new(
35
36
  # region: region_name,
36
37
  # credentials: credentials,
37
38
  # # ...
38
39
  # )
40
+ #
39
41
  # For details on configuring region and credentials see
40
- # the {developer-guide}[https://docs.aws.amazon.com/sdk-for-ruby/v3/developer-guide/setup-config.html].
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
41
43
  #
42
44
  # See {#initialize} for a full list of supported configuration options.
43
45
  class Client < Seahorse::Client::Base
@@ -103,7 +105,7 @@ module Aws::EKS
103
105
  # @option options [required, String] :region
104
106
  # The AWS region to connect to. The configured `:region` is
105
107
  # used to determine the service `:endpoint`. When not passed,
106
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
107
109
  #
108
110
  # * `Aws.config[:region]`
109
111
  # * `ENV['AWS_REGION']`
@@ -118,6 +120,12 @@ module Aws::EKS
118
120
  # When set to `true`, a thread polling for endpoints will be running in
119
121
  # the background every 60 secs (default). Defaults to `false`.
120
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
121
129
  # @option options [Boolean] :client_side_monitoring (false)
122
130
  # When `true`, client-side metrics will be collected for all API requests from
123
131
  # this client.
@@ -142,6 +150,10 @@ module Aws::EKS
142
150
  # When `true`, an attempt is made to coerce request parameters into
143
151
  # the required types.
144
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
145
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
146
158
  # Set to true to disable SDK automatically adding host prefix
147
159
  # to default service endpoint when available.
@@ -149,7 +161,7 @@ module Aws::EKS
149
161
  # @option options [String] :endpoint
150
162
  # The client endpoint is normally constructed from the `:region`
151
163
  # option. You should only configure an `:endpoint` when connecting
152
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
153
165
  #
154
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
155
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -164,7 +176,7 @@ module Aws::EKS
164
176
  # requests fetching endpoints information. Defaults to 60 sec.
165
177
  #
166
178
  # @option options [Boolean] :endpoint_discovery (false)
167
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
179
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
168
180
  #
169
181
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
170
182
  # The log formatter.
@@ -176,15 +188,29 @@ module Aws::EKS
176
188
  # The Logger instance to send log messages to. If this option
177
189
  # is not set, logging will be disabled.
178
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
179
197
  # @option options [String] :profile ("default")
180
198
  # Used when loading credentials from the shared credentials file
181
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
182
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
183
205
  # @option options [Float] :retry_base_delay (0.3)
184
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
185
208
  #
186
209
  # @option options [Symbol] :retry_jitter (:none)
187
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
188
214
  #
189
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
190
216
  #
@@ -192,11 +218,30 @@ module Aws::EKS
192
218
  # The maximum number of times to retry failed requests. Only
193
219
  # ~ 500 level server errors and certain ~ 400 level client errors
194
220
  # are retried. Generally, these are throttling errors, data
195
- # checksum errors, networking errors, timeout errors and auth
196
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
197
224
  #
198
225
  # @option options [Integer] :retry_max_delay (0)
199
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
200
245
  #
201
246
  # @option options [String] :secret_access_key
202
247
  #
@@ -224,8 +269,7 @@ module Aws::EKS
224
269
  #
225
270
  # @option options [Integer] :http_read_timeout (60) The default
226
271
  # number of seconds to wait for response data. This value can
227
- # safely be set
228
- # per-request on the session yielded by {#session_for}.
272
+ # safely be set per-request on the session.
229
273
  #
230
274
  # @option options [Float] :http_idle_timeout (5) The number of
231
275
  # seconds a connection is allowed to sit idle before it is
@@ -237,7 +281,7 @@ module Aws::EKS
237
281
  # request body. This option has no effect unless the request has
238
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
239
283
  # disables this behaviour. This value can safely be set per
240
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
241
285
  #
242
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
243
287
  # HTTP debug output will be sent to the `:logger`.
@@ -677,14 +721,14 @@ module Aws::EKS
677
721
  # The remote access (SSH) configuration to use with your node group.
678
722
  #
679
723
  # @option params [required, String] :node_role
680
- # The IAM role associated with your node group. The Amazon EKS worker
681
- # node `kubelet` daemon makes calls to AWS APIs on your behalf. Worker
682
- # nodes receive permissions for these API calls through an IAM instance
683
- # profile and associated policies. Before you can launch worker nodes
684
- # and register them into a cluster, you must create an IAM role for
685
- # those worker nodes to use when they are launched. For more
686
- # information, see [Amazon EKS Worker Node IAM Role][1] in the <i>
687
- # <i>Amazon EKS User Guide</i> </i>.
724
+ # The Amazon Resource Name (ARN) of the IAM role to associate with your
725
+ # node group. The Amazon EKS worker node `kubelet` daemon makes calls to
726
+ # AWS APIs on your behalf. Worker nodes receive permissions for these
727
+ # API calls through an IAM instance profile and associated policies.
728
+ # Before you can launch worker nodes and register them into a cluster,
729
+ # you must create an IAM role for those worker nodes to use when they
730
+ # are launched. For more information, see [Amazon EKS Worker Node IAM
731
+ # Role][1] in the <i> <i>Amazon EKS User Guide</i> </i>.
688
732
  #
689
733
  #
690
734
  #
@@ -787,7 +831,7 @@ module Aws::EKS
787
831
  # resp.nodegroup.resources.remote_access_security_group #=> String
788
832
  # resp.nodegroup.disk_size #=> Integer
789
833
  # resp.nodegroup.health.issues #=> Array
790
- # resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "IamInstanceProfileNotFound", "IamNodeRoleNotFound", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
834
+ # 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"
791
835
  # resp.nodegroup.health.issues[0].message #=> String
792
836
  # resp.nodegroup.health.issues[0].resource_ids #=> Array
793
837
  # resp.nodegroup.health.issues[0].resource_ids[0] #=> String
@@ -814,7 +858,7 @@ module Aws::EKS
814
858
  #
815
859
  # If you have managed node groups or Fargate profiles attached to the
816
860
  # cluster, you must delete them first. For more information, see
817
- # DeleteNodegroup andDeleteFargateProfile.
861
+ # DeleteNodegroup and DeleteFargateProfile.
818
862
  #
819
863
  #
820
864
  #
@@ -994,7 +1038,7 @@ module Aws::EKS
994
1038
  # resp.nodegroup.resources.remote_access_security_group #=> String
995
1039
  # resp.nodegroup.disk_size #=> Integer
996
1040
  # resp.nodegroup.health.issues #=> Array
997
- # resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "IamInstanceProfileNotFound", "IamNodeRoleNotFound", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
1041
+ # 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"
998
1042
  # resp.nodegroup.health.issues[0].message #=> String
999
1043
  # resp.nodegroup.health.issues[0].resource_ids #=> Array
1000
1044
  # resp.nodegroup.health.issues[0].resource_ids[0] #=> String
@@ -1108,6 +1152,12 @@ module Aws::EKS
1108
1152
  # resp.cluster.encryption_config[0].resources[0] #=> String
1109
1153
  # resp.cluster.encryption_config[0].provider.key_arn #=> String
1110
1154
  #
1155
+ #
1156
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1157
+ #
1158
+ # * cluster_active
1159
+ # * cluster_deleted
1160
+ #
1111
1161
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster AWS API Documentation
1112
1162
  #
1113
1163
  # @overload describe_cluster(params = {})
@@ -1211,13 +1261,19 @@ module Aws::EKS
1211
1261
  # resp.nodegroup.resources.remote_access_security_group #=> String
1212
1262
  # resp.nodegroup.disk_size #=> Integer
1213
1263
  # resp.nodegroup.health.issues #=> Array
1214
- # resp.nodegroup.health.issues[0].code #=> String, one of "AutoScalingGroupNotFound", "AutoScalingGroupInvalidConfiguration", "Ec2SecurityGroupNotFound", "Ec2SecurityGroupDeletionFailure", "Ec2LaunchTemplateNotFound", "Ec2LaunchTemplateVersionMismatch", "Ec2SubnetNotFound", "IamInstanceProfileNotFound", "IamNodeRoleNotFound", "AsgInstanceLaunchFailures", "InstanceLimitExceeded", "InsufficientFreeAddresses", "AccessDenied", "InternalFailure"
1264
+ # 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"
1215
1265
  # resp.nodegroup.health.issues[0].message #=> String
1216
1266
  # resp.nodegroup.health.issues[0].resource_ids #=> Array
1217
1267
  # resp.nodegroup.health.issues[0].resource_ids[0] #=> String
1218
1268
  # resp.nodegroup.tags #=> Hash
1219
1269
  # resp.nodegroup.tags["TagKey"] #=> String
1220
1270
  #
1271
+ #
1272
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
1273
+ #
1274
+ # * nodegroup_active
1275
+ # * nodegroup_deleted
1276
+ #
1221
1277
  # @see http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeNodegroup AWS API Documentation
1222
1278
  #
1223
1279
  # @overload describe_nodegroup(params = {})
@@ -1309,6 +1365,8 @@ module Aws::EKS
1309
1365
  # * {Types::ListClustersResponse#clusters #clusters} => Array&lt;String&gt;
1310
1366
  # * {Types::ListClustersResponse#next_token #next_token} => String
1311
1367
  #
1368
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1369
+ #
1312
1370
  #
1313
1371
  # @example Example: To list your available clusters
1314
1372
  #
@@ -1377,6 +1435,8 @@ module Aws::EKS
1377
1435
  # * {Types::ListFargateProfilesResponse#fargate_profile_names #fargate_profile_names} => Array&lt;String&gt;
1378
1436
  # * {Types::ListFargateProfilesResponse#next_token #next_token} => String
1379
1437
  #
1438
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1439
+ #
1380
1440
  # @example Request syntax with placeholder values
1381
1441
  #
1382
1442
  # resp = client.list_fargate_profiles({
@@ -1400,8 +1460,9 @@ module Aws::EKS
1400
1460
  req.send_request(options)
1401
1461
  end
1402
1462
 
1403
- # Lists the Amazon EKS node groups associated with the specified cluster
1404
- # in your AWS account in the specified Region.
1463
+ # Lists the Amazon EKS managed node groups associated with the specified
1464
+ # cluster in your AWS account in the specified Region. Self-managed node
1465
+ # groups are not listed.
1405
1466
  #
1406
1467
  # @option params [required, String] :cluster_name
1407
1468
  # The name of the Amazon EKS cluster that you would like to list node
@@ -1428,6 +1489,8 @@ module Aws::EKS
1428
1489
  # * {Types::ListNodegroupsResponse#nodegroups #nodegroups} => Array&lt;String&gt;
1429
1490
  # * {Types::ListNodegroupsResponse#next_token #next_token} => String
1430
1491
  #
1492
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1493
+ #
1431
1494
  # @example Request syntax with placeholder values
1432
1495
  #
1433
1496
  # resp = client.list_nodegroups({
@@ -1528,6 +1591,8 @@ module Aws::EKS
1528
1591
  # * {Types::ListUpdatesResponse#update_ids #update_ids} => Array&lt;String&gt;
1529
1592
  # * {Types::ListUpdatesResponse#next_token #next_token} => String
1530
1593
  #
1594
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1595
+ #
1531
1596
  # @example Request syntax with placeholder values
1532
1597
  #
1533
1598
  # resp = client.list_updates({
@@ -1989,7 +2054,7 @@ module Aws::EKS
1989
2054
  params: params,
1990
2055
  config: config)
1991
2056
  context[:gem_name] = 'aws-sdk-eks'
1992
- context[:gem_version] = '1.32.0'
2057
+ context[:gem_version] = '1.37.0'
1993
2058
  Seahorse::Client::Request.new(handlers, context)
1994
2059
  end
1995
2060
 
@@ -2055,12 +2120,12 @@ module Aws::EKS
2055
2120
  # The following table lists the valid waiter names, the operations they call,
2056
2121
  # and the default `:delay` and `:max_attempts` values.
2057
2122
  #
2058
- # | waiter_name | params | :delay | :max_attempts |
2059
- # | ----------------- | --------------------- | -------- | ------------- |
2060
- # | cluster_active | {#describe_cluster} | 30 | 40 |
2061
- # | cluster_deleted | {#describe_cluster} | 30 | 40 |
2062
- # | nodegroup_active | {#describe_nodegroup} | 30 | 80 |
2063
- # | nodegroup_deleted | {#describe_nodegroup} | 30 | 40 |
2123
+ # | waiter_name | params | :delay | :max_attempts |
2124
+ # | ----------------- | --------------------------- | -------- | ------------- |
2125
+ # | cluster_active | {Client#describe_cluster} | 30 | 40 |
2126
+ # | cluster_deleted | {Client#describe_cluster} | 30 | 40 |
2127
+ # | nodegroup_active | {Client#describe_nodegroup} | 30 | 80 |
2128
+ # | nodegroup_deleted | {Client#describe_nodegroup} | 30 | 40 |
2064
2129
  #
2065
2130
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
2066
2131
  # because the waiter has entered a state that it will not transition
@@ -11,22 +11,17 @@ module Aws::EKS
11
11
  # These errors all extend Aws::EKS::Errors::ServiceError < {Aws::Errors::ServiceError}
12
12
  #
13
13
  # You can rescue all EKS errors using ServiceError:
14
+ #
14
15
  # begin
15
16
  # # do stuff
16
17
  # rescue Aws::EKS::Errors::ServiceError
17
18
  # # rescues all EKS API errors
18
19
  # end
19
20
  #
21
+ #
20
22
  # ## Request Context
21
23
  # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
22
- # information about the request that generated the error, including:
23
- # *
24
- # * #params - The request params
25
- # * #operation_name - Name of the API operation invoked
26
- # * #http_request
27
- # * #http_response
28
- # * etc ...
29
- #
24
+ # information about the request that generated the error.
30
25
  # See {Seahorse::Client::RequestContext} for more information.
31
26
  #
32
27
  # ## Error Classes
@@ -41,6 +36,7 @@ module Aws::EKS
41
36
  # * {ServerException}
42
37
  # * {ServiceUnavailableException}
43
38
  # * {UnsupportedAvailabilityZoneException}
39
+ #
44
40
  # Additionally, error classes are dynamically generated for service errors based on the error code
45
41
  # if they are not defined above.
46
42
  module Errors
@@ -60,7 +56,6 @@ module Aws::EKS
60
56
  def message
61
57
  @message || @data[:message]
62
58
  end
63
-
64
59
  end
65
60
 
66
61
  class ClientException < ServiceError
@@ -86,7 +81,6 @@ module Aws::EKS
86
81
  def message
87
82
  @message || @data[:message]
88
83
  end
89
-
90
84
  end
91
85
 
92
86
  class InvalidParameterException < ServiceError
@@ -117,7 +111,6 @@ module Aws::EKS
117
111
  def message
118
112
  @message || @data[:message]
119
113
  end
120
-
121
114
  end
122
115
 
123
116
  class InvalidRequestException < ServiceError
@@ -143,7 +136,6 @@ module Aws::EKS
143
136
  def message
144
137
  @message || @data[:message]
145
138
  end
146
-
147
139
  end
148
140
 
149
141
  class NotFoundException < ServiceError
@@ -159,7 +151,6 @@ module Aws::EKS
159
151
  def message
160
152
  @message || @data[:message]
161
153
  end
162
-
163
154
  end
164
155
 
165
156
  class ResourceInUseException < ServiceError
@@ -185,7 +176,6 @@ module Aws::EKS
185
176
  def message
186
177
  @message || @data[:message]
187
178
  end
188
-
189
179
  end
190
180
 
191
181
  class ResourceLimitExceededException < ServiceError
@@ -211,7 +201,6 @@ module Aws::EKS
211
201
  def message
212
202
  @message || @data[:message]
213
203
  end
214
-
215
204
  end
216
205
 
217
206
  class ResourceNotFoundException < ServiceError
@@ -242,7 +231,6 @@ module Aws::EKS
242
231
  def message
243
232
  @message || @data[:message]
244
233
  end
245
-
246
234
  end
247
235
 
248
236
  class ServerException < ServiceError
@@ -268,7 +256,6 @@ module Aws::EKS
268
256
  def message
269
257
  @message || @data[:message]
270
258
  end
271
-
272
259
  end
273
260
 
274
261
  class ServiceUnavailableException < ServiceError
@@ -284,7 +271,6 @@ module Aws::EKS
284
271
  def message
285
272
  @message || @data[:message]
286
273
  end
287
-
288
274
  end
289
275
 
290
276
  class UnsupportedAvailabilityZoneException < ServiceError
@@ -315,7 +301,6 @@ module Aws::EKS
315
301
  def valid_zones
316
302
  @data[:valid_zones]
317
303
  end
318
-
319
304
  end
320
305
 
321
306
  end
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EKS
9
- # This class provides a resource oriented interface for EKS.
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 ({})
@@ -490,14 +490,14 @@ module Aws::EKS
490
490
  # @return [Types::RemoteAccessConfig]
491
491
  #
492
492
  # @!attribute [rw] node_role
493
- # The IAM role associated with your node group. The Amazon EKS worker
494
- # node `kubelet` daemon makes calls to AWS APIs on your behalf. Worker
495
- # nodes receive permissions for these API calls through an IAM
496
- # instance profile and associated policies. Before you can launch
497
- # worker nodes and register them into a cluster, you must create an
498
- # IAM role for those worker nodes to use when they are launched. For
499
- # more information, see [Amazon EKS Worker Node IAM Role][1] in the
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
  #
@@ -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.32.0
4
+ version: 1.37.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: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -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.5.2.3
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