# CfnEmailIdentityProps

Struct · External

Properties for defining a `CfnEmailIdentity`.

Used as props by: [CfnEmailIdentity](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnEmailIdentity.html)

- Source: Generated at build time
- Type last changed: v2.211.0 · 13 Aug 2025

## 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 cfnEmailIdentityProps: ses.CfnEmailIdentityProps = {
  emailIdentity: 'emailIdentity',

  // the properties below are optional
  configurationSetAttributes: {
    configurationSetName: 'configurationSetName',
  },
  dkimAttributes: {
    signingEnabled: false,
  },
  dkimSigningAttributes: {
    domainSigningPrivateKey: 'domainSigningPrivateKey',
    domainSigningSelector: 'domainSigningSelector',
    nextSigningKeyLength: 'nextSigningKeyLength',
  },
  feedbackAttributes: {
    emailForwardingEnabled: false,
  },
  mailFromAttributes: {
    behaviorOnMxFailure: 'behaviorOnMxFailure',
    mailFromDomain: 'mailFromDomain',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_email_identity_props = ses.CfnEmailIdentityProps(
    email_identity="emailIdentity",

    # the properties below are optional
    configuration_set_attributes=ses.CfnEmailIdentity.ConfigurationSetAttributesProperty(
        configuration_set_name="configurationSetName"
    ),
    dkim_attributes=ses.CfnEmailIdentity.DkimAttributesProperty(
        signing_enabled=False
    ),
    dkim_signing_attributes=ses.CfnEmailIdentity.DkimSigningAttributesProperty(
        domain_signing_private_key="domainSigningPrivateKey",
        domain_signing_selector="domainSigningSelector",
        next_signing_key_length="nextSigningKeyLength"
    ),
    feedback_attributes=ses.CfnEmailIdentity.FeedbackAttributesProperty(
        email_forwarding_enabled=False
    ),
    mail_from_attributes=ses.CfnEmailIdentity.MailFromAttributesProperty(
        behavior_on_mx_failure="behaviorOnMxFailure",
        mail_from_domain="mailFromDomain"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnEmailIdentityProps cfnEmailIdentityProps = CfnEmailIdentityProps.builder()
        .emailIdentity("emailIdentity")

        // the properties below are optional
        .configurationSetAttributes(ConfigurationSetAttributesProperty.builder()
                .configurationSetName("configurationSetName")
                .build())
        .dkimAttributes(DkimAttributesProperty.builder()
                .signingEnabled(false)
                .build())
        .dkimSigningAttributes(DkimSigningAttributesProperty.builder()
                .domainSigningPrivateKey("domainSigningPrivateKey")
                .domainSigningSelector("domainSigningSelector")
                .nextSigningKeyLength("nextSigningKeyLength")
                .build())
        .feedbackAttributes(FeedbackAttributesProperty.builder()
                .emailForwardingEnabled(false)
                .build())
        .mailFromAttributes(MailFromAttributesProperty.builder()
                .behaviorOnMxFailure("behaviorOnMxFailure")
                .mailFromDomain("mailFromDomain")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnEmailIdentityProps = new CfnEmailIdentityProps {
    EmailIdentity = "emailIdentity",

    // the properties below are optional
    ConfigurationSetAttributes = new ConfigurationSetAttributesProperty {
        ConfigurationSetName = "configurationSetName"
    },
    DkimAttributes = new DkimAttributesProperty {
        SigningEnabled = false
    },
    DkimSigningAttributes = new DkimSigningAttributesProperty {
        DomainSigningPrivateKey = "domainSigningPrivateKey",
        DomainSigningSelector = "domainSigningSelector",
        NextSigningKeyLength = "nextSigningKeyLength"
    },
    FeedbackAttributes = new FeedbackAttributesProperty {
        EmailForwardingEnabled = false
    },
    MailFromAttributes = new MailFromAttributesProperty {
        BehaviorOnMxFailure = "behaviorOnMxFailure",
        MailFromDomain = "mailFromDomain"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnEmailIdentityProps := &CfnEmailIdentityProps{
	EmailIdentity: jsii.String("emailIdentity"),

	// the properties below are optional
	ConfigurationSetAttributes: &ConfigurationSetAttributesProperty{
		ConfigurationSetName: jsii.String("configurationSetName"),
	},
	DkimAttributes: &DkimAttributesProperty{
		SigningEnabled: jsii.Boolean(false),
	},
	DkimSigningAttributes: &DkimSigningAttributesProperty{
		DomainSigningPrivateKey: jsii.String("domainSigningPrivateKey"),
		DomainSigningSelector: jsii.String("domainSigningSelector"),
		NextSigningKeyLength: jsii.String("nextSigningKeyLength"),
	},
	FeedbackAttributes: &FeedbackAttributesProperty{
		EmailForwardingEnabled: jsii.Boolean(false),
	},
	MailFromAttributes: &MailFromAttributesProperty{
		BehaviorOnMxFailure: jsii.String("behaviorOnMxFailure"),
		MailFromDomain: jsii.String("mailFromDomain"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `configurationSetAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEmailIdentity.ConfigurationSetAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnEmailIdentity.ConfigurationSetAttributesProperty.html) — Used to associate a configuration set with an email identity.

- `dkimAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEmailIdentity.DkimAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnEmailIdentity.DkimAttributesProperty.html) — An object that contains information about the DKIM attributes for the identity.

- `dkimSigningAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEmailIdentity.DkimSigningAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnEmailIdentity.DkimSigningAttributesProperty.html) — If your request includes this object, Amazon SES configures the identity to use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, or, configures the key length to be used for [Easy DKIM](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/easy-dkim.html) .

  You can only specify this object if the email identity is a domain, as opposed to an address.

- `emailIdentity`: string (required) — The email address or domain to verify.

- `feedbackAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEmailIdentity.FeedbackAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnEmailIdentity.FeedbackAttributesProperty.html) — Used to enable or disable feedback forwarding for an identity.

- `mailFromAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEmailIdentity.MailFromAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnEmailIdentity.MailFromAttributesProperty.html) — Used to enable or disable the custom Mail-From domain configuration for an email identity.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of objects that define the tags (keys and values) to associate with the email identity.
