PolicyConditionProperty Struct
The email traffic filtering conditions which are contained in a traffic policy resource.
This data type is a UNION, so only one of the following members can be specified when used or returned.
| Source | |
|---|---|
| Type last changed |
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 policyConditionProperty: ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty = {
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',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses
policy_condition_property = ses.CfnMailManagerTrafficPolicy.PolicyConditionProperty(
boolean_expression=ses.CfnMailManagerTrafficPolicy.IngressBooleanExpressionProperty(
evaluate=ses.CfnMailManagerTrafficPolicy.IngressBooleanToEvaluateProperty(
analysis=ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
is_in_address_list=ses.CfnMailManagerTrafficPolicy.IngressIsInAddressListProperty(
address_lists=["addressLists"],
attribute="attribute"
)
),
operator="operator"
),
ip_expression=ses.CfnMailManagerTrafficPolicy.IngressIpv4ExpressionProperty(
evaluate=ses.CfnMailManagerTrafficPolicy.IngressIpToEvaluateProperty(
attribute="attribute"
),
operator="operator",
values=["values"]
),
ipv6_expression=ses.CfnMailManagerTrafficPolicy.IngressIpv6ExpressionProperty(
evaluate=ses.CfnMailManagerTrafficPolicy.IngressIpv6ToEvaluateProperty(
attribute="attribute"
),
operator="operator",
values=["values"]
),
string_expression=ses.CfnMailManagerTrafficPolicy.IngressStringExpressionProperty(
evaluate=ses.CfnMailManagerTrafficPolicy.IngressStringToEvaluateProperty(
analysis=ses.CfnMailManagerTrafficPolicy.IngressAnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
attribute="attribute"
),
operator="operator",
values=["values"]
),
tls_expression=ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolExpressionProperty(
evaluate=ses.CfnMailManagerTrafficPolicy.IngressTlsProtocolToEvaluateProperty(
attribute="attribute"
),
operator="operator",
value="value"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;
PolicyConditionProperty policyConditionProperty = PolicyConditionProperty.builder()
.booleanExpression(IngressBooleanExpressionProperty.builder()
.evaluate(IngressBooleanToEvaluateProperty.builder()
.analysis(IngressAnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.isInAddressList(IngressIsInAddressListProperty.builder()
.addressLists(List.of("addressLists"))
.attribute("attribute")
.build())
.build())
.operator("operator")
.build())
.ipExpression(IngressIpv4ExpressionProperty.builder()
.evaluate(IngressIpToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.ipv6Expression(IngressIpv6ExpressionProperty.builder()
.evaluate(IngressIpv6ToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.stringExpression(IngressStringExpressionProperty.builder()
.evaluate(IngressStringToEvaluateProperty.builder()
.analysis(IngressAnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.tlsExpression(IngressTlsProtocolExpressionProperty.builder()
.evaluate(IngressTlsProtocolToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.value("value")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 policyConditionProperty = 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"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
policyConditionProperty := &PolicyConditionProperty{
BooleanExpression: &IngressBooleanExpressionProperty{
Evaluate: &IngressBooleanToEvaluateProperty{
Analysis: &IngressAnalysisProperty{
Analyzer: jsii.String("analyzer"),
ResultField: jsii.String("resultField"),
},
IsInAddressList: &IngressIsInAddressListProperty{
AddressLists: []*string{
jsii.String("addressLists"),
},
Attribute: jsii.String("attribute"),
},
},
Operator: jsii.String("operator"),
},
IpExpression: &IngressIpv4ExpressionProperty{
Evaluate: &IngressIpToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
Ipv6Expression: &IngressIpv6ExpressionProperty{
Evaluate: &IngressIpv6ToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
StringExpression: &IngressStringExpressionProperty{
Evaluate: &IngressStringToEvaluateProperty{
Analysis: &IngressAnalysisProperty{
Analyzer: jsii.String("analyzer"),
ResultField: jsii.String("resultField"),
},
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
TlsExpression: &IngressTlsProtocolExpressionProperty{
Evaluate: &IngressTlsProtocolToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Value: jsii.String("value"),
},
}
Properties
booleanExpressionoptionalIResolvable | CfnMailManagerTrafficPolicy.boolean_expressionoptionaltyping.Union[IResolvable, IngressBooleanExpressionProperty]booleanExpressionoptionalIResolvableBooleanExpressionoptionalIResolvableBooleanExpressionoptionalinterface{} #This represents a boolean type condition matching on the incoming mail.
It performs the boolean operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
ipExpressionoptionalIResolvable | CfnMailManagerTrafficPolicy.ip_expressionoptionaltyping.Union[IResolvable, IngressIpv4ExpressionProperty]ipExpressionoptionalIResolvableIpExpressionoptionalIResolvableIpExpressionoptionalinterface{} #This represents an IP based condition matching on the incoming mail.
It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
ipv6ExpressionoptionalIResolvable | CfnMailManagerTrafficPolicy.ipv6_expressionoptionaltyping.Union[IResolvable, IngressIpv6ExpressionProperty]ipv6ExpressionoptionalIResolvableIpv6ExpressionoptionalIResolvableIpv6Expressionoptionalinterface{} #This represents an IPv6 based condition matching on the incoming mail.
It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
stringExpressionoptionalIResolvable | CfnMailManagerTrafficPolicy.string_expressionoptionaltyping.Union[IResolvable, IngressStringExpressionProperty]stringExpressionoptionalIResolvableStringExpressionoptionalIResolvableStringExpressionoptionalinterface{} #This represents a string based condition matching on the incoming mail.
It performs the string operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.
tlsExpressionoptionalIResolvable | CfnMailManagerTrafficPolicy.tls_expressionoptionaltyping.Union[IResolvable, IngressTlsProtocolExpressionProperty]tlsExpressionoptionalIResolvableTlsExpressionoptionalIResolvableTlsExpressionoptionalinterface{} #This represents a TLS based condition matching on the incoming mail.
It performs the operation configured in 'Operator' and evaluates the 'Protocol' object against the 'Value'.