aws-sdk-eks 1.69.0 → 1.91.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +113 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-eks/client.rb +399 -100
- data/lib/aws-sdk-eks/client_api.rb +82 -0
- data/lib/aws-sdk-eks/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-eks/endpoint_provider.rb +60 -0
- data/lib/aws-sdk-eks/endpoints.rb +506 -0
- data/lib/aws-sdk-eks/plugins/endpoints.rb +138 -0
- data/lib/aws-sdk-eks/types.rb +642 -783
- data/lib/aws-sdk-eks.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,506 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::EKS
|
12
|
+
# @api private
|
13
|
+
module Endpoints
|
14
|
+
|
15
|
+
class AssociateEncryptionConfig
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::EKS::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class AssociateIdentityProviderConfig
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::EKS::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
class CreateAddon
|
44
|
+
def self.build(context)
|
45
|
+
unless context.config.regional_endpoint
|
46
|
+
endpoint = context.config.endpoint.to_s
|
47
|
+
end
|
48
|
+
Aws::EKS::EndpointParameters.new(
|
49
|
+
region: context.config.region,
|
50
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
51
|
+
use_fips: context.config.use_fips_endpoint,
|
52
|
+
endpoint: endpoint,
|
53
|
+
)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class CreateCluster
|
58
|
+
def self.build(context)
|
59
|
+
unless context.config.regional_endpoint
|
60
|
+
endpoint = context.config.endpoint.to_s
|
61
|
+
end
|
62
|
+
Aws::EKS::EndpointParameters.new(
|
63
|
+
region: context.config.region,
|
64
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
65
|
+
use_fips: context.config.use_fips_endpoint,
|
66
|
+
endpoint: endpoint,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class CreateFargateProfile
|
72
|
+
def self.build(context)
|
73
|
+
unless context.config.regional_endpoint
|
74
|
+
endpoint = context.config.endpoint.to_s
|
75
|
+
end
|
76
|
+
Aws::EKS::EndpointParameters.new(
|
77
|
+
region: context.config.region,
|
78
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
79
|
+
use_fips: context.config.use_fips_endpoint,
|
80
|
+
endpoint: endpoint,
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
class CreateNodegroup
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::EKS::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class DeleteAddon
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::EKS::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class DeleteCluster
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::EKS::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class DeleteFargateProfile
|
128
|
+
def self.build(context)
|
129
|
+
unless context.config.regional_endpoint
|
130
|
+
endpoint = context.config.endpoint.to_s
|
131
|
+
end
|
132
|
+
Aws::EKS::EndpointParameters.new(
|
133
|
+
region: context.config.region,
|
134
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
135
|
+
use_fips: context.config.use_fips_endpoint,
|
136
|
+
endpoint: endpoint,
|
137
|
+
)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class DeleteNodegroup
|
142
|
+
def self.build(context)
|
143
|
+
unless context.config.regional_endpoint
|
144
|
+
endpoint = context.config.endpoint.to_s
|
145
|
+
end
|
146
|
+
Aws::EKS::EndpointParameters.new(
|
147
|
+
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
149
|
+
use_fips: context.config.use_fips_endpoint,
|
150
|
+
endpoint: endpoint,
|
151
|
+
)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
class DeregisterCluster
|
156
|
+
def self.build(context)
|
157
|
+
unless context.config.regional_endpoint
|
158
|
+
endpoint = context.config.endpoint.to_s
|
159
|
+
end
|
160
|
+
Aws::EKS::EndpointParameters.new(
|
161
|
+
region: context.config.region,
|
162
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
163
|
+
use_fips: context.config.use_fips_endpoint,
|
164
|
+
endpoint: endpoint,
|
165
|
+
)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
class DescribeAddon
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::EKS::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
class DescribeAddonConfiguration
|
184
|
+
def self.build(context)
|
185
|
+
unless context.config.regional_endpoint
|
186
|
+
endpoint = context.config.endpoint.to_s
|
187
|
+
end
|
188
|
+
Aws::EKS::EndpointParameters.new(
|
189
|
+
region: context.config.region,
|
190
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
191
|
+
use_fips: context.config.use_fips_endpoint,
|
192
|
+
endpoint: endpoint,
|
193
|
+
)
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class DescribeAddonVersions
|
198
|
+
def self.build(context)
|
199
|
+
unless context.config.regional_endpoint
|
200
|
+
endpoint = context.config.endpoint.to_s
|
201
|
+
end
|
202
|
+
Aws::EKS::EndpointParameters.new(
|
203
|
+
region: context.config.region,
|
204
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
205
|
+
use_fips: context.config.use_fips_endpoint,
|
206
|
+
endpoint: endpoint,
|
207
|
+
)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
class DescribeCluster
|
212
|
+
def self.build(context)
|
213
|
+
unless context.config.regional_endpoint
|
214
|
+
endpoint = context.config.endpoint.to_s
|
215
|
+
end
|
216
|
+
Aws::EKS::EndpointParameters.new(
|
217
|
+
region: context.config.region,
|
218
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
219
|
+
use_fips: context.config.use_fips_endpoint,
|
220
|
+
endpoint: endpoint,
|
221
|
+
)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
class DescribeFargateProfile
|
226
|
+
def self.build(context)
|
227
|
+
unless context.config.regional_endpoint
|
228
|
+
endpoint = context.config.endpoint.to_s
|
229
|
+
end
|
230
|
+
Aws::EKS::EndpointParameters.new(
|
231
|
+
region: context.config.region,
|
232
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
233
|
+
use_fips: context.config.use_fips_endpoint,
|
234
|
+
endpoint: endpoint,
|
235
|
+
)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class DescribeIdentityProviderConfig
|
240
|
+
def self.build(context)
|
241
|
+
unless context.config.regional_endpoint
|
242
|
+
endpoint = context.config.endpoint.to_s
|
243
|
+
end
|
244
|
+
Aws::EKS::EndpointParameters.new(
|
245
|
+
region: context.config.region,
|
246
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
247
|
+
use_fips: context.config.use_fips_endpoint,
|
248
|
+
endpoint: endpoint,
|
249
|
+
)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class DescribeNodegroup
|
254
|
+
def self.build(context)
|
255
|
+
unless context.config.regional_endpoint
|
256
|
+
endpoint = context.config.endpoint.to_s
|
257
|
+
end
|
258
|
+
Aws::EKS::EndpointParameters.new(
|
259
|
+
region: context.config.region,
|
260
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
261
|
+
use_fips: context.config.use_fips_endpoint,
|
262
|
+
endpoint: endpoint,
|
263
|
+
)
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
class DescribeUpdate
|
268
|
+
def self.build(context)
|
269
|
+
unless context.config.regional_endpoint
|
270
|
+
endpoint = context.config.endpoint.to_s
|
271
|
+
end
|
272
|
+
Aws::EKS::EndpointParameters.new(
|
273
|
+
region: context.config.region,
|
274
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
275
|
+
use_fips: context.config.use_fips_endpoint,
|
276
|
+
endpoint: endpoint,
|
277
|
+
)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class DisassociateIdentityProviderConfig
|
282
|
+
def self.build(context)
|
283
|
+
unless context.config.regional_endpoint
|
284
|
+
endpoint = context.config.endpoint.to_s
|
285
|
+
end
|
286
|
+
Aws::EKS::EndpointParameters.new(
|
287
|
+
region: context.config.region,
|
288
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
289
|
+
use_fips: context.config.use_fips_endpoint,
|
290
|
+
endpoint: endpoint,
|
291
|
+
)
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
class ListAddons
|
296
|
+
def self.build(context)
|
297
|
+
unless context.config.regional_endpoint
|
298
|
+
endpoint = context.config.endpoint.to_s
|
299
|
+
end
|
300
|
+
Aws::EKS::EndpointParameters.new(
|
301
|
+
region: context.config.region,
|
302
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
303
|
+
use_fips: context.config.use_fips_endpoint,
|
304
|
+
endpoint: endpoint,
|
305
|
+
)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
309
|
+
class ListClusters
|
310
|
+
def self.build(context)
|
311
|
+
unless context.config.regional_endpoint
|
312
|
+
endpoint = context.config.endpoint.to_s
|
313
|
+
end
|
314
|
+
Aws::EKS::EndpointParameters.new(
|
315
|
+
region: context.config.region,
|
316
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
317
|
+
use_fips: context.config.use_fips_endpoint,
|
318
|
+
endpoint: endpoint,
|
319
|
+
)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
class ListFargateProfiles
|
324
|
+
def self.build(context)
|
325
|
+
unless context.config.regional_endpoint
|
326
|
+
endpoint = context.config.endpoint.to_s
|
327
|
+
end
|
328
|
+
Aws::EKS::EndpointParameters.new(
|
329
|
+
region: context.config.region,
|
330
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
331
|
+
use_fips: context.config.use_fips_endpoint,
|
332
|
+
endpoint: endpoint,
|
333
|
+
)
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
class ListIdentityProviderConfigs
|
338
|
+
def self.build(context)
|
339
|
+
unless context.config.regional_endpoint
|
340
|
+
endpoint = context.config.endpoint.to_s
|
341
|
+
end
|
342
|
+
Aws::EKS::EndpointParameters.new(
|
343
|
+
region: context.config.region,
|
344
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
345
|
+
use_fips: context.config.use_fips_endpoint,
|
346
|
+
endpoint: endpoint,
|
347
|
+
)
|
348
|
+
end
|
349
|
+
end
|
350
|
+
|
351
|
+
class ListNodegroups
|
352
|
+
def self.build(context)
|
353
|
+
unless context.config.regional_endpoint
|
354
|
+
endpoint = context.config.endpoint.to_s
|
355
|
+
end
|
356
|
+
Aws::EKS::EndpointParameters.new(
|
357
|
+
region: context.config.region,
|
358
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
359
|
+
use_fips: context.config.use_fips_endpoint,
|
360
|
+
endpoint: endpoint,
|
361
|
+
)
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
class ListTagsForResource
|
366
|
+
def self.build(context)
|
367
|
+
unless context.config.regional_endpoint
|
368
|
+
endpoint = context.config.endpoint.to_s
|
369
|
+
end
|
370
|
+
Aws::EKS::EndpointParameters.new(
|
371
|
+
region: context.config.region,
|
372
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
373
|
+
use_fips: context.config.use_fips_endpoint,
|
374
|
+
endpoint: endpoint,
|
375
|
+
)
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
class ListUpdates
|
380
|
+
def self.build(context)
|
381
|
+
unless context.config.regional_endpoint
|
382
|
+
endpoint = context.config.endpoint.to_s
|
383
|
+
end
|
384
|
+
Aws::EKS::EndpointParameters.new(
|
385
|
+
region: context.config.region,
|
386
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
387
|
+
use_fips: context.config.use_fips_endpoint,
|
388
|
+
endpoint: endpoint,
|
389
|
+
)
|
390
|
+
end
|
391
|
+
end
|
392
|
+
|
393
|
+
class RegisterCluster
|
394
|
+
def self.build(context)
|
395
|
+
unless context.config.regional_endpoint
|
396
|
+
endpoint = context.config.endpoint.to_s
|
397
|
+
end
|
398
|
+
Aws::EKS::EndpointParameters.new(
|
399
|
+
region: context.config.region,
|
400
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
401
|
+
use_fips: context.config.use_fips_endpoint,
|
402
|
+
endpoint: endpoint,
|
403
|
+
)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
407
|
+
class TagResource
|
408
|
+
def self.build(context)
|
409
|
+
unless context.config.regional_endpoint
|
410
|
+
endpoint = context.config.endpoint.to_s
|
411
|
+
end
|
412
|
+
Aws::EKS::EndpointParameters.new(
|
413
|
+
region: context.config.region,
|
414
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
415
|
+
use_fips: context.config.use_fips_endpoint,
|
416
|
+
endpoint: endpoint,
|
417
|
+
)
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
class UntagResource
|
422
|
+
def self.build(context)
|
423
|
+
unless context.config.regional_endpoint
|
424
|
+
endpoint = context.config.endpoint.to_s
|
425
|
+
end
|
426
|
+
Aws::EKS::EndpointParameters.new(
|
427
|
+
region: context.config.region,
|
428
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
429
|
+
use_fips: context.config.use_fips_endpoint,
|
430
|
+
endpoint: endpoint,
|
431
|
+
)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
class UpdateAddon
|
436
|
+
def self.build(context)
|
437
|
+
unless context.config.regional_endpoint
|
438
|
+
endpoint = context.config.endpoint.to_s
|
439
|
+
end
|
440
|
+
Aws::EKS::EndpointParameters.new(
|
441
|
+
region: context.config.region,
|
442
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
443
|
+
use_fips: context.config.use_fips_endpoint,
|
444
|
+
endpoint: endpoint,
|
445
|
+
)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
class UpdateClusterConfig
|
450
|
+
def self.build(context)
|
451
|
+
unless context.config.regional_endpoint
|
452
|
+
endpoint = context.config.endpoint.to_s
|
453
|
+
end
|
454
|
+
Aws::EKS::EndpointParameters.new(
|
455
|
+
region: context.config.region,
|
456
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
457
|
+
use_fips: context.config.use_fips_endpoint,
|
458
|
+
endpoint: endpoint,
|
459
|
+
)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
class UpdateClusterVersion
|
464
|
+
def self.build(context)
|
465
|
+
unless context.config.regional_endpoint
|
466
|
+
endpoint = context.config.endpoint.to_s
|
467
|
+
end
|
468
|
+
Aws::EKS::EndpointParameters.new(
|
469
|
+
region: context.config.region,
|
470
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
471
|
+
use_fips: context.config.use_fips_endpoint,
|
472
|
+
endpoint: endpoint,
|
473
|
+
)
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
class UpdateNodegroupConfig
|
478
|
+
def self.build(context)
|
479
|
+
unless context.config.regional_endpoint
|
480
|
+
endpoint = context.config.endpoint.to_s
|
481
|
+
end
|
482
|
+
Aws::EKS::EndpointParameters.new(
|
483
|
+
region: context.config.region,
|
484
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
485
|
+
use_fips: context.config.use_fips_endpoint,
|
486
|
+
endpoint: endpoint,
|
487
|
+
)
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
class UpdateNodegroupVersion
|
492
|
+
def self.build(context)
|
493
|
+
unless context.config.regional_endpoint
|
494
|
+
endpoint = context.config.endpoint.to_s
|
495
|
+
end
|
496
|
+
Aws::EKS::EndpointParameters.new(
|
497
|
+
region: context.config.region,
|
498
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
499
|
+
use_fips: context.config.use_fips_endpoint,
|
500
|
+
endpoint: endpoint,
|
501
|
+
)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
end
|
506
|
+
end
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::EKS
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::EKS::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::EKS::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::EKS::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :associate_encryption_config
|
60
|
+
Aws::EKS::Endpoints::AssociateEncryptionConfig.build(context)
|
61
|
+
when :associate_identity_provider_config
|
62
|
+
Aws::EKS::Endpoints::AssociateIdentityProviderConfig.build(context)
|
63
|
+
when :create_addon
|
64
|
+
Aws::EKS::Endpoints::CreateAddon.build(context)
|
65
|
+
when :create_cluster
|
66
|
+
Aws::EKS::Endpoints::CreateCluster.build(context)
|
67
|
+
when :create_fargate_profile
|
68
|
+
Aws::EKS::Endpoints::CreateFargateProfile.build(context)
|
69
|
+
when :create_nodegroup
|
70
|
+
Aws::EKS::Endpoints::CreateNodegroup.build(context)
|
71
|
+
when :delete_addon
|
72
|
+
Aws::EKS::Endpoints::DeleteAddon.build(context)
|
73
|
+
when :delete_cluster
|
74
|
+
Aws::EKS::Endpoints::DeleteCluster.build(context)
|
75
|
+
when :delete_fargate_profile
|
76
|
+
Aws::EKS::Endpoints::DeleteFargateProfile.build(context)
|
77
|
+
when :delete_nodegroup
|
78
|
+
Aws::EKS::Endpoints::DeleteNodegroup.build(context)
|
79
|
+
when :deregister_cluster
|
80
|
+
Aws::EKS::Endpoints::DeregisterCluster.build(context)
|
81
|
+
when :describe_addon
|
82
|
+
Aws::EKS::Endpoints::DescribeAddon.build(context)
|
83
|
+
when :describe_addon_configuration
|
84
|
+
Aws::EKS::Endpoints::DescribeAddonConfiguration.build(context)
|
85
|
+
when :describe_addon_versions
|
86
|
+
Aws::EKS::Endpoints::DescribeAddonVersions.build(context)
|
87
|
+
when :describe_cluster
|
88
|
+
Aws::EKS::Endpoints::DescribeCluster.build(context)
|
89
|
+
when :describe_fargate_profile
|
90
|
+
Aws::EKS::Endpoints::DescribeFargateProfile.build(context)
|
91
|
+
when :describe_identity_provider_config
|
92
|
+
Aws::EKS::Endpoints::DescribeIdentityProviderConfig.build(context)
|
93
|
+
when :describe_nodegroup
|
94
|
+
Aws::EKS::Endpoints::DescribeNodegroup.build(context)
|
95
|
+
when :describe_update
|
96
|
+
Aws::EKS::Endpoints::DescribeUpdate.build(context)
|
97
|
+
when :disassociate_identity_provider_config
|
98
|
+
Aws::EKS::Endpoints::DisassociateIdentityProviderConfig.build(context)
|
99
|
+
when :list_addons
|
100
|
+
Aws::EKS::Endpoints::ListAddons.build(context)
|
101
|
+
when :list_clusters
|
102
|
+
Aws::EKS::Endpoints::ListClusters.build(context)
|
103
|
+
when :list_fargate_profiles
|
104
|
+
Aws::EKS::Endpoints::ListFargateProfiles.build(context)
|
105
|
+
when :list_identity_provider_configs
|
106
|
+
Aws::EKS::Endpoints::ListIdentityProviderConfigs.build(context)
|
107
|
+
when :list_nodegroups
|
108
|
+
Aws::EKS::Endpoints::ListNodegroups.build(context)
|
109
|
+
when :list_tags_for_resource
|
110
|
+
Aws::EKS::Endpoints::ListTagsForResource.build(context)
|
111
|
+
when :list_updates
|
112
|
+
Aws::EKS::Endpoints::ListUpdates.build(context)
|
113
|
+
when :register_cluster
|
114
|
+
Aws::EKS::Endpoints::RegisterCluster.build(context)
|
115
|
+
when :tag_resource
|
116
|
+
Aws::EKS::Endpoints::TagResource.build(context)
|
117
|
+
when :untag_resource
|
118
|
+
Aws::EKS::Endpoints::UntagResource.build(context)
|
119
|
+
when :update_addon
|
120
|
+
Aws::EKS::Endpoints::UpdateAddon.build(context)
|
121
|
+
when :update_cluster_config
|
122
|
+
Aws::EKS::Endpoints::UpdateClusterConfig.build(context)
|
123
|
+
when :update_cluster_version
|
124
|
+
Aws::EKS::Endpoints::UpdateClusterVersion.build(context)
|
125
|
+
when :update_nodegroup_config
|
126
|
+
Aws::EKS::Endpoints::UpdateNodegroupConfig.build(context)
|
127
|
+
when :update_nodegroup_version
|
128
|
+
Aws::EKS::Endpoints::UpdateNodegroupVersion.build(context)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
def add_handlers(handlers, _config)
|
134
|
+
handlers.add(Handler, step: :build, priority: 75)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|