# EncryptionConfigProperty

The encryption configuration for the cluster.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `provider`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.ProviderProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.CfnCluster.ProviderProperty.html) — The encryption provider for the cluster.

- `resources`: string[] — Specifies the resources to be encrypted.

  The only supported value is `secrets` .
