Skip to content
v2.277.0

EncryptionConfigProperty Struct ​

The encryption configuration for the cluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const encryptionConfigProperty: eks.CfnCluster.EncryptionConfigProperty = {
  provider: {
    keyArn: 'keyArn',
  },
  resources: ['resources'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

encryption_config_property = eks.CfnCluster.EncryptionConfigProperty(
    provider=eks.CfnCluster.ProviderProperty(
        key_arn="keyArn"
    ),
    resources=["resources"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;

EncryptionConfigProperty encryptionConfigProperty = EncryptionConfigProperty.builder()
        .provider(ProviderProperty.builder()
                .keyArn("keyArn")
                .build())
        .resources(List.of("resources"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var encryptionConfigProperty = new EncryptionConfigProperty {
    Provider = new ProviderProperty {
        KeyArn = "keyArn"
    },
    Resources = new [] { "resources" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

encryptionConfigProperty := &EncryptionConfigProperty{
	Provider: &ProviderProperty{
		KeyArn: jsii.String("keyArn"),
	},
	Resources: []*string{
		jsii.String("resources"),
	},
}

Properties ​

provideroptionalIResolvable | CfnCluster.ProviderPropertyprovideroptionaltyping.Union[IResolvable, ProviderProperty]provideroptionalIResolvableProvideroptionalIResolvableProvideroptionalinterface{}#
The encryption provider for the cluster.
resourcesoptionalstring[]resourcesoptionaltyping.List[str]resourcesoptionalList<String>Resourcesoptionalstring[]Resourcesoptional*[]*string#
Specifies the resources to be encrypted.

The only supported value is secrets .