Class CfnMailManagerRuleSet
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ses.CfnMailManagerRuleSet
- All Implemented Interfaces:
IInspectable,ITaggableV2,IMailManagerRuleSetRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:48.875Z")
@Stability(Stable)
public class CfnMailManagerRuleSet
extends CfnResource
implements IInspectable, IMailManagerRuleSetRef, ITaggableV2
Resource to create a rule set for a Mail Manager ingress endpoint which contains a list of rules that are evaluated sequentially for each email.
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;
CfnMailManagerRuleSet cfnMailManagerRuleSet = CfnMailManagerRuleSet.Builder.create(this, "MyCfnMailManagerRuleSet")
.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 TypeClassDescriptionstatic interfaceThe action to add a header to a message.static interfaceThe result of an analysis can be used in conditions to trigger actions.static interfaceThe action to archive the email by delivering the email to an Amazon SES archive.static final classA fluent builder forCfnMailManagerRuleSet.static interfaceThis action to delivers an email to a mailbox.static interfaceThe action to deliver incoming emails to an Amazon Q Business application for indexing.static interfaceThe action relays the email via SMTP to another specific SMTP server.static interfaceThis action replaces the email envelope recipients with the given list of recipients.static interfaceThe action for a rule to take.static interfaceA boolean expression to be used in a rule condition.static interfaceThe union type representing the allowed types of operands for a boolean condition.static interfaceThe conditional expression used to evaluate an email for determining if a rule action should be taken.static interfaceA DMARC policy expression.static interfaceAn IP address expression matching certain IP addresses within a given range of IP addresses.static interfaceThe IP address to evaluate for this condition.static interfaceThe structure type for a boolean condition that provides the address lists and address list attribute to evaluate.static interfaceA number expression to match numeric conditions with integers from the incoming email.static interfaceThe number to evaluate in a numeric condition expression.static interfaceA rule contains conditions, "unless conditions" and actions.static interfaceA string expression is evaluated against strings or substrings of the email.static interfaceThe string to evaluate in a string condition expression.static interfaceA verdict expression is evaluated against verdicts of the email.static interfaceThe verdict to evaluate in a verdict condition expression.static interfaceWrites the MIME content of the email to an S3 bucket.static interfaceSends the email to the internet using the ses:SendRawEmail API.static interfaceThe action to publish the email content to an Amazon SNS topic.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ses.IMailManagerRuleSetRef
IMailManagerRuleSetRef.Jsii$Default, IMailManagerRuleSetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnMailManagerRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnMailManagerRuleSet(software.amazon.jsii.JsiiObjectRef objRef) CfnMailManagerRuleSet(software.constructs.Construct scope, String id, CfnMailManagerRuleSetProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IMailManagerRuleSetReffromRuleSetId(software.constructs.Construct scope, String id, String ruleSetId) Creates a new IMailManagerRuleSetRef from a ruleSetId.The Amazon Resource Name (ARN) of the rule set resource.The identifier of the rule set.Tag Manager which manages the tags for this resource.A reference to a MailManagerRuleSet resource.getRules()Conditional rules that are evaluated for determining actions on email.A user-friendly name for the rule set.getTags()The tags used to organize, track, or control access for the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidConditional rules that are evaluated for determining actions on email.voidsetRules(IResolvable value) Conditional rules that are evaluated for determining actions on email.voidsetRuleSetName(String value) A user-friendly name for the rule set.voidThe tags used to organize, track, or control access for the resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnMailManagerRuleSet
protected CfnMailManagerRuleSet(software.amazon.jsii.JsiiObjectRef objRef) -
CfnMailManagerRuleSet
protected CfnMailManagerRuleSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnMailManagerRuleSet
@Stability(Stable) public CfnMailManagerRuleSet(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnMailManagerRuleSetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromRuleSetId
@Stability(Stable) @NotNull public static IMailManagerRuleSetRef fromRuleSetId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ruleSetId) Creates a new IMailManagerRuleSetRef from a ruleSetId.- Parameters:
scope- This parameter is required.id- This parameter is required.ruleSetId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrRuleSetArn
The Amazon Resource Name (ARN) of the rule set resource. -
getAttrRuleSetId
The identifier of the rule set. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getMailManagerRuleSetRef
A reference to a MailManagerRuleSet resource.- Specified by:
getMailManagerRuleSetRefin interfaceIMailManagerRuleSetRef
-
getRules
Conditional rules that are evaluated for determining actions on email.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnMailManagerRuleSet.RuleProperty> -
setRules
Conditional rules that are evaluated for determining actions on email. -
setRules
Conditional rules that are evaluated for determining actions on email. -
getRuleSetName
A user-friendly name for the rule set. -
setRuleSetName
A user-friendly name for the rule set. -
getTags
The tags used to organize, track, or control access for the resource. -
setTags
The tags used to organize, track, or control access for the resource.
-