Skip to main content

email_addresses

Creates, updates, deletes or gets an email_address resource or lists email_addresses in a region

Overview

Nameemail_addresses
TypeResource
DescriptionResource Type definition for AWS::Connect::EmailAddress
Idaws.connect.email_addresses

Fields

NameDatatypeDescription
instance_arnstringThe identifier of the Amazon Connect instance.
email_address_arnstringThe identifier of the email address.
descriptionstringA description for the email address.
email_addressstringEmail address to be created for this instance
display_namestringThe display name for the email address.
tagsarrayOne or more tags.
regionstringAWS region.

For more information, see AWS::Connect::EmailAddress.

Methods

NameAccessible byRequired Params
create_resourceINSERTInstanceArn, EmailAddress, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all email_addresses in a region.

SELECT
region,
instance_arn,
email_address_arn,
description,
email_address,
display_name,
tags
FROM aws.connect.email_addresses
WHERE region = 'us-east-1';

Gets all properties from an individual email_address.

SELECT
region,
instance_arn,
email_address_arn,
description,
email_address,
display_name,
tags
FROM aws.connect.email_addresses
WHERE region = 'us-east-1' AND data__Identifier = '<EmailAddressArn>';

INSERT example

Use the following StackQL query and manifest file to create a new email_address resource, using stack-deploy.

/*+ create */
INSERT INTO aws.connect.email_addresses (
InstanceArn,
EmailAddress,
region
)
SELECT
'{{ InstanceArn }}',
'{{ EmailAddress }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.connect.email_addresses
WHERE data__Identifier = '<EmailAddressArn>'
AND region = 'us-east-1';

Permissions

To operate on the email_addresses resource, the following permissions are required:

Create

connect:CreateEmailAddress,
connect:TagResource,
connect:ListIntegrationAssociations,
ses:GetEmailIdentity,
ses:DescribeReceiptRule,
ses:UpdateReceiptRule,
iam:PassRole

Read

connect:DescribeEmailAddress

Update

connect:UpdateEmailAddressMetadata,
connect:TagResource,
connect:UntagResource

Delete

connect:DeleteEmailAddress,
connect:UntagResource,
iam:PassRole,
ses:DescribeReceiptRule,
ses:UpdateReceiptRule

List

connect:DescribeEmailAddress,
connect:SearchEmailAddresses