CfnIdentityProps

class aws_cdk.aws_pinpointemail.CfnIdentityProps(*, name, dkim_signing_enabled=None, feedback_forwarding_enabled=None, mail_from_attributes=None, tags=None)

Bases: object

Properties for defining a CfnIdentity.

Parameters
  • name (str) – The address or domain of the identity, such as sender@example.com or example.co.uk .

  • dkim_signing_enabled (Union[bool, IResolvable, None]) – For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain. If the value is true , then the messages that you send from the domain are signed using both the DKIM keys for your domain, as well as the keys for the amazonses.com domain. If the value is false , then the messages that you send are only signed using the DKIM keys for the amazonses.com domain.

  • feedback_forwarding_enabled (Union[bool, IResolvable, None]) – Used to enable or disable feedback forwarding for an identity. This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event. When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email. When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You’re required to have a method of tracking bounces and complaints. If you haven’t set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

  • mail_from_attributes (Union[IResolvable, MailFromAttributesProperty, None]) – Used to enable or disable the custom Mail-From domain configuration for an email identity.

  • tags (Optional[Sequence[TagsProperty]]) – An object that defines the tags (keys and values) that you want to associate with the email identity.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_pinpointemail as pinpointemail

cfn_identity_props = pinpointemail.CfnIdentityProps(
    name="name",

    # the properties below are optional
    dkim_signing_enabled=False,
    feedback_forwarding_enabled=False,
    mail_from_attributes=pinpointemail.CfnIdentity.MailFromAttributesProperty(
        behavior_on_mx_failure="behaviorOnMxFailure",
        mail_from_domain="mailFromDomain"
    ),
    tags=[pinpointemail.CfnIdentity.TagsProperty(
        key="key",
        value="value"
    )]
)

Attributes

dkim_signing_enabled

For domain identities, this attribute is used to enable or disable DomainKeys Identified Mail (DKIM) signing for the domain.

If the value is true , then the messages that you send from the domain are signed using both the DKIM keys for your domain, as well as the keys for the amazonses.com domain. If the value is false , then the messages that you send are only signed using the DKIM keys for the amazonses.com domain.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html#cfn-pinpointemail-identity-dkimsigningenabled

Return type

Union[bool, IResolvable, None]

feedback_forwarding_enabled

Used to enable or disable feedback forwarding for an identity.

This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event.

When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.

When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You’re required to have a method of tracking bounces and complaints. If you haven’t set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html#cfn-pinpointemail-identity-feedbackforwardingenabled

Return type

Union[bool, IResolvable, None]

mail_from_attributes

Used to enable or disable the custom Mail-From domain configuration for an email identity.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html#cfn-pinpointemail-identity-mailfromattributes

Return type

Union[IResolvable, MailFromAttributesProperty, None]

name

The address or domain of the identity, such as sender@example.com or example.co.uk .

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html#cfn-pinpointemail-identity-name

Return type

str

tags

An object that defines the tags (keys and values) that you want to associate with the email identity.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpointemail-identity.html#cfn-pinpointemail-identity-tags

Return type

Optional[List[TagsProperty]]