Skip to main content

email_identity_policies

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

Overview

Nameemail_identity_policies
TypeResource
Idaws.sesv2.email_identity_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policiesobjectA map of policy names to policies.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_email_identity_policiesselectemail_identity, regionReturns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time. This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
create_email_identity_policyinsertemail_identity, policy_name, region, PolicyCreates the specified sending authorization policy for the given identity (an email address or a domain). This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
update_email_identity_policyupdateemail_identity, policy_name, region, PolicyUpdates the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist. This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
delete_email_identity_policydeleteemail_identity, policy_name, regionDeletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist. This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

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 email identity.
policy_namestringThe name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time. This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

SELECT
policies
FROM aws.sesv2.email_identity_policies
WHERE email_identity = '{{ email_identity }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates the specified sending authorization policy for the given identity (an email address or a domain). This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

INSERT INTO aws.sesv2.email_identity_policies (
Policy,
email_identity,
policy_name,
region
)
SELECT
'{{ Policy }}' /* required */,
'{{ email_identity }}',
'{{ policy_name }}',
'{{ region }}'
;

UPDATE examples

Updates the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist. This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

UPDATE aws.sesv2.email_identity_policies
SET
Policy = '{{ Policy }}'
WHERE
email_identity = '{{ email_identity }}' --required
AND policy_name = '{{ policy_name }}' --required
AND region = '{{ region }}' --required
AND Policy = '{{ Policy }}' --required;

DELETE examples

Deletes the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist. This API is for the identity owner only. If you have not verified the identity, this API will return an error. Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.

DELETE FROM aws.sesv2.email_identity_policies
WHERE email_identity = '{{ email_identity }}' --required
AND policy_name = '{{ policy_name }}' --required
AND region = '{{ region }}' --required
;