mail_manager_traffic_policies
Creates, updates, deletes or gets a mail_manager_traffic_policy
resource or lists mail_manager_traffic_policies
in a region
Overview
Name | mail_manager_traffic_policies |
Type | Resource |
Description | Definition of AWS::SES::MailManagerTrafficPolicy Resource Type |
Id | aws.ses.mail_manager_traffic_policies |
Fields
Name | Datatype | Description |
---|---|---|
default_action | string | |
max_message_size_bytes | number | |
policy_statements | array | |
tags | array | |
traffic_policy_arn | string | |
traffic_policy_id | string | |
traffic_policy_name | string | |
region | string | AWS region. |
For more information, see AWS::SES::MailManagerTrafficPolicy
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | DefaultAction, PolicyStatements, 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_traffic_policies
in a region.
SELECT
region,
default_action,
max_message_size_bytes,
policy_statements,
tags,
traffic_policy_arn,
traffic_policy_id,
traffic_policy_name
FROM aws.ses.mail_manager_traffic_policies
WHERE region = 'us-east-1';
Gets all properties from an individual mail_manager_traffic_policy
.
SELECT
region,
default_action,
max_message_size_bytes,
policy_statements,
tags,
traffic_policy_arn,
traffic_policy_id,
traffic_policy_name
FROM aws.ses.mail_manager_traffic_policies
WHERE region = 'us-east-1' AND data__Identifier = '<TrafficPolicyId>';
INSERT
example
Use the following StackQL query and manifest file to create a new mail_manager_traffic_policy
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ses.mail_manager_traffic_policies (
DefaultAction,
PolicyStatements,
region
)
SELECT
'{{ DefaultAction }}',
'{{ PolicyStatements }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ses.mail_manager_traffic_policies (
DefaultAction,
MaxMessageSizeBytes,
PolicyStatements,
Tags,
TrafficPolicyName,
region
)
SELECT
'{{ DefaultAction }}',
'{{ MaxMessageSizeBytes }}',
'{{ PolicyStatements }}',
'{{ Tags }}',
'{{ TrafficPolicyName }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: mail_manager_traffic_policy
props:
- name: DefaultAction
value: '{{ DefaultAction }}'
- name: MaxMessageSizeBytes
value: null
- name: PolicyStatements
value:
- Conditions:
- null
Action: null
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: TrafficPolicyName
value: '{{ TrafficPolicyName }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ses.mail_manager_traffic_policies
WHERE data__Identifier = '<TrafficPolicyId>'
AND region = 'us-east-1';
Permissions
To operate on the mail_manager_traffic_policies
resource, the following permissions are required:
Create
ses:TagResource,
ses:ListTagsForResource,
ses:GetTrafficPolicy,
ses:CreateTrafficPolicy
Read
ses:ListTagsForResource,
ses:GetTrafficPolicy
Update
ses:TagResource,
ses:UntagResource,
ses:ListTagsForResource,
ses:GetTrafficPolicy,
ses:UpdateTrafficPolicy
Delete
ses:GetTrafficPolicy,
ses:DeleteTrafficPolicy
List
ses:ListTrafficPolicies