AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Associates an encryption configuration to an existing cluster.
Use this API to enable encryption on existing clusters that don't already have encryption enabled. This allows you to implement a defense-in-depth security strategy without migrating applications to new Amazon EKS clusters.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginAssociateEncryptionConfig and EndAssociateEncryptionConfig.
Namespace: Amazon.EKS
Assembly: AWSSDK.EKS.dll
Version: 3.x.y.z
public abstract Task<AssociateEncryptionConfigResponse> AssociateEncryptionConfigAsync( AssociateEncryptionConfigRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the AssociateEncryptionConfig service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
ClientException | These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an IAM principal that doesn't have permissions to use the action or resource or specifying an identifier that is not valid. |
InvalidParameterException | The specified parameter is invalid. Review the available parameters for the API request. |
InvalidRequestException | The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations. |
ResourceInUseException | The specified resource is in use. |
ResourceNotFoundException | The specified resource could not be found. You can view your available clusters with ListClusters. You can view your available managed node groups with ListNodegroups. Amazon EKS clusters and node groups are Amazon Web Services Region specific. |
ServerException | These errors are usually caused by a server-side issue. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer