Interface CfnMailManagerRuleSetProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMailManagerRuleSetProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:15.309Z")
@Stability(Stable)
public interface CfnMailManagerRuleSetProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnMailManagerRuleSet.
Example:
// 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.*;
Object drop;
CfnMailManagerRuleSetProps cfnMailManagerRuleSetProps = CfnMailManagerRuleSetProps.builder()
.rules(List.of(RuleProperty.builder()
.actions(List.of(RuleActionProperty.builder()
.addHeader(AddHeaderActionProperty.builder()
.headerName("headerName")
.headerValue("headerValue")
.build())
.archive(ArchiveActionProperty.builder()
.targetArchive("targetArchive")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.deliverToMailbox(DeliverToMailboxActionProperty.builder()
.mailboxArn("mailboxArn")
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.deliverToQBusiness(DeliverToQBusinessActionProperty.builder()
.applicationId("applicationId")
.indexId("indexId")
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.drop(drop)
.publishToSns(SnsActionProperty.builder()
.roleArn("roleArn")
.topicArn("topicArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.encoding("encoding")
.payloadType("payloadType")
.build())
.relay(RelayActionProperty.builder()
.relay("relay")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.mailFrom("mailFrom")
.build())
.replaceRecipient(ReplaceRecipientActionProperty.builder()
.replaceWith(List.of("replaceWith"))
.build())
.send(SendActionProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.build())
.writeToS3(S3ActionProperty.builder()
.roleArn("roleArn")
.s3Bucket("s3Bucket")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.s3Prefix("s3Prefix")
.s3SseKmsKeyId("s3SseKmsKeyId")
.build())
.build()))
// the properties below are optional
.conditions(List.of(RuleConditionProperty.builder()
.booleanExpression(RuleBooleanExpressionProperty.builder()
.evaluate(RuleBooleanToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.isInAddressList(RuleIsInAddressListProperty.builder()
.addressLists(List.of("addressLists"))
.attribute("attribute")
.build())
.build())
.operator("operator")
.build())
.dmarcExpression(RuleDmarcExpressionProperty.builder()
.operator("operator")
.values(List.of("values"))
.build())
.ipExpression(RuleIpExpressionProperty.builder()
.evaluate(RuleIpToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.numberExpression(RuleNumberExpressionProperty.builder()
.evaluate(RuleNumberToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.value(123)
.build())
.stringExpression(RuleStringExpressionProperty.builder()
.evaluate(RuleStringToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.mimeHeaderAttribute("mimeHeaderAttribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.verdictExpression(RuleVerdictExpressionProperty.builder()
.evaluate(RuleVerdictToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.build()))
.name("name")
.unless(List.of(RuleConditionProperty.builder()
.booleanExpression(RuleBooleanExpressionProperty.builder()
.evaluate(RuleBooleanToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.isInAddressList(RuleIsInAddressListProperty.builder()
.addressLists(List.of("addressLists"))
.attribute("attribute")
.build())
.build())
.operator("operator")
.build())
.dmarcExpression(RuleDmarcExpressionProperty.builder()
.operator("operator")
.values(List.of("values"))
.build())
.ipExpression(RuleIpExpressionProperty.builder()
.evaluate(RuleIpToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.numberExpression(RuleNumberExpressionProperty.builder()
.evaluate(RuleNumberToEvaluateProperty.builder()
.attribute("attribute")
.build())
.operator("operator")
.value(123)
.build())
.stringExpression(RuleStringExpressionProperty.builder()
.evaluate(RuleStringToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.mimeHeaderAttribute("mimeHeaderAttribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.verdictExpression(RuleVerdictExpressionProperty.builder()
.evaluate(RuleVerdictToEvaluateProperty.builder()
.analysis(AnalysisProperty.builder()
.analyzer("analyzer")
.resultField("resultField")
.build())
.attribute("attribute")
.build())
.operator("operator")
.values(List.of("values"))
.build())
.build()))
.build()))
// the properties below are optional
.ruleSetName("ruleSetName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMailManagerRuleSetPropsstatic final classAn implementation forCfnMailManagerRuleSetProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRules
Conditional rules that are evaluated for determining actions on email.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMailManagerRuleSet.RuleProperty>- See Also:
-
getRuleSetName
A user-friendly name for the rule set.- See Also:
-
getTags
The tags used to organize, track, or control access for the resource.For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- See Also:
-
builder
- Returns:
- a
CfnMailManagerRuleSetProps.BuilderofCfnMailManagerRuleSetProps
-