/
AmazonEKSClient.cs
2476 lines (2258 loc) · 139 KB
/
AmazonEKSClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the eks-2017-11-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.EKS.Model;
using Amazon.EKS.Model.Internal.MarshallTransformations;
using Amazon.EKS.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.EKS
{
/// <summary>
/// Implementation for accessing EKS
///
/// Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that makes it
/// easy for you to run Kubernetes on AWS without needing to stand up or maintain your
/// own Kubernetes control plane. Kubernetes is an open-source system for automating the
/// deployment, scaling, and management of containerized applications.
///
///
/// <para>
/// Amazon EKS runs up-to-date versions of the open-source Kubernetes software, so you
/// can use all the existing plugins and tooling from the Kubernetes community. Applications
/// running on Amazon EKS are fully compatible with applications running on any standard
/// Kubernetes environment, whether running in on-premises data centers or public clouds.
/// This means that you can easily migrate any standard Kubernetes application to Amazon
/// EKS without any code modification required.
/// </para>
/// </summary>
public partial class AmazonEKSClient : AmazonServiceClient, IAmazonEKS
{
private static IServiceMetadata serviceMetadata = new AmazonEKSMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonEKSClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonEKSClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonEKSConfig()) { }
/// <summary>
/// Constructs AmazonEKSClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonEKSClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonEKSConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonEKSClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonEKSClient Configuration Object</param>
public AmazonEKSClient(AmazonEKSConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonEKSClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonEKSClient(AWSCredentials credentials)
: this(credentials, new AmazonEKSConfig())
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonEKSClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonEKSConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Credentials and an
/// AmazonEKSClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonEKSClient Configuration Object</param>
public AmazonEKSClient(AWSCredentials credentials, AmazonEKSConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonEKSClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonEKSConfig())
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonEKSClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonEKSConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonEKSClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonEKSClient Configuration Object</param>
public AmazonEKSClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonEKSConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonEKSClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonEKSConfig())
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonEKSClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonEKSConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonEKSClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonEKSClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonEKSClient Configuration Object</param>
public AmazonEKSClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonEKSConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateAddon
/// <summary>
/// Creates an Amazon EKS add-on.
///
///
/// <para>
/// Amazon EKS add-ons help to automate the provisioning and lifecycle management of common
/// operational software for Amazon EKS clusters. Amazon EKS add-ons can only be used
/// with Amazon EKS clusters running version 1.18 with platform version <code>eks.3</code>
/// or later because add-ons rely on the Server-side Apply Kubernetes feature, which is
/// only available in Kubernetes 1.18 and later.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateAddon service method.</param>
///
/// <returns>The response from the CreateAddon service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidRequestException">
/// The request is invalid given the state of the cluster. Check the state of the cluster
/// and the associated operations.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceInUseException">
/// The specified resource is in use.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceNotFoundException">
/// The specified resource could not be found. You can view your available clusters with
/// <a>ListClusters</a>. You can view your available managed node groups with <a>ListNodegroups</a>.
/// Amazon EKS clusters and node groups are Region-specific.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateAddon">REST API Reference for CreateAddon Operation</seealso>
public virtual CreateAddonResponse CreateAddon(CreateAddonRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAddonRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAddonResponseUnmarshaller.Instance;
return Invoke<CreateAddonResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateAddon operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateAddon operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAddon
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateAddon">REST API Reference for CreateAddon Operation</seealso>
public virtual IAsyncResult BeginCreateAddon(CreateAddonRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAddonRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAddonResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateAddon operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAddon.</param>
///
/// <returns>Returns a CreateAddonResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateAddon">REST API Reference for CreateAddon Operation</seealso>
public virtual CreateAddonResponse EndCreateAddon(IAsyncResult asyncResult)
{
return EndInvoke<CreateAddonResponse>(asyncResult);
}
#endregion
#region CreateCluster
/// <summary>
/// Creates an Amazon EKS control plane.
///
///
/// <para>
/// The Amazon EKS control plane consists of control plane instances that run the Kubernetes
/// software, such as <code>etcd</code> and the API server. The control plane runs in
/// an account managed by AWS, and the Kubernetes API is exposed via the Amazon EKS API
/// server endpoint. Each Amazon EKS cluster control plane is single-tenant and unique
/// and runs on its own set of Amazon EC2 instances.
/// </para>
///
/// <para>
/// The cluster control plane is provisioned across multiple Availability Zones and fronted
/// by an Elastic Load Balancing Network Load Balancer. Amazon EKS also provisions elastic
/// network interfaces in your VPC subnets to provide connectivity from the control plane
/// instances to the worker nodes (for example, to support <code>kubectl exec</code>,
/// <code>logs</code>, and <code>proxy</code> data flows).
/// </para>
///
/// <para>
/// Amazon EKS worker nodes run in your AWS account and connect to your cluster's control
/// plane via the Kubernetes API server endpoint and a certificate file that is created
/// for your cluster.
/// </para>
///
/// <para>
/// You can use the <code>endpointPublicAccess</code> and <code>endpointPrivateAccess</code>
/// parameters to enable or disable public and private access to your cluster's Kubernetes
/// API server endpoint. By default, public access is enabled, and private access is disabled.
/// For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html">Amazon
/// EKS Cluster Endpoint Access Control</a> in the <i> <i>Amazon EKS User Guide</i> </i>.
///
/// </para>
///
/// <para>
/// You can use the <code>logging</code> parameter to enable or disable exporting the
/// Kubernetes control plane logs for your cluster to CloudWatch Logs. By default, cluster
/// control plane logs aren't exported to CloudWatch Logs. For more information, see <a
/// href="https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html">Amazon
/// EKS Cluster Control Plane Logs</a> in the <i> <i>Amazon EKS User Guide</i> </i>.
/// </para>
/// <note>
/// <para>
/// CloudWatch Logs ingestion, archive storage, and data scanning rates apply to exported
/// control plane logs. For more information, see <a href="http://aws.amazon.com/cloudwatch/pricing/">Amazon
/// CloudWatch Pricing</a>.
/// </para>
/// </note>
/// <para>
/// Cluster creation typically takes between 10 and 15 minutes. After you create an Amazon
/// EKS cluster, you must configure your Kubernetes tooling to communicate with the API
/// server and launch worker nodes into your cluster. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/managing-auth.html">Managing
/// Cluster Authentication</a> and <a href="https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html">Launching
/// Amazon EKS Worker Nodes</a> in the <i>Amazon EKS User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCluster service method.</param>
///
/// <returns>The response from the CreateCluster service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceInUseException">
/// The specified resource is in use.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceLimitExceededException">
/// You have encountered a service limit on the specified resource.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServiceUnavailableException">
/// The service is unavailable. Back off and retry the operation.
/// </exception>
/// <exception cref="Amazon.EKS.Model.UnsupportedAvailabilityZoneException">
/// At least one of your specified cluster subnets is in an Availability Zone that does
/// not support Amazon EKS. The exception output specifies the supported Availability
/// Zones for your account, from which you can choose subnets for your cluster.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster">REST API Reference for CreateCluster Operation</seealso>
public virtual CreateClusterResponse CreateCluster(CreateClusterRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;
return Invoke<CreateClusterResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateCluster operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateCluster operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCluster
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster">REST API Reference for CreateCluster Operation</seealso>
public virtual IAsyncResult BeginCreateCluster(CreateClusterRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateCluster operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCluster.</param>
///
/// <returns>Returns a CreateClusterResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateCluster">REST API Reference for CreateCluster Operation</seealso>
public virtual CreateClusterResponse EndCreateCluster(IAsyncResult asyncResult)
{
return EndInvoke<CreateClusterResponse>(asyncResult);
}
#endregion
#region CreateFargateProfile
/// <summary>
/// Creates an AWS Fargate profile for your Amazon EKS cluster. You must have at least
/// one Fargate profile in a cluster to be able to run pods on Fargate.
///
///
/// <para>
/// The Fargate profile allows an administrator to declare which pods run on Fargate and
/// specify which pods run on which Fargate profile. This declaration is done through
/// the profile’s selectors. Each profile can have up to five selectors that contain a
/// namespace and labels. A namespace is required for every selector. The label field
/// consists of multiple optional key-value pairs. Pods that match the selectors are scheduled
/// on Fargate. If a to-be-scheduled pod matches any of the selectors in the Fargate profile,
/// then that pod is run on Fargate.
/// </para>
///
/// <para>
/// When you create a Fargate profile, you must specify a pod execution role to use with
/// the pods that are scheduled with the profile. This role is added to the cluster's
/// Kubernetes <a href="https://kubernetes.io/docs/admin/authorization/rbac/">Role Based
/// Access Control</a> (RBAC) for authorization so that the <code>kubelet</code> that
/// is running on the Fargate infrastructure can register with your Amazon EKS cluster
/// so that it can appear in your cluster as a node. The pod execution role also provides
/// IAM permissions to the Fargate infrastructure to allow read access to Amazon ECR image
/// repositories. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/pod-execution-role.html">Pod
/// Execution Role</a> in the <i>Amazon EKS User Guide</i>.
/// </para>
///
/// <para>
/// Fargate profiles are immutable. However, you can create a new updated profile to replace
/// an existing profile and then delete the original after the updated profile has finished
/// creating.
/// </para>
///
/// <para>
/// If any Fargate profiles in a cluster are in the <code>DELETING</code> status, you
/// must wait for that Fargate profile to finish deleting before you can create any other
/// profiles in that cluster.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/fargate-profile.html">AWS
/// Fargate Profile</a> in the <i>Amazon EKS User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateFargateProfile service method.</param>
///
/// <returns>The response from the CreateFargateProfile service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidRequestException">
/// The request is invalid given the state of the cluster. Check the state of the cluster
/// and the associated operations.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceLimitExceededException">
/// You have encountered a service limit on the specified resource.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <exception cref="Amazon.EKS.Model.UnsupportedAvailabilityZoneException">
/// At least one of your specified cluster subnets is in an Availability Zone that does
/// not support Amazon EKS. The exception output specifies the supported Availability
/// Zones for your account, from which you can choose subnets for your cluster.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateFargateProfile">REST API Reference for CreateFargateProfile Operation</seealso>
public virtual CreateFargateProfileResponse CreateFargateProfile(CreateFargateProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFargateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFargateProfileResponseUnmarshaller.Instance;
return Invoke<CreateFargateProfileResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateFargateProfile operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateFargateProfile operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFargateProfile
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateFargateProfile">REST API Reference for CreateFargateProfile Operation</seealso>
public virtual IAsyncResult BeginCreateFargateProfile(CreateFargateProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFargateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFargateProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateFargateProfile operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFargateProfile.</param>
///
/// <returns>Returns a CreateFargateProfileResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateFargateProfile">REST API Reference for CreateFargateProfile Operation</seealso>
public virtual CreateFargateProfileResponse EndCreateFargateProfile(IAsyncResult asyncResult)
{
return EndInvoke<CreateFargateProfileResponse>(asyncResult);
}
#endregion
#region CreateNodegroup
/// <summary>
/// Creates a managed worker node group for an Amazon EKS cluster. You can only create
/// a node group for your cluster that is equal to the current Kubernetes version for
/// the cluster. All node groups are created with the latest AMI release version for the
/// respective minor Kubernetes version of the cluster, unless you deploy a custom AMI
/// using a launch template. For more information about using launch templates, see <a
/// href="https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html">Launch
/// template support</a>.
///
///
/// <para>
/// An Amazon EKS managed node group is an Amazon EC2 Auto Scaling group and associated
/// Amazon EC2 instances that are managed by AWS for an Amazon EKS cluster. Each node
/// group uses a version of the Amazon EKS optimized Amazon Linux 2 AMI. For more information,
/// see <a href="https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html">Managed
/// Node Groups</a> in the <i>Amazon EKS User Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateNodegroup service method.</param>
///
/// <returns>The response from the CreateNodegroup service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidRequestException">
/// The request is invalid given the state of the cluster. Check the state of the cluster
/// and the associated operations.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceInUseException">
/// The specified resource is in use.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceLimitExceededException">
/// You have encountered a service limit on the specified resource.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServiceUnavailableException">
/// The service is unavailable. Back off and retry the operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateNodegroup">REST API Reference for CreateNodegroup Operation</seealso>
public virtual CreateNodegroupResponse CreateNodegroup(CreateNodegroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateNodegroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateNodegroupResponseUnmarshaller.Instance;
return Invoke<CreateNodegroupResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateNodegroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateNodegroup operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateNodegroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateNodegroup">REST API Reference for CreateNodegroup Operation</seealso>
public virtual IAsyncResult BeginCreateNodegroup(CreateNodegroupRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateNodegroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateNodegroupResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateNodegroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateNodegroup.</param>
///
/// <returns>Returns a CreateNodegroupResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateNodegroup">REST API Reference for CreateNodegroup Operation</seealso>
public virtual CreateNodegroupResponse EndCreateNodegroup(IAsyncResult asyncResult)
{
return EndInvoke<CreateNodegroupResponse>(asyncResult);
}
#endregion
#region DeleteAddon
/// <summary>
/// Delete an Amazon EKS add-on.
///
///
/// <para>
/// When you remove the add-on, it will also be deleted from the cluster. You can always
/// manually start an add-on on the cluster using the Kubernetes API.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteAddon service method.</param>
///
/// <returns>The response from the DeleteAddon service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidRequestException">
/// The request is invalid given the state of the cluster. Check the state of the cluster
/// and the associated operations.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceNotFoundException">
/// The specified resource could not be found. You can view your available clusters with
/// <a>ListClusters</a>. You can view your available managed node groups with <a>ListNodegroups</a>.
/// Amazon EKS clusters and node groups are Region-specific.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteAddon">REST API Reference for DeleteAddon Operation</seealso>
public virtual DeleteAddonResponse DeleteAddon(DeleteAddonRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAddonRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAddonResponseUnmarshaller.Instance;
return Invoke<DeleteAddonResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteAddon operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteAddon operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAddon
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteAddon">REST API Reference for DeleteAddon Operation</seealso>
public virtual IAsyncResult BeginDeleteAddon(DeleteAddonRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAddonRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAddonResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteAddon operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAddon.</param>
///
/// <returns>Returns a DeleteAddonResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteAddon">REST API Reference for DeleteAddon Operation</seealso>
public virtual DeleteAddonResponse EndDeleteAddon(IAsyncResult asyncResult)
{
return EndInvoke<DeleteAddonResponse>(asyncResult);
}
#endregion
#region DeleteCluster
/// <summary>
/// Deletes the Amazon EKS cluster control plane.
///
///
/// <para>
/// If you have active services in your cluster that are associated with a load balancer,
/// you must delete those services before deleting the cluster so that the load balancers
/// are deleted properly. Otherwise, you can have orphaned resources in your VPC that
/// prevent you from being able to delete the VPC. For more information, see <a href="https://docs.aws.amazon.com/eks/latest/userguide/delete-cluster.html">Deleting
/// a Cluster</a> in the <i>Amazon EKS User Guide</i>.
/// </para>
///
/// <para>
/// If you have managed node groups or Fargate profiles attached to the cluster, you must
/// delete them first. For more information, see <a>DeleteNodegroup</a> and <a>DeleteFargateProfile</a>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteCluster service method.</param>
///
/// <returns>The response from the DeleteCluster service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceInUseException">
/// The specified resource is in use.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceNotFoundException">
/// The specified resource could not be found. You can view your available clusters with
/// <a>ListClusters</a>. You can view your available managed node groups with <a>ListNodegroups</a>.
/// Amazon EKS clusters and node groups are Region-specific.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServiceUnavailableException">
/// The service is unavailable. Back off and retry the operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster">REST API Reference for DeleteCluster Operation</seealso>
public virtual DeleteClusterResponse DeleteCluster(DeleteClusterRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance;
return Invoke<DeleteClusterResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteCluster operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteCluster operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCluster
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster">REST API Reference for DeleteCluster Operation</seealso>
public virtual IAsyncResult BeginDeleteCluster(DeleteClusterRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteClusterRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteClusterResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteCluster operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCluster.</param>
///
/// <returns>Returns a DeleteClusterResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster">REST API Reference for DeleteCluster Operation</seealso>
public virtual DeleteClusterResponse EndDeleteCluster(IAsyncResult asyncResult)
{
return EndInvoke<DeleteClusterResponse>(asyncResult);
}
#endregion
#region DeleteFargateProfile
/// <summary>
/// Deletes an AWS Fargate profile.
///
///
/// <para>
/// When you delete a Fargate profile, any pods running on Fargate that were created with
/// the profile are deleted. If those pods match another Fargate profile, then they are
/// scheduled on Fargate with that profile. If they no longer match any Fargate profiles,
/// then they are not scheduled on Fargate and they may remain in a pending state.
/// </para>
///
/// <para>
/// Only one Fargate profile in a cluster can be in the <code>DELETING</code> status at
/// a time. You must wait for a Fargate profile to finish deleting before you can delete
/// any other profiles in that cluster.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteFargateProfile service method.</param>
///
/// <returns>The response from the DeleteFargateProfile service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceNotFoundException">
/// The specified resource could not be found. You can view your available clusters with
/// <a>ListClusters</a>. You can view your available managed node groups with <a>ListNodegroups</a>.
/// Amazon EKS clusters and node groups are Region-specific.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteFargateProfile">REST API Reference for DeleteFargateProfile Operation</seealso>
public virtual DeleteFargateProfileResponse DeleteFargateProfile(DeleteFargateProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFargateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFargateProfileResponseUnmarshaller.Instance;
return Invoke<DeleteFargateProfileResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteFargateProfile operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteFargateProfile operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFargateProfile
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteFargateProfile">REST API Reference for DeleteFargateProfile Operation</seealso>
public virtual IAsyncResult BeginDeleteFargateProfile(DeleteFargateProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFargateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFargateProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteFargateProfile operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFargateProfile.</param>
///
/// <returns>Returns a DeleteFargateProfileResult from EKS.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteFargateProfile">REST API Reference for DeleteFargateProfile Operation</seealso>
public virtual DeleteFargateProfileResponse EndDeleteFargateProfile(IAsyncResult asyncResult)
{
return EndInvoke<DeleteFargateProfileResponse>(asyncResult);
}
#endregion
#region DeleteNodegroup
/// <summary>
/// Deletes an Amazon EKS node group for a cluster.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteNodegroup service method.</param>
///
/// <returns>The response from the DeleteNodegroup service method, as returned by EKS.</returns>
/// <exception cref="Amazon.EKS.Model.ClientException">
/// These errors are usually caused by a client action. Actions can include using an action
/// or resource on behalf of a user that doesn't have permissions to use the action or
/// resource or specifying an identifier that is not valid.
/// </exception>
/// <exception cref="Amazon.EKS.Model.InvalidParameterException">
/// The specified parameter is invalid. Review the available parameters for the API request.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceInUseException">
/// The specified resource is in use.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ResourceNotFoundException">
/// The specified resource could not be found. You can view your available clusters with
/// <a>ListClusters</a>. You can view your available managed node groups with <a>ListNodegroups</a>.
/// Amazon EKS clusters and node groups are Region-specific.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServerException">
/// These errors are usually caused by a server-side issue.
/// </exception>
/// <exception cref="Amazon.EKS.Model.ServiceUnavailableException">
/// The service is unavailable. Back off and retry the operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteNodegroup">REST API Reference for DeleteNodegroup Operation</seealso>
public virtual DeleteNodegroupResponse DeleteNodegroup(DeleteNodegroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteNodegroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteNodegroupResponseUnmarshaller.Instance;
return Invoke<DeleteNodegroupResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteNodegroup operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteNodegroup operation on AmazonEKSClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNodegroup
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteNodegroup">REST API Reference for DeleteNodegroup Operation</seealso>
public virtual IAsyncResult BeginDeleteNodegroup(DeleteNodegroupRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteNodegroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteNodegroupResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteNodegroup operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNodegroup.</param>
///