Skip to content
v2.278.0

RuleStringExpressionProperty Struct ​

A string expression is evaluated against strings or substrings of the email.

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 ruleStringExpressionProperty: ses.CfnMailManagerRuleSet.RuleStringExpressionProperty = {
  evaluate: {
    analysis: {
      analyzer: 'analyzer',
      resultField: 'resultField',
    },
    attribute: 'attribute',
    clientCertificateAttribute: 'clientCertificateAttribute',
    mimeHeaderAttribute: 'mimeHeaderAttribute',
  },
  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_string_expression_property = ses.CfnMailManagerRuleSet.RuleStringExpressionProperty(
    evaluate=ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty(
        analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
            analyzer="analyzer",
            result_field="resultField"
        ),
        attribute="attribute",
        client_certificate_attribute="clientCertificateAttribute",
        mime_header_attribute="mimeHeaderAttribute"
    ),
    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.*;

RuleStringExpressionProperty ruleStringExpressionProperty = RuleStringExpressionProperty.builder()
        .evaluate(RuleStringToEvaluateProperty.builder()
                .analysis(AnalysisProperty.builder()
                        .analyzer("analyzer")
                        .resultField("resultField")
                        .build())
                .attribute("attribute")
                .clientCertificateAttribute("clientCertificateAttribute")
                .mimeHeaderAttribute("mimeHeaderAttribute")
                .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 ruleStringExpressionProperty = new RuleStringExpressionProperty {
    Evaluate = new RuleStringToEvaluateProperty {
        Analysis = new AnalysisProperty {
            Analyzer = "analyzer",
            ResultField = "resultField"
        },
        Attribute = "attribute",
        ClientCertificateAttribute = "clientCertificateAttribute",
        MimeHeaderAttribute = "mimeHeaderAttribute"
    },
    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"

ruleStringExpressionProperty := &RuleStringExpressionProperty{
	Evaluate: &RuleStringToEvaluateProperty{
		Analysis: &AnalysisProperty{
			Analyzer: jsii.String("analyzer"),
			ResultField: jsii.String("resultField"),
		},
		Attribute: jsii.String("attribute"),
		ClientCertificateAttribute: jsii.String("clientCertificateAttribute"),
		MimeHeaderAttribute: jsii.String("mimeHeaderAttribute"),
	},
	Operator: jsii.String("operator"),
	Values: []*string{
		jsii.String("values"),
	},
}

Properties ​

The string to evaluate in a string condition expression.
operatorstringoperatorstroperatorStringOperatorstringOperator*string required #
The matching operator for a string condition expression.
valuesstring[]valuestyping.List[str]valuesList<String>Valuesstring[]Values*[]*string required #
The string(s) to be evaluated in a string condition expression.
notes

For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.