mail_manager_archives
Creates, updates, deletes or gets a mail_manager_archive
resource or lists mail_manager_archives
in a region
Overview
Name | mail_manager_archives |
Type | Resource |
Description | Definition of AWS::SES::MailManagerArchive Resource Type |
Id | aws.ses.mail_manager_archives |
Fields
Name | Datatype | Description |
---|---|---|
archive_arn | string | |
archive_id | string | |
archive_name | string | |
archive_state | string | |
kms_key_arn | string | |
retention | undefined | |
tags | array | |
region | string | AWS region. |
For more information, see AWS::SES::MailManagerArchive
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ses.mail_manager_archives (
ArchiveName,
KmsKeyArn,
Retention,
Tags,
region
)
SELECT
'{{ ArchiveName }}',
'{{ KmsKeyArn }}',
'{{ Retention }}',
'{{ Tags }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ses.mail_manager_archives (
ArchiveName,
KmsKeyArn,
Retention,
Tags,
region
)
SELECT
'{{ ArchiveName }}',
'{{ KmsKeyArn }}',
'{{ Retention }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: mail_manager_archive
props:
- name: ArchiveName
value: '{{ ArchiveName }}'
- name: KmsKeyArn
value: '{{ KmsKeyArn }}'
- name: Retention
value: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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