Class CfnMailManagerTrafficPolicyProps
Properties for defining a CfnMailManagerTrafficPolicy
.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnMailManagerTrafficPolicyProps : ICfnMailManagerTrafficPolicyProps
Syntax (vb)
Public Class CfnMailManagerTrafficPolicyProps Implements ICfnMailManagerTrafficPolicyProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var cfnMailManagerTrafficPolicyProps = new CfnMailManagerTrafficPolicyProps {
DefaultAction = "defaultAction",
PolicyStatements = new [] { new PolicyStatementProperty {
Action = "action",
Conditions = new [] { new PolicyConditionProperty {
BooleanExpression = new IngressBooleanExpressionProperty {
Evaluate = new IngressBooleanToEvaluateProperty {
Analysis = new IngressAnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
IsInAddressList = new IngressIsInAddressListProperty {
AddressLists = new [] { "addressLists" },
Attribute = "attribute"
}
},
Operator = "operator"
},
IpExpression = new IngressIpv4ExpressionProperty {
Evaluate = new IngressIpToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
Ipv6Expression = new IngressIpv6ExpressionProperty {
Evaluate = new IngressIpv6ToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
StringExpression = new IngressStringExpressionProperty {
Evaluate = new IngressStringToEvaluateProperty {
Analysis = new IngressAnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
TlsExpression = new IngressTlsProtocolExpressionProperty {
Evaluate = new IngressTlsProtocolToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Value = "value"
}
} }
} },
// the properties below are optional
MaxMessageSizeBytes = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficPolicyName = "trafficPolicyName"
};
Synopsis
Constructors
CfnMailManagerTrafficPolicyProps() | Properties for defining a |
Properties
DefaultAction | 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. |
MaxMessageSizeBytes | The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked. |
PolicyStatements | Conditional statements for filtering email traffic. |
Tags | The tags used to organize, track, or control access for the resource. |
TrafficPolicyName | The name of the policy. |
Constructors
CfnMailManagerTrafficPolicyProps()
Properties for defining a CfnMailManagerTrafficPolicy
.
public CfnMailManagerTrafficPolicyProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;
var cfnMailManagerTrafficPolicyProps = new CfnMailManagerTrafficPolicyProps {
DefaultAction = "defaultAction",
PolicyStatements = new [] { new PolicyStatementProperty {
Action = "action",
Conditions = new [] { new PolicyConditionProperty {
BooleanExpression = new IngressBooleanExpressionProperty {
Evaluate = new IngressBooleanToEvaluateProperty {
Analysis = new IngressAnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
IsInAddressList = new IngressIsInAddressListProperty {
AddressLists = new [] { "addressLists" },
Attribute = "attribute"
}
},
Operator = "operator"
},
IpExpression = new IngressIpv4ExpressionProperty {
Evaluate = new IngressIpToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
Ipv6Expression = new IngressIpv6ExpressionProperty {
Evaluate = new IngressIpv6ToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
StringExpression = new IngressStringExpressionProperty {
Evaluate = new IngressStringToEvaluateProperty {
Analysis = new IngressAnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
TlsExpression = new IngressTlsProtocolExpressionProperty {
Evaluate = new IngressTlsProtocolToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Value = "value"
}
} }
} },
// the properties below are optional
MaxMessageSizeBytes = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TrafficPolicyName = "trafficPolicyName"
};
Properties
DefaultAction
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.
public string DefaultAction { get; set; }
Property Value
Remarks
MaxMessageSizeBytes
The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.
public double? MaxMessageSizeBytes { get; set; }
Property Value
Remarks
PolicyStatements
Conditional statements for filtering email traffic.
public object PolicyStatements { get; set; }
Property Value
Remarks
Tags
The tags used to organize, track, or control access for the resource.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
TrafficPolicyName
The name of the policy.
public string? TrafficPolicyName { get; set; }
Property Value
Remarks
The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.