Skip to main content

email_identities

Creates, updates, deletes, gets or lists an email_identities resource.

Overview

Nameemail_identities
TypeResource
Idaws.pinpoint_email.email_identities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
dkim_attributesobjectAn object that contains information about the DKIM attributes for the identity. This object includes the tokens that you use to create the CNAME records that are required to complete the DKIM verification process.
feedback_forwarding_statusbooleanThe feedback forwarding configuration for the identity. If the value is true, 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 set this value to false, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic or another event destination. 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).
identity_typestringThe email identity type. (EMAIL_ADDRESS, DOMAIN, MANAGED_DOMAIN)
mail_from_attributesobjectAn object that contains information about the Mail-From attributes for the email identity.
tagsarrayAn array of objects that define the tags (keys and values) that are associated with the email identity.
verified_for_sending_statusbooleanSpecifies whether or not the identity is verified. In Amazon Pinpoint, you can only send email from verified email addresses or domains. For more information about verifying identities, see the Amazon Pinpoint User Guide.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_email_identityselectemail_identity, regionProvides information about a specific identity associated with your Amazon Pinpoint account, including the identity's verification status, its DKIM authentication status, and its custom Mail-From settings.
list_email_identitiesselectregionNextToken, PageSizeReturns a list of all of the email identities that are associated with your Amazon Pinpoint account. An identity can be either an email address or a domain. This operation returns identities that are verified as well as those that aren't.
create_email_identityinsertregion, EmailIdentityVerifies an email identity for use with Amazon Pinpoint. In Amazon Pinpoint, an identity is an email address or domain that you use when you send email. Before you can use an identity to send email with Amazon Pinpoint, you first have to verify it. By verifying an address, you demonstrate that you're the owner of the address, and that you've given Amazon Pinpoint permission to send email from the address. When you verify an email address, Amazon Pinpoint sends an email to the address. Your email address is verified as soon as you follow the link in the verification email. When you verify a domain, this operation provides a set of DKIM tokens, which you can convert into CNAME tokens. You add these CNAME tokens to the DNS configuration for your domain. Your domain is verified when Amazon Pinpoint detects these records in the DNS configuration for your domain. It usually takes around 72 hours to complete the domain verification process.
put_email_identity_dkim_attributesreplaceemail_identity, regionUsed to enable or disable DKIM authentication for an email identity.
delete_email_identitydeleteemail_identity, regionDeletes an email identity that you previously verified for use with Amazon Pinpoint. An identity can be either an email address or a domain name.
put_email_identity_feedback_attributesexecemail_identity, regionUsed 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).
put_email_identity_mail_from_attributesexecemail_identity, regionUsed to enable or disable the custom Mail-From domain configuration for an email identity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
email_identitystringThe verified email identity that you want to set up the custom MAIL FROM domain for.
regionstringAWS region (default: us-east-1)
NextTokenstringA token returned from a previous call to ListEmailIdentities to indicate the position in the list of identities.
PageSizeintegerThe number of results to show in a single call to ListEmailIdentities. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results. The value you specify has to be at least 0, and can be no more than 1000.

SELECT examples

Provides information about a specific identity associated with your Amazon Pinpoint account, including the identity's verification status, its DKIM authentication status, and its custom Mail-From settings.

SELECT
dkim_attributes,
feedback_forwarding_status,
identity_type,
mail_from_attributes,
tags,
verified_for_sending_status
FROM aws.pinpoint_email.email_identities
WHERE email_identity = '{{ email_identity }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Verifies an email identity for use with Amazon Pinpoint. In Amazon Pinpoint, an identity is an email address or domain that you use when you send email. Before you can use an identity to send email with Amazon Pinpoint, you first have to verify it. By verifying an address, you demonstrate that you're the owner of the address, and that you've given Amazon Pinpoint permission to send email from the address. When you verify an email address, Amazon Pinpoint sends an email to the address. Your email address is verified as soon as you follow the link in the verification email. When you verify a domain, this operation provides a set of DKIM tokens, which you can convert into CNAME tokens. You add these CNAME tokens to the DNS configuration for your domain. Your domain is verified when Amazon Pinpoint detects these records in the DNS configuration for your domain. It usually takes around 72 hours to complete the domain verification process.

INSERT INTO aws.pinpoint_email.email_identities (
EmailIdentity,
Tags,
region
)
SELECT
'{{ EmailIdentity }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
dkim_attributes,
identity_type,
verified_for_sending_status
;

REPLACE examples

Used to enable or disable DKIM authentication for an email identity.

REPLACE aws.pinpoint_email.email_identities
SET
SigningEnabled = {{ SigningEnabled }}
WHERE
email_identity = '{{ email_identity }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes an email identity that you previously verified for use with Amazon Pinpoint. An identity can be either an email address or a domain name.

DELETE FROM aws.pinpoint_email.email_identities
WHERE email_identity = '{{ email_identity }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

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).

EXEC aws.pinpoint_email.email_identities.put_email_identity_feedback_attributes
@email_identity='{{ email_identity }}' --required,
@region='{{ region }}' --required
@@json=
'{
"EmailForwardingEnabled": {{ EmailForwardingEnabled }}
}'
;