Skip to main content

mail_manager_archives

Creates, updates, deletes or gets a mail_manager_archive resource or lists mail_manager_archives in a region

Overview

Namemail_manager_archives
TypeResource
DescriptionDefinition of AWS::SES::MailManagerArchive Resource Type
Idaws.ses.mail_manager_archives

Fields

NameDatatypeDescription
archive_arnstring
archive_idstring
archive_namestring
archive_statestring
kms_key_arnstring
retentionundefined
tagsarray
regionstringAWS region.

For more information, see AWS::SES::MailManagerArchive.

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 mail_manager_archives in a region.

SELECT
region,
archive_arn,
archive_id,
archive_name,
archive_state,
kms_key_arn,
retention,
tags
FROM aws.ses.mail_manager_archives
WHERE region = 'us-east-1';

Gets all properties from an individual mail_manager_archive.

SELECT
region,
archive_arn,
archive_id,
archive_name,
archive_state,
kms_key_arn,
retention,
tags
FROM aws.ses.mail_manager_archives
WHERE region = 'us-east-1' AND data__Identifier = '<ArchiveId>';

INSERT example

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

/*+ create */
INSERT INTO aws.ses.mail_manager_archives (
ArchiveName,
KmsKeyArn,
Retention,
Tags,
region
)
SELECT
'{{ ArchiveName }}',
'{{ KmsKeyArn }}',
'{{ Retention }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

ses:TagResource,
ses:ListTagsForResource,
ses:GetArchive,
ses:CreateArchive,
kms:DescribeKey,
kms:Decrypt,
kms:GenerateDataKey

Read

ses:ListTagsForResource,
ses:GetArchive

Update

ses:TagResource,
ses:UntagResource,
ses:ListTagsForResource,
ses:GetArchive,
ses:UpdateArchive

Delete

ses:GetArchive,
ses:DeleteArchive

List

ses:ListArchives