CfnReceiptRuleProps Struct
Properties for defining a CfnReceiptRule.
| Source |
|---|
Example
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 cfnReceiptRuleProps: ses.CfnReceiptRuleProps = {
rule: {
actions: [{
addHeaderAction: {
headerName: 'headerName',
headerValue: 'headerValue',
},
bounceAction: {
message: 'message',
sender: 'sender',
smtpReplyCode: 'smtpReplyCode',
// the properties below are optional
statusCode: 'statusCode',
topicArn: 'topicArn',
},
connectAction: {
iamRoleArn: 'iamRoleArn',
instanceArn: 'instanceArn',
},
lambdaAction: {
functionArn: 'functionArn',
// the properties below are optional
invocationType: 'invocationType',
topicArn: 'topicArn',
},
s3Action: {
bucketName: 'bucketName',
// the properties below are optional
iamRoleArn: 'iamRoleArn',
kmsKeyArn: 'kmsKeyArn',
objectKeyPrefix: 'objectKeyPrefix',
topicArn: 'topicArn',
},
snsAction: {
encoding: 'encoding',
topicArn: 'topicArn',
},
stopAction: {
scope: 'scope',
// the properties below are optional
topicArn: 'topicArn',
},
workmailAction: {
organizationArn: 'organizationArn',
// the properties below are optional
topicArn: 'topicArn',
},
}],
enabled: false,
name: 'name',
recipients: ['recipients'],
scanEnabled: false,
tlsPolicy: 'tlsPolicy',
},
ruleSetName: 'ruleSetName',
// the properties below are optional
after: 'after',
};
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
cfn_receipt_rule_props = ses.CfnReceiptRuleProps(
rule=ses.CfnReceiptRule.RuleProperty(
actions=[ses.CfnReceiptRule.ActionProperty(
add_header_action=ses.CfnReceiptRule.AddHeaderActionProperty(
header_name="headerName",
header_value="headerValue"
),
bounce_action=ses.CfnReceiptRule.BounceActionProperty(
message="message",
sender="sender",
smtp_reply_code="smtpReplyCode",
# the properties below are optional
status_code="statusCode",
topic_arn="topicArn"
),
connect_action=ses.CfnReceiptRule.ConnectActionProperty(
iam_role_arn="iamRoleArn",
instance_arn="instanceArn"
),
lambda_action=ses.CfnReceiptRule.LambdaActionProperty(
function_arn="functionArn",
# the properties below are optional
invocation_type="invocationType",
topic_arn="topicArn"
),
s3_action=ses.CfnReceiptRule.S3ActionProperty(
bucket_name="bucketName",
# the properties below are optional
iam_role_arn="iamRoleArn",
kms_key_arn="kmsKeyArn",
object_key_prefix="objectKeyPrefix",
topic_arn="topicArn"
),
sns_action=ses.CfnReceiptRule.SNSActionProperty(
encoding="encoding",
topic_arn="topicArn"
),
stop_action=ses.CfnReceiptRule.StopActionProperty(
scope="scope",
# the properties below are optional
topic_arn="topicArn"
),
workmail_action=ses.CfnReceiptRule.WorkmailActionProperty(
organization_arn="organizationArn",
# the properties below are optional
topic_arn="topicArn"
)
)],
enabled=False,
name="name",
recipients=["recipients"],
scan_enabled=False,
tls_policy="tlsPolicy"
),
rule_set_name="ruleSetName",
# the properties below are optional
after="after"
)
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.*;
CfnReceiptRuleProps cfnReceiptRuleProps = CfnReceiptRuleProps.builder()
.rule(RuleProperty.builder()
.actions(List.of(ActionProperty.builder()
.addHeaderAction(AddHeaderActionProperty.builder()
.headerName("headerName")
.headerValue("headerValue")
.build())
.bounceAction(BounceActionProperty.builder()
.message("message")
.sender("sender")
.smtpReplyCode("smtpReplyCode")
// the properties below are optional
.statusCode("statusCode")
.topicArn("topicArn")
.build())
.connectAction(ConnectActionProperty.builder()
.iamRoleArn("iamRoleArn")
.instanceArn("instanceArn")
.build())
.lambdaAction(LambdaActionProperty.builder()
.functionArn("functionArn")
// the properties below are optional
.invocationType("invocationType")
.topicArn("topicArn")
.build())
.s3Action(S3ActionProperty.builder()
.bucketName("bucketName")
// the properties below are optional
.iamRoleArn("iamRoleArn")
.kmsKeyArn("kmsKeyArn")
.objectKeyPrefix("objectKeyPrefix")
.topicArn("topicArn")
.build())
.snsAction(SNSActionProperty.builder()
.encoding("encoding")
.topicArn("topicArn")
.build())
.stopAction(StopActionProperty.builder()
.scope("scope")
// the properties below are optional
.topicArn("topicArn")
.build())
.workmailAction(WorkmailActionProperty.builder()
.organizationArn("organizationArn")
// the properties below are optional
.topicArn("topicArn")
.build())
.build()))
.enabled(false)
.name("name")
.recipients(List.of("recipients"))
.scanEnabled(false)
.tlsPolicy("tlsPolicy")
.build())
.ruleSetName("ruleSetName")
// the properties below are optional
.after("after")
.build();
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 cfnReceiptRuleProps = new CfnReceiptRuleProps {
Rule = new RuleProperty {
Actions = new [] { new ActionProperty {
AddHeaderAction = new AddHeaderActionProperty {
HeaderName = "headerName",
HeaderValue = "headerValue"
},
BounceAction = new BounceActionProperty {
Message = "message",
Sender = "sender",
SmtpReplyCode = "smtpReplyCode",
// the properties below are optional
StatusCode = "statusCode",
TopicArn = "topicArn"
},
ConnectAction = new ConnectActionProperty {
IamRoleArn = "iamRoleArn",
InstanceArn = "instanceArn"
},
LambdaAction = new LambdaActionProperty {
FunctionArn = "functionArn",
// the properties below are optional
InvocationType = "invocationType",
TopicArn = "topicArn"
},
S3Action = new S3ActionProperty {
BucketName = "bucketName",
// the properties below are optional
IamRoleArn = "iamRoleArn",
KmsKeyArn = "kmsKeyArn",
ObjectKeyPrefix = "objectKeyPrefix",
TopicArn = "topicArn"
},
SnsAction = new SNSActionProperty {
Encoding = "encoding",
TopicArn = "topicArn"
},
StopAction = new StopActionProperty {
Scope = "scope",
// the properties below are optional
TopicArn = "topicArn"
},
WorkmailAction = new WorkmailActionProperty {
OrganizationArn = "organizationArn",
// the properties below are optional
TopicArn = "topicArn"
}
} },
Enabled = false,
Name = "name",
Recipients = new [] { "recipients" },
ScanEnabled = false,
TlsPolicy = "tlsPolicy"
},
RuleSetName = "ruleSetName",
// the properties below are optional
After = "after"
};
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"
cfnReceiptRuleProps := &CfnReceiptRuleProps{
Rule: &RuleProperty{
Actions: []interface{}{
&ActionProperty{
AddHeaderAction: &AddHeaderActionProperty{
HeaderName: jsii.String("headerName"),
HeaderValue: jsii.String("headerValue"),
},
BounceAction: &BounceActionProperty{
Message: jsii.String("message"),
Sender: jsii.String("sender"),
SmtpReplyCode: jsii.String("smtpReplyCode"),
// the properties below are optional
StatusCode: jsii.String("statusCode"),
TopicArn: jsii.String("topicArn"),
},
ConnectAction: &ConnectActionProperty{
IamRoleArn: jsii.String("iamRoleArn"),
InstanceArn: jsii.String("instanceArn"),
},
LambdaAction: &LambdaActionProperty{
FunctionArn: jsii.String("functionArn"),
// the properties below are optional
InvocationType: jsii.String("invocationType"),
TopicArn: jsii.String("topicArn"),
},
S3Action: &S3ActionProperty{
BucketName: jsii.String("bucketName"),
// the properties below are optional
IamRoleArn: jsii.String("iamRoleArn"),
KmsKeyArn: jsii.String("kmsKeyArn"),
ObjectKeyPrefix: jsii.String("objectKeyPrefix"),
TopicArn: jsii.String("topicArn"),
},
SnsAction: &SNSActionProperty{
Encoding: jsii.String("encoding"),
TopicArn: jsii.String("topicArn"),
},
StopAction: &StopActionProperty{
Scope: jsii.String("scope"),
// the properties below are optional
TopicArn: jsii.String("topicArn"),
},
WorkmailAction: &WorkmailActionProperty{
OrganizationArn: jsii.String("organizationArn"),
// the properties below are optional
TopicArn: jsii.String("topicArn"),
},
},
},
Enabled: jsii.Boolean(false),
Name: jsii.String("name"),
Recipients: []*string{
jsii.String("recipients"),
},
ScanEnabled: jsii.Boolean(false),
TlsPolicy: jsii.String("tlsPolicy"),
},
RuleSetName: jsii.String("ruleSetName"),
// the properties below are optional
After: jsii.String("after"),
}
Properties
The name of an existing rule after which the new rule is placed.
If this parameter is null, the new rule is inserted at the beginning of the rule list.
ruleIResolvable | CfnReceiptRule.RulePropertyruletyping.Union[IResolvable, RuleProperty]ruleIResolvableRuleIResolvableRuleinterface{} required #A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
The name of the rule set where the receipt rule is added.