Skip to main content

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

Namemail_manager_traffic_policies
TypeResource
DescriptionDefinition of AWS::SES::MailManagerTrafficPolicy Resource Type
Idaws.ses.mail_manager_traffic_policies

Fields

NameDatatypeDescription
default_actionstring
max_message_size_bytesnumber
policy_statementsarray
tagsarray
traffic_policy_arnstring
traffic_policy_idstring
traffic_policy_namestring
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTDefaultAction, PolicyStatements, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.ses.mail_manager_traffic_policies (
DefaultAction,
PolicyStatements,
region
)
SELECT
'{{ DefaultAction }}',
'{{ PolicyStatements }}',
'{{ region }}';

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