CfnMailManagerTrafficPolicyProps Struct
Properties for defining a CfnMailManagerTrafficPolicy.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const cfnMailManagerTrafficPolicyProps: ses.CfnMailManagerTrafficPolicyProps = {
defaultAction: 'defaultAction',
policyStatements: [{
action: 'action',
conditions: [{
booleanExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
isInAddressList: {
addressLists: ['addressLists'],
attribute: 'attribute',
},
},
operator: 'operator',
},
ipExpression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
ipv6Expression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
stringExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
tlsExpression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
value: 'value',
},
}],
}],
// the properties below are optional
maxMessageSizeBytes: 123,
tags: [{
key: 'key',
value: 'value',
}],
trafficPolicyName: 'trafficPolicyName',
};
Properties
defaultActionstringdefault_actionstrdefaultActionStringDefaultActionstringDefaultAction*stringrequired#Default action instructs the traffic policy to either Allow or Deny (block) messages that fall outside of (or not addressed by) the conditions of your policy statements.
maxMessageSizeBytesoptionalnumbermax_message_size_bytesoptionalint | floatmaxMessageSizeBytesoptionalNumberMaxMessageSizeBytesoptionaldoubleMaxMessageSizeBytesoptional*float64#The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
policyStatementsIResolvable | IResolvable | CfnMailManagerTrafficPolicy.PolicyStatementProperty[]policy_statementstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PolicyStatementProperty]]]policyStatementsIResolvablePolicyStatementsIResolvablePolicyStatementsinterface{}required#Conditional statements for filtering email traffic.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#The tags used to organize, track, or control access for the resource.
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
trafficPolicyNameoptionalstringtraffic_policy_nameoptionalstrtrafficPolicyNameoptionalStringTrafficPolicyNameoptionalstringTrafficPolicyNameoptional*string#The name of the policy.
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.