UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

50 lines (49 loc) 1.37 kB
import * as kms from '../../aws-kms'; import * as s3 from '../../aws-s3'; import * as ses from '../../aws-ses'; import * as sns from '../../aws-sns'; /** * Construction properties for a S3 action. */ export interface S3Props { /** * The S3 bucket that incoming email will be saved to. */ readonly bucket: s3.IBucket; /** * The master key that SES should use to encrypt your emails before saving * them to the S3 bucket. * * @default no encryption */ readonly kmsKey?: kms.IKey; /** * The key prefix of the S3 bucket. * * @default no prefix */ readonly objectKeyPrefix?: string; /** * The SNS topic to notify when the S3 action is taken. * * @default no notification */ readonly topic?: sns.ITopic; } /** * Saves the received message to an Amazon S3 bucket and, optionally, publishes * a notification to Amazon SNS. */ export declare class S3 implements ses.IReceiptRuleAction { private readonly props; private rule?; constructor(props: S3Props); bind(rule: ses.IReceiptRule): ses.ReceiptRuleActionConfig; /** * Generate and apply the receipt rule action statement * * @param ruleSet The rule set the rule is being added to * @internal */ _applyPolicyStatement(receiptRuleSet: ses.IReceiptRuleSet): void; }