interface CfnMailManagerRuleSetProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SES.CfnMailManagerRuleSetProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsses#CfnMailManagerRuleSetProps |
![]() | software.amazon.awscdk.services.ses.CfnMailManagerRuleSetProps |
![]() | aws_cdk.aws_ses.CfnMailManagerRuleSetProps |
![]() | aws-cdk-lib » aws_ses » CfnMailManagerRuleSetProps |
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 { aws_ses as ses } from 'aws-cdk-lib';
declare const drop: any;
const cfnMailManagerRuleSetProps: ses.CfnMailManagerRuleSetProps = {
rules: [{
actions: [{
addHeader: {
headerName: 'headerName',
headerValue: 'headerValue',
},
archive: {
targetArchive: 'targetArchive',
// the properties below are optional
actionFailurePolicy: 'actionFailurePolicy',
},
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,
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: {
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: {
attribute: 'attribute',
mimeHeaderAttribute: 'mimeHeaderAttribute',
},
operator: 'operator',
values: ['values'],
},
verdictExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
}],
name: 'name',
unless: [{
booleanExpression: {
evaluate: {
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: {
attribute: 'attribute',
mimeHeaderAttribute: 'mimeHeaderAttribute',
},
operator: 'operator',
values: ['values'],
},
verdictExpression: {
evaluate: {
analysis: {
analyzer: 'analyzer',
resultField: 'resultField',
},
attribute: 'attribute',
},
operator: 'operator',
values: ['values'],
},
}],
}],
// the properties below are optional
ruleSetName: 'ruleSetName',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
rules | IResolvable | IResolvable | Rule [] | Conditional rules that are evaluated for determining actions on email. |
rule | string | A user-friendly name for the rule set. |
tags? | Cfn [] | The tags used to organize, track, or control access for the resource. |
rules
Type:
IResolvable
|
IResolvable
|
Rule
[]
Conditional rules that are evaluated for determining actions on email.
ruleSetName?
Type:
string
(optional)
A user-friendly name for the rule set.
tags?
Type:
Cfn
[]
(optional)
The tags used to organize, track, or control access for the resource.
For example, { "tags": {"key1":"value1", "key2":"value2"} }.