# RuleStringExpressionProperty

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

- Source: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `evaluate`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnMailManagerRuleSet.RuleStringToEvaluateProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ses.CfnMailManagerRuleSet.RuleStringToEvaluateProperty.html) (required) — The string to evaluate in a string condition expression.

- `operator`: string (required) — The matching operator for a string condition expression.

- `values`: string[] (required) — The string(s) to be evaluated in a string condition expression.

  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.
