RuleProperty Struct
A rule contains conditions, "unless conditions" and actions.
For each envelope recipient of an email, if all conditions match and none of the "unless conditions" match, then all of the actions are executed sequentially. If no conditions are provided, the rule always applies and the actions are implicitly executed. If only "unless conditions" are provided, the rule applies if the email does not match the evaluation of the "unless conditions".
| Source | |
|---|---|
| Type last changed |
Example
// 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';
declare const drop: any;
const ruleProperty: ses.CfnMailManagerRuleSet.RuleProperty = {
actions: [{
addHeader: {
headerName: 'headerName',
headerValue: 'headerValue',
},
archive: {
targetArchive: 'targetArchive',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
bounce: {
diagnosticMessage: 'diagnosticMessage',
roleArn: 'roleArn',
sender: 'sender',
smtpReplyCode: 'smtpReplyCode',
statusCode: 'statusCode',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
message: 'message',
},
deliverToMailbox: {
mailboxArn: 'mailboxArn',
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
deliverToQBusiness: {
applicationId: 'applicationId',
indexId: 'indexId',
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
drop: drop,
invokeLambda: {
functionArn: 'functionArn',
invocationType: 'invocationType',
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
retryTimeMinutes: 123,
},
publishToSns: {
roleArn: 'roleArn',
topicArn: 'topicArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
encoding: 'encoding',
payloadType: 'payloadType',
},
relay: {
relay: 'relay',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
mailFrom: 'mailFrom',
},
replaceRecipient: {
replaceWith: ['replaceWith'],
},
send: {
roleArn: 'roleArn',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
writeToS3: {
roleArn: 'roleArn',
s3Bucket: 's3Bucket',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
s3Prefix: 's3Prefix',
s3SseKmsKeyId: 's3SseKmsKeyId',
},
}],
// the properties below are optional
conditions: [{
booleanExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
isInAddressList: {
addressLists: ['addressLists'],
attribute: 'attribute',
},
},
operator: 'operator',
},
dmarcExpression: {
operator: 'operator',
values: ['values'],
},
ipExpression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
numberExpression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
value: 123,
},
stringExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
clientCertificateAttribute: 'clientCertificateAttribute',
mimeHeaderAttribute: 'mimeHeaderAttribute',
},
operator: 'operator',
values: ['values'],
},
verdictExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
}],
name: 'name',
unless: [{
booleanExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
isInAddressList: {
addressLists: ['addressLists'],
attribute: 'attribute',
},
},
operator: 'operator',
},
dmarcExpression: {
operator: 'operator',
values: ['values'],
},
ipExpression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
numberExpression: {
evaluate: {
attribute: 'attribute',
},
operator: 'operator',
value: 123,
},
stringExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
clientCertificateAttribute: 'clientCertificateAttribute',
mimeHeaderAttribute: 'mimeHeaderAttribute',
},
operator: 'operator',
values: ['values'],
},
verdictExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
}],
};
# 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
# drop: Any
rule_property = ses.CfnMailManagerRuleSet.RuleProperty(
actions=[ses.CfnMailManagerRuleSet.RuleActionProperty(
add_header=ses.CfnMailManagerRuleSet.AddHeaderActionProperty(
header_name="headerName",
header_value="headerValue"
),
archive=ses.CfnMailManagerRuleSet.ArchiveActionProperty(
target_archive="targetArchive",
# the properties below are optional
action_failure_policy="actionFailurePolicy"
),
bounce=ses.CfnMailManagerRuleSet.BounceActionProperty(
diagnostic_message="diagnosticMessage",
role_arn="roleArn",
sender="sender",
smtp_reply_code="smtpReplyCode",
status_code="statusCode",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
message="message"
),
deliver_to_mailbox=ses.CfnMailManagerRuleSet.DeliverToMailboxActionProperty(
mailbox_arn="mailboxArn",
role_arn="roleArn",
# the properties below are optional
action_failure_policy="actionFailurePolicy"
),
deliver_to_q_business=ses.CfnMailManagerRuleSet.DeliverToQBusinessActionProperty(
application_id="applicationId",
index_id="indexId",
role_arn="roleArn",
# the properties below are optional
action_failure_policy="actionFailurePolicy"
),
drop=drop,
invoke_lambda=ses.CfnMailManagerRuleSet.InvokeLambdaActionProperty(
function_arn="functionArn",
invocation_type="invocationType",
role_arn="roleArn",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
retry_time_minutes=123
),
publish_to_sns=ses.CfnMailManagerRuleSet.SnsActionProperty(
role_arn="roleArn",
topic_arn="topicArn",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
encoding="encoding",
payload_type="payloadType"
),
relay=ses.CfnMailManagerRuleSet.RelayActionProperty(
relay="relay",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
mail_from="mailFrom"
),
replace_recipient=ses.CfnMailManagerRuleSet.ReplaceRecipientActionProperty(
replace_with=["replaceWith"]
),
send=ses.CfnMailManagerRuleSet.SendActionProperty(
role_arn="roleArn",
# the properties below are optional
action_failure_policy="actionFailurePolicy"
),
write_to_s3=ses.CfnMailManagerRuleSet.S3ActionProperty(
role_arn="roleArn",
s3_bucket="s3Bucket",
# the properties below are optional
action_failure_policy="actionFailurePolicy",
s3_prefix="s3Prefix",
s3_sse_kms_key_id="s3SseKmsKeyId"
)
)],
# the properties below are optional
conditions=[ses.CfnMailManagerRuleSet.RuleConditionProperty(
boolean_expression=ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty(
analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
attribute="attribute",
is_in_address_list=ses.CfnMailManagerRuleSet.RuleIsInAddressListProperty(
address_lists=["addressLists"],
attribute="attribute"
)
),
operator="operator"
),
dmarc_expression=ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty(
operator="operator",
values=["values"]
),
ip_expression=ses.CfnMailManagerRuleSet.RuleIpExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty(
attribute="attribute"
),
operator="operator",
values=["values"]
),
number_expression=ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty(
attribute="attribute"
),
operator="operator",
value=123
),
string_expression=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"]
),
verdict_expression=ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty(
analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
attribute="attribute"
),
operator="operator",
values=["values"]
)
)],
name="name",
unless=[ses.CfnMailManagerRuleSet.RuleConditionProperty(
boolean_expression=ses.CfnMailManagerRuleSet.RuleBooleanExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleBooleanToEvaluateProperty(
analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
attribute="attribute",
is_in_address_list=ses.CfnMailManagerRuleSet.RuleIsInAddressListProperty(
address_lists=["addressLists"],
attribute="attribute"
)
),
operator="operator"
),
dmarc_expression=ses.CfnMailManagerRuleSet.RuleDmarcExpressionProperty(
operator="operator",
values=["values"]
),
ip_expression=ses.CfnMailManagerRuleSet.RuleIpExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleIpToEvaluateProperty(
attribute="attribute"
),
operator="operator",
values=["values"]
),
number_expression=ses.CfnMailManagerRuleSet.RuleNumberExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleNumberToEvaluateProperty(
attribute="attribute"
),
operator="operator",
value=123
),
string_expression=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"]
),
verdict_expression=ses.CfnMailManagerRuleSet.RuleVerdictExpressionProperty(
evaluate=ses.CfnMailManagerRuleSet.RuleVerdictToEvaluateProperty(
analysis=ses.CfnMailManagerRuleSet.AnalysisProperty(
analyzer="analyzer",
result_field="resultField"
),
attribute="attribute"
),
operator="operator",
values=["values"]
)
)]
)
// 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;
RuleProperty ruleProperty = 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())
.bounce(BounceActionProperty.builder()
.diagnosticMessage("diagnosticMessage")
.roleArn("roleArn")
.sender("sender")
.smtpReplyCode("smtpReplyCode")
.statusCode("statusCode")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.message("message")
.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)
.invokeLambda(InvokeLambdaActionProperty.builder()
.functionArn("functionArn")
.invocationType("invocationType")
.roleArn("roleArn")
// the properties below are optional
.actionFailurePolicy("actionFailurePolicy")
.retryTimeMinutes(123)
.build())
.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")
.clientCertificateAttribute("clientCertificateAttribute")
.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")
.clientCertificateAttribute("clientCertificateAttribute")
.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();
// 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 drop;
var ruleProperty = new RuleProperty {
Actions = new [] { new RuleActionProperty {
AddHeader = new AddHeaderActionProperty {
HeaderName = "headerName",
HeaderValue = "headerValue"
},
Archive = new ArchiveActionProperty {
TargetArchive = "targetArchive",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy"
},
Bounce = new BounceActionProperty {
DiagnosticMessage = "diagnosticMessage",
RoleArn = "roleArn",
Sender = "sender",
SmtpReplyCode = "smtpReplyCode",
StatusCode = "statusCode",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
Message = "message"
},
DeliverToMailbox = new DeliverToMailboxActionProperty {
MailboxArn = "mailboxArn",
RoleArn = "roleArn",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy"
},
DeliverToQBusiness = new DeliverToQBusinessActionProperty {
ApplicationId = "applicationId",
IndexId = "indexId",
RoleArn = "roleArn",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy"
},
Drop = drop,
InvokeLambda = new InvokeLambdaActionProperty {
FunctionArn = "functionArn",
InvocationType = "invocationType",
RoleArn = "roleArn",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
RetryTimeMinutes = 123
},
PublishToSns = new SnsActionProperty {
RoleArn = "roleArn",
TopicArn = "topicArn",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
Encoding = "encoding",
PayloadType = "payloadType"
},
Relay = new RelayActionProperty {
Relay = "relay",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
MailFrom = "mailFrom"
},
ReplaceRecipient = new ReplaceRecipientActionProperty {
ReplaceWith = new [] { "replaceWith" }
},
Send = new SendActionProperty {
RoleArn = "roleArn",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy"
},
WriteToS3 = new S3ActionProperty {
RoleArn = "roleArn",
S3Bucket = "s3Bucket",
// the properties below are optional
ActionFailurePolicy = "actionFailurePolicy",
S3Prefix = "s3Prefix",
S3SseKmsKeyId = "s3SseKmsKeyId"
}
} },
// the properties below are optional
Conditions = new [] { new RuleConditionProperty {
BooleanExpression = new RuleBooleanExpressionProperty {
Evaluate = new RuleBooleanToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute",
IsInAddressList = new RuleIsInAddressListProperty {
AddressLists = new [] { "addressLists" },
Attribute = "attribute"
}
},
Operator = "operator"
},
DmarcExpression = new RuleDmarcExpressionProperty {
Operator = "operator",
Values = new [] { "values" }
},
IpExpression = new RuleIpExpressionProperty {
Evaluate = new RuleIpToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
NumberExpression = new RuleNumberExpressionProperty {
Evaluate = new RuleNumberToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Value = 123
},
StringExpression = new RuleStringExpressionProperty {
Evaluate = new RuleStringToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute",
ClientCertificateAttribute = "clientCertificateAttribute",
MimeHeaderAttribute = "mimeHeaderAttribute"
},
Operator = "operator",
Values = new [] { "values" }
},
VerdictExpression = new RuleVerdictExpressionProperty {
Evaluate = new RuleVerdictToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
}
} },
Name = "name",
Unless = new [] { new RuleConditionProperty {
BooleanExpression = new RuleBooleanExpressionProperty {
Evaluate = new RuleBooleanToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute",
IsInAddressList = new RuleIsInAddressListProperty {
AddressLists = new [] { "addressLists" },
Attribute = "attribute"
}
},
Operator = "operator"
},
DmarcExpression = new RuleDmarcExpressionProperty {
Operator = "operator",
Values = new [] { "values" }
},
IpExpression = new RuleIpExpressionProperty {
Evaluate = new RuleIpToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
},
NumberExpression = new RuleNumberExpressionProperty {
Evaluate = new RuleNumberToEvaluateProperty {
Attribute = "attribute"
},
Operator = "operator",
Value = 123
},
StringExpression = new RuleStringExpressionProperty {
Evaluate = new RuleStringToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute",
ClientCertificateAttribute = "clientCertificateAttribute",
MimeHeaderAttribute = "mimeHeaderAttribute"
},
Operator = "operator",
Values = new [] { "values" }
},
VerdictExpression = new RuleVerdictExpressionProperty {
Evaluate = new RuleVerdictToEvaluateProperty {
Analysis = new AnalysisProperty {
Analyzer = "analyzer",
ResultField = "resultField"
},
Attribute = "attribute"
},
Operator = "operator",
Values = new [] { "values" }
}
} }
};
// 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"
var drop interface{}
ruleProperty := &RuleProperty{
Actions: []interface{}{
&RuleActionProperty{
AddHeader: &AddHeaderActionProperty{
HeaderName: jsii.String("headerName"),
HeaderValue: jsii.String("headerValue"),
},
Archive: &ArchiveActionProperty{
TargetArchive: jsii.String("targetArchive"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
},
Bounce: &BounceActionProperty{
DiagnosticMessage: jsii.String("diagnosticMessage"),
RoleArn: jsii.String("roleArn"),
Sender: jsii.String("sender"),
SmtpReplyCode: jsii.String("smtpReplyCode"),
StatusCode: jsii.String("statusCode"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
Message: jsii.String("message"),
},
DeliverToMailbox: &DeliverToMailboxActionProperty{
MailboxArn: jsii.String("mailboxArn"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
},
DeliverToQBusiness: &DeliverToQBusinessActionProperty{
ApplicationId: jsii.String("applicationId"),
IndexId: jsii.String("indexId"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
},
Drop: drop,
InvokeLambda: &InvokeLambdaActionProperty{
FunctionArn: jsii.String("functionArn"),
InvocationType: jsii.String("invocationType"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
RetryTimeMinutes: jsii.Number(123),
},
PublishToSns: &SnsActionProperty{
RoleArn: jsii.String("roleArn"),
TopicArn: jsii.String("topicArn"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
Encoding: jsii.String("encoding"),
PayloadType: jsii.String("payloadType"),
},
Relay: &RelayActionProperty{
Relay: jsii.String("relay"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
MailFrom: jsii.String("mailFrom"),
},
ReplaceRecipient: &ReplaceRecipientActionProperty{
ReplaceWith: []*string{
jsii.String("replaceWith"),
},
},
Send: &SendActionProperty{
RoleArn: jsii.String("roleArn"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
},
WriteToS3: &S3ActionProperty{
RoleArn: jsii.String("roleArn"),
S3Bucket: jsii.String("s3Bucket"),
// the properties below are optional
ActionFailurePolicy: jsii.String("actionFailurePolicy"),
S3Prefix: jsii.String("s3Prefix"),
S3SseKmsKeyId: jsii.String("s3SseKmsKeyId"),
},
},
},
// the properties below are optional
Conditions: []interface{}{
&RuleConditionProperty{
BooleanExpression: &RuleBooleanExpressionProperty{
Evaluate: &RuleBooleanToEvaluateProperty{
Analysis: &AnalysisProperty{
Analyzer: jsii.String("analyzer"),
ResultField: jsii.String("resultField"),
},
Attribute: jsii.String("attribute"),
IsInAddressList: &RuleIsInAddressListProperty{
AddressLists: []*string{
jsii.String("addressLists"),
},
Attribute: jsii.String("attribute"),
},
},
Operator: jsii.String("operator"),
},
DmarcExpression: &RuleDmarcExpressionProperty{
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
IpExpression: &RuleIpExpressionProperty{
Evaluate: &RuleIpToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
NumberExpression: &RuleNumberExpressionProperty{
Evaluate: &RuleNumberToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Value: jsii.Number(123),
},
StringExpression: &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"),
},
},
VerdictExpression: &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"),
},
},
},
},
Name: jsii.String("name"),
Unless: []interface{}{
&RuleConditionProperty{
BooleanExpression: &RuleBooleanExpressionProperty{
Evaluate: &RuleBooleanToEvaluateProperty{
Analysis: &AnalysisProperty{
Analyzer: jsii.String("analyzer"),
ResultField: jsii.String("resultField"),
},
Attribute: jsii.String("attribute"),
IsInAddressList: &RuleIsInAddressListProperty{
AddressLists: []*string{
jsii.String("addressLists"),
},
Attribute: jsii.String("attribute"),
},
},
Operator: jsii.String("operator"),
},
DmarcExpression: &RuleDmarcExpressionProperty{
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
IpExpression: &RuleIpExpressionProperty{
Evaluate: &RuleIpToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Values: []*string{
jsii.String("values"),
},
},
NumberExpression: &RuleNumberExpressionProperty{
Evaluate: &RuleNumberToEvaluateProperty{
Attribute: jsii.String("attribute"),
},
Operator: jsii.String("operator"),
Value: jsii.Number(123),
},
StringExpression: &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"),
},
},
VerdictExpression: &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
actionsIResolvable | IResolvable | CfnMailManagerRuleSet.actionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleActionProperty]]]actionsIResolvableActionsIResolvableActionsinterface{} required #conditionsoptionalIResolvable | IResolvable | CfnMailManagerRuleSet.conditionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleConditionProperty]]]conditionsoptionalIResolvableConditionsoptionalIResolvableConditionsoptionalinterface{} #All conditions must match the email for the actions to be executed. An empty list of conditions means that all emails match, but are still subject to any "unless conditions"
unlessoptionalIResolvable | IResolvable | CfnMailManagerRuleSet.unlessoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RuleConditionProperty]]]unlessoptionalIResolvableUnlessoptionalIResolvableUnlessoptionalinterface{} #None of the conditions can match the email for the actions to be executed. If any of these conditions do match the email, then the actions are not executed.