email_identities
Creates, updates, deletes or gets an email_identity resource or lists email_identities in a region
Overview
| Name | email_identities |
| Type | Resource |
| Description | Resource Type definition for AWS::SES::EmailIdentity |
| Id | awscc.ses.email_identities |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
email_identity | string | The email address or domain to verify. |
configuration_set_attributes | object | Used to associate a configuration set with an email identity. |
dkim_signing_attributes | object | 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. |
dkim_attributes | object | Used to enable or disable DKIM authentication for an email identity. |
mail_from_attributes | object | Used to enable or disable the custom Mail-From domain configuration for an email identity. |
feedback_attributes | object | Used to enable or disable feedback forwarding for an identity. |
dkim_dns_token_name1 | string | |
dkim_dns_token_name2 | string | |
dkim_dns_token_name3 | string | |
dkim_dns_token_value1 | string | |
dkim_dns_token_value2 | string | |
dkim_dns_token_value3 | string | |
tags | array | The tags (keys and values) associated with the email identity. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
email_identity | string | The email address or domain to verify. |
region | string | AWS region. |
For more information, see AWS::SES::EmailIdentity.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | email_identities | INSERT | EmailIdentity, region |
delete_resource | email_identities | DELETE | Identifier, region |
update_resource | email_identities | UPDATE | Identifier, PatchDocument, region |
list_resources | email_identities_list_only | SELECT | region |
get_resource | email_identities | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual email_identity.
SELECT
region,
email_identity,
configuration_set_attributes,
dkim_signing_attributes,
dkim_attributes,
mail_from_attributes,
feedback_attributes,
dkim_dns_token_name1,
dkim_dns_token_name2,
dkim_dns_token_name3,
dkim_dns_token_value1,
dkim_dns_token_value2,
dkim_dns_token_value3,
tags
FROM awscc.ses.email_identities
WHERE
region = 'us-east-1' AND
Identifier = '{{ email_identity }}';
Lists all email_identities in a region.
SELECT
region,
email_identity
FROM awscc.ses.email_identities_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new email_identity resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ses.email_identities (
EmailIdentity,
region
)
SELECT
'{{ email_identity }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ses.email_identities (
EmailIdentity,
ConfigurationSetAttributes,
DkimSigningAttributes,
DkimAttributes,
MailFromAttributes,
FeedbackAttributes,
Tags,
region
)
SELECT
'{{ email_identity }}',
'{{ configuration_set_attributes }}',
'{{ dkim_signing_attributes }}',
'{{ dkim_attributes }}',
'{{ mail_from_attributes }}',
'{{ feedback_attributes }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: email_identity
props:
- name: email_identity
value: '{{ email_identity }}'
- name: configuration_set_attributes
value:
configuration_set_name: '{{ configuration_set_name }}'
- name: dkim_signing_attributes
value:
domain_signing_selector: '{{ domain_signing_selector }}'
domain_signing_private_key: '{{ domain_signing_private_key }}'
next_signing_key_length: '{{ next_signing_key_length }}'
- name: dkim_attributes
value:
signing_enabled: '{{ signing_enabled }}'
- name: mail_from_attributes
value:
mail_from_domain: '{{ mail_from_domain }}'
behavior_on_mx_failure: '{{ behavior_on_mx_failure }}'
- name: feedback_attributes
value:
email_forwarding_enabled: '{{ email_forwarding_enabled }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a email_identity resource, using stack-deploy.
/*+ update */
UPDATE awscc.ses.email_identities
SET PatchDocument = string('{{ {
"ConfigurationSetAttributes": configuration_set_attributes,
"DkimSigningAttributes": dkim_signing_attributes,
"DkimAttributes": dkim_attributes,
"MailFromAttributes": mail_from_attributes,
"FeedbackAttributes": feedback_attributes,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ email_identity }}';
DELETE example
/*+ delete */
DELETE FROM awscc.ses.email_identities
WHERE
Identifier = '{{ email_identity }}' AND
region = 'us-east-1';
Permissions
To operate on the email_identities resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
ses:CreateEmailIdentity,
ses:PutEmailIdentityMailFromAttributes,
ses:PutEmailIdentityFeedbackAttributes,
ses:PutEmailIdentityDkimAttributes,
ses:GetEmailIdentity,
ses:TagResource,
ses:UntagResource
ses:GetEmailIdentity
ses:PutEmailIdentityMailFromAttributes,
ses:PutEmailIdentityFeedbackAttributes,
ses:PutEmailIdentityConfigurationSetAttributes,
ses:PutEmailIdentityDkimSigningAttributes,
ses:PutEmailIdentityDkimAttributes,
ses:GetEmailIdentity,
ses:TagResource,
ses:UntagResource
ses:DeleteEmailIdentity
ses:ListEmailIdentities