aws-sdk-eks 1.42.0 → 1.47.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-eks.rb +2 -2
- data/lib/aws-sdk-eks/client.rb +535 -57
- data/lib/aws-sdk-eks/client_api.rb +238 -0
- data/lib/aws-sdk-eks/errors.rb +30 -0
- data/lib/aws-sdk-eks/types.rb +810 -58
- data/lib/aws-sdk-eks/waiters.rb +89 -0
- metadata +4 -4
data/lib/aws-sdk-eks/waiters.rb
CHANGED
@@ -69,6 +69,8 @@ module Aws::EKS
|
|
69
69
|
#
|
70
70
|
# | waiter_name | params | :delay | :max_attempts |
|
71
71
|
# | ----------------- | --------------------------- | -------- | ------------- |
|
72
|
+
# | addon_active | {Client#describe_addon} | 10 | 60 |
|
73
|
+
# | addon_deleted | {Client#describe_addon} | 10 | 60 |
|
72
74
|
# | cluster_active | {Client#describe_cluster} | 30 | 40 |
|
73
75
|
# | cluster_deleted | {Client#describe_cluster} | 30 | 40 |
|
74
76
|
# | nodegroup_active | {Client#describe_nodegroup} | 30 | 80 |
|
@@ -76,6 +78,93 @@ module Aws::EKS
|
|
76
78
|
#
|
77
79
|
module Waiters
|
78
80
|
|
81
|
+
class AddonActive
|
82
|
+
|
83
|
+
# @param [Hash] options
|
84
|
+
# @option options [required, Client] :client
|
85
|
+
# @option options [Integer] :max_attempts (60)
|
86
|
+
# @option options [Integer] :delay (10)
|
87
|
+
# @option options [Proc] :before_attempt
|
88
|
+
# @option options [Proc] :before_wait
|
89
|
+
def initialize(options)
|
90
|
+
@client = options.fetch(:client)
|
91
|
+
@waiter = Aws::Waiters::Waiter.new({
|
92
|
+
max_attempts: 60,
|
93
|
+
delay: 10,
|
94
|
+
poller: Aws::Waiters::Poller.new(
|
95
|
+
operation_name: :describe_addon,
|
96
|
+
acceptors: [
|
97
|
+
{
|
98
|
+
"expected" => "CREATE_FAILED",
|
99
|
+
"matcher" => "path",
|
100
|
+
"state" => "failure",
|
101
|
+
"argument" => "addon.status"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"expected" => "ACTIVE",
|
105
|
+
"matcher" => "path",
|
106
|
+
"state" => "success",
|
107
|
+
"argument" => "addon.status"
|
108
|
+
}
|
109
|
+
]
|
110
|
+
)
|
111
|
+
}.merge(options))
|
112
|
+
end
|
113
|
+
|
114
|
+
# @option (see Client#describe_addon)
|
115
|
+
# @return (see Client#describe_addon)
|
116
|
+
def wait(params = {})
|
117
|
+
@waiter.wait(client: @client, params: params)
|
118
|
+
end
|
119
|
+
|
120
|
+
# @api private
|
121
|
+
attr_reader :waiter
|
122
|
+
|
123
|
+
end
|
124
|
+
|
125
|
+
class AddonDeleted
|
126
|
+
|
127
|
+
# @param [Hash] options
|
128
|
+
# @option options [required, Client] :client
|
129
|
+
# @option options [Integer] :max_attempts (60)
|
130
|
+
# @option options [Integer] :delay (10)
|
131
|
+
# @option options [Proc] :before_attempt
|
132
|
+
# @option options [Proc] :before_wait
|
133
|
+
def initialize(options)
|
134
|
+
@client = options.fetch(:client)
|
135
|
+
@waiter = Aws::Waiters::Waiter.new({
|
136
|
+
max_attempts: 60,
|
137
|
+
delay: 10,
|
138
|
+
poller: Aws::Waiters::Poller.new(
|
139
|
+
operation_name: :describe_addon,
|
140
|
+
acceptors: [
|
141
|
+
{
|
142
|
+
"expected" => "DELETE_FAILED",
|
143
|
+
"matcher" => "path",
|
144
|
+
"state" => "failure",
|
145
|
+
"argument" => "addon.status"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"expected" => "ResourceNotFoundException",
|
149
|
+
"matcher" => "error",
|
150
|
+
"state" => "success"
|
151
|
+
}
|
152
|
+
]
|
153
|
+
)
|
154
|
+
}.merge(options))
|
155
|
+
end
|
156
|
+
|
157
|
+
# @option (see Client#describe_addon)
|
158
|
+
# @return (see Client#describe_addon)
|
159
|
+
def wait(params = {})
|
160
|
+
@waiter.wait(client: @client, params: params)
|
161
|
+
end
|
162
|
+
|
163
|
+
# @api private
|
164
|
+
attr_reader :waiter
|
165
|
+
|
166
|
+
end
|
167
|
+
|
79
168
|
class ClusterActive
|
80
169
|
|
81
170
|
# @param [Hash] options
|
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.47.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:
|
11
|
+
date: 2021-02-02 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.112.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.112.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|