# DkimIdentityConfig

Struct · Stable

Configuration for DKIM identity.

Returned by: [DkimIdentity.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.DkimIdentity.html#bind)

- Source: [`aws-ses/lib/email-identity.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ses/lib/email-identity.ts#L187)
- Type last changed: v2.32.0 · 14 Jul 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const dkimIdentityConfig: ses.DkimIdentityConfig = {
  domainSigningPrivateKey: 'domainSigningPrivateKey',
  domainSigningSelector: 'domainSigningSelector',
  nextSigningKeyLength: ses.EasyDkimSigningKeyLength.RSA_1024_BIT,
};
```

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_ses as ses

dkim_identity_config = ses.DkimIdentityConfig(
    domain_signing_private_key="domainSigningPrivateKey",
    domain_signing_selector="domainSigningSelector",
    next_signing_key_length=ses.EasyDkimSigningKeyLength.RSA_1024_BIT
)
```

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.ses.*;

DkimIdentityConfig dkimIdentityConfig = DkimIdentityConfig.builder()
        .domainSigningPrivateKey("domainSigningPrivateKey")
        .domainSigningSelector("domainSigningSelector")
        .nextSigningKeyLength(EasyDkimSigningKeyLength.RSA_1024_BIT)
        .build();
```

C#:

```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.SES;

var dkimIdentityConfig = new DkimIdentityConfig {
    DomainSigningPrivateKey = "domainSigningPrivateKey",
    DomainSigningSelector = "domainSigningSelector",
    NextSigningKeyLength = EasyDkimSigningKeyLength.RSA_1024_BIT
};
```

Go:

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

dkimIdentityConfig := &DkimIdentityConfig{
	DomainSigningPrivateKey: jsii.String("domainSigningPrivateKey"),
	DomainSigningSelector: jsii.String("domainSigningSelector"),
	NextSigningKeyLength: awscdk.Aws_ses.EasyDkimSigningKeyLength_RSA_1024_BIT,
}
```

## Properties

- `domainSigningPrivateKey`: string — A private key that's used to generate a DKIM signature.

  **Default:** use Easy DKIM

- `domainSigningSelector`: string — A string that's used to identify a public key in the DNS configuration for a domain.

  **Default:** use Easy DKIM

- `nextSigningKeyLength`: [EasyDkimSigningKeyLength](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.EasyDkimSigningKeyLength.html) — The key length of the future DKIM key pair to be generated.

  **Default:** EasyDkimSigningKeyLength.RSA_2048_BIT

  This can be changed
  at most once per day.
