mail_manager_rule_sets
Creates, updates, deletes or gets a mail_manager_rule_set
resource or lists mail_manager_rule_sets
in a region
Overview
Name | mail_manager_rule_sets |
Type | Resource |
Description | Definition of AWS::SES::MailManagerRuleSet Resource Type |
Id | aws.ses.mail_manager_rule_sets |
Fields
Name | Datatype | Description |
---|---|---|
rule_set_arn | string | |
rule_set_id | string | |
rule_set_name | string | |
rules | array | |
tags | array | |
region | string | AWS region. |
For more information, see AWS::SES::MailManagerRuleSet
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Rules, 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_rule_sets
in a region.
SELECT
region,
rule_set_arn,
rule_set_id,
rule_set_name,
rules,
tags
FROM aws.ses.mail_manager_rule_sets
WHERE region = 'us-east-1';
Gets all properties from an individual mail_manager_rule_set
.
SELECT
region,
rule_set_arn,
rule_set_id,
rule_set_name,
rules,
tags
FROM aws.ses.mail_manager_rule_sets
WHERE region = 'us-east-1' AND data__Identifier = '<RuleSetId>';
INSERT
example
Use the following StackQL query and manifest file to create a new mail_manager_rule_set
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ses.mail_manager_rule_sets (
Rules,
region
)
SELECT
'{{ Rules }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ses.mail_manager_rule_sets (
RuleSetName,
Rules,
Tags,
region
)
SELECT
'{{ RuleSetName }}',
'{{ Rules }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: mail_manager_rule_set
props:
- name: RuleSetName
value: '{{ RuleSetName }}'
- name: Rules
value:
- Name: '{{ Name }}'
Conditions:
- null
Unless:
- null
Actions:
- null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ses.mail_manager_rule_sets
WHERE data__Identifier = '<RuleSetId>'
AND region = 'us-east-1';
Permissions
To operate on the mail_manager_rule_sets
resource, the following permissions are required:
Create
ses:TagResource,
ses:ListTagsForResource,
ses:GetRuleSet,
ses:CreateRuleSet
Read
ses:ListTagsForResource,
ses:GetRuleSet
Update
ses:TagResource,
ses:UntagResource,
ses:ListTagsForResource,
ses:GetRuleSet,
ses:UpdateRuleSet
Delete
ses:GetRuleSet,
ses:DeleteRuleSet
List
ses:ListRuleSets