Skip to main content

contact_lists

Creates, updates, deletes or gets a contact_list resource or lists contact_lists in a region

Overview

Namecontact_lists
TypeResource
DescriptionResource schema for AWS::SES::ContactList.
Idaws.ses.contact_lists

Fields

NameDatatypeDescription
contact_list_namestringThe name of the contact list.
descriptionstringThe description of the contact list.
topicsarrayThe topics associated with the contact list.
tagsarrayThe tags (keys and values) associated with the contact list.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all contact_lists in a region.

SELECT
region,
contact_list_name,
description,
topics,
tags
FROM aws.ses.contact_lists
WHERE region = 'us-east-1';

Gets all properties from an individual contact_list.

SELECT
region,
contact_list_name,
description,
topics,
tags
FROM aws.ses.contact_lists
WHERE region = 'us-east-1' AND data__Identifier = '<ContactListName>';

INSERT example

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

/*+ create */
INSERT INTO aws.ses.contact_lists (
ContactListName,
Description,
Topics,
Tags,
region
)
SELECT
'{{ ContactListName }}',
'{{ Description }}',
'{{ Topics }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ses.contact_lists
WHERE data__Identifier = '<ContactListName>'
AND region = 'us-east-1';

Permissions

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

Create

ses:CreateContactList

Read

ses:GetContactList

Update

ses:UpdateContactList,
ses:UntagResource,
ses:TagResource

Delete

ses:DeleteContactList

List

ses:ListContactLists