Skip to content
v2.273.0

CfnReceiptRuleProps Struct ​

Properties for defining a CfnReceiptRule.

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',
};

Properties ​

afterstringafterstrafterStringAfterstringAfter*string#
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.
ruleSetNamestringrule_set_namestrruleSetNameStringRuleSetNamestringRuleSetName*stringrequired#
The name of the rule set where the receipt rule is added.

Used as props by ​