RuleVerdictExpressionProperty Struct
A verdict expression is evaluated against verdicts of the email.
| 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 ruleVerdictExpressionProperty: ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty = {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
};
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
rule_verdict_expression_property = ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty(
analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
attribute="attribute"
),
operator="operator",
values=["values"]
)
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.*;
RuleVerdictExpressionProperty ruleVerdictExpressionProperty = RuleVerdictExpressionProperty.builder()
.evaluate(RuleVerdictToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.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 ruleVerdictExpressionProperty = new RuleVerdictExpressionProperty {
Evaluate = new RuleVerdictToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
};
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"
ruleVerdictExpressionProperty := &RuleVerdictExpressionProperty{
Evaluate: &RuleVerdictToEvaluateProperty{
Analysis: &AnalysisProperty{
Analyzer: jsii.String("analyzer"),
ResultField: jsii.String("resultField"),
},
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
}
Properties
evaluateIResolvable | CfnMailManagerRuleSet.evaluatetyping.Union[IResolvable, RuleVerdictToEvaluateProperty]evaluateIResolvableEvaluateIResolvableEvaluateinterface{} required #The verdict to evaluate in a verdict condition expression.
The matching operator for a verdict condition expression.
The values to match with the email's verdict using the given operator.
notes
For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.