interface S3Props
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.Actions.S3Props |
Java | software.amazon.awscdk.services.ses.actions.S3Props |
Python | aws_cdk.aws_ses_actions.S3Props |
TypeScript (source) | @aws-cdk/aws-ses-actions » S3Props |
Construction properties for a S3 action.
Example
import * as s3 from '@aws-cdk/aws-s3';
import * as actions from '@aws-cdk/aws-ses-actions';
const bucket = new s3.Bucket(this, 'Bucket');
const topic = new sns.Topic(this, 'Topic');
new ses.ReceiptRuleSet(this, 'RuleSet', {
rules: [
{
recipients: ['hello@aws.com'],
actions: [
new actions.AddHeader({
name: 'X-Special-Header',
value: 'aws',
}),
new actions.S3({
bucket,
objectKeyPrefix: 'emails/',
topic,
}),
],
},
{
recipients: ['aws.com'],
actions: [
new actions.Sns({
topic,
}),
],
},
],
});
Properties
Name | Type | Description |
---|---|---|
bucket | IBucket | The S3 bucket that incoming email will be saved to. |
kms | IKey | The master key that SES should use to encrypt your emails before saving them to the S3 bucket. |
object | string | The key prefix of the S3 bucket. |
topic? | ITopic | The SNS topic to notify when the S3 action is taken. |
bucket
Type:
IBucket
The S3 bucket that incoming email will be saved to.
kmsKey?
Type:
IKey
(optional, default: no encryption)
The master key that SES should use to encrypt your emails before saving them to the S3 bucket.
objectKeyPrefix?
Type:
string
(optional, default: no prefix)
The key prefix of the S3 bucket.
topic?
Type:
ITopic
(optional, default: no notification)
The SNS topic to notify when the S3 action is taken.