Skip to content
v2.278.0

CfnEmailIdentityProps Struct ​

Properties for defining a CfnEmailIdentity.

Example ​

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
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
// 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();
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
// 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 ​

configurationSetAttributesoptionalIResolvable | CfnEmailIdentity.ConfigurationSetAttributesPropertyconfiguration_set_attributesoptionaltyping.Union[IResolvable, ConfigurationSetAttributesProperty]configurationSetAttributesoptionalIResolvableConfigurationSetAttributesoptionalIResolvableConfigurationSetAttributesoptionalinterface{} #
Used to associate a configuration set with an email identity.
dkimAttributesoptionalIResolvable | CfnEmailIdentity.DkimAttributesPropertydkim_attributesoptionaltyping.Union[IResolvable, DkimAttributesProperty]dkimAttributesoptionalIResolvableDkimAttributesoptionalIResolvableDkimAttributesoptionalinterface{} #
An object that contains information about the DKIM attributes for the identity.
dkimSigningAttributesoptionalIResolvable | CfnEmailIdentity.DkimSigningAttributesPropertydkim_signing_attributesoptionaltyping.Union[IResolvable, DkimSigningAttributesProperty]dkimSigningAttributesoptionalIResolvableDkimSigningAttributesoptionalIResolvableDkimSigningAttributesoptionalinterface{} #
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 .

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

emailIdentitystringemail_identitystremailIdentityStringEmailIdentitystringEmailIdentity*string required #
The email address or domain to verify.
feedbackAttributesoptionalIResolvable | CfnEmailIdentity.FeedbackAttributesPropertyfeedback_attributesoptionaltyping.Union[IResolvable, FeedbackAttributesProperty]feedbackAttributesoptionalIResolvableFeedbackAttributesoptionalIResolvableFeedbackAttributesoptionalinterface{} #
Used to enable or disable feedback forwarding for an identity.
mailFromAttributesoptionalIResolvable | CfnEmailIdentity.MailFromAttributesPropertymail_from_attributesoptionaltyping.Union[IResolvable, MailFromAttributesProperty]mailFromAttributesoptionalIResolvableMailFromAttributesoptionalIResolvableMailFromAttributesoptionalinterface{} #
Used to enable or disable the custom Mail-From domain configuration for an email identity.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of objects that define the tags (keys and values) to associate with the email identity.