Interface IS3Props
Construction properties for a S3 action.
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.AWS.SES.Actions.dll
Syntax (csharp)
public interface IS3Props
Syntax (vb)
Public Interface IS3Props
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.SES.Actions;
var bucket = new Bucket(this, "Bucket");
var topic = new Topic(this, "Topic");
new ReceiptRuleSet(this, "RuleSet", new ReceiptRuleSetProps {
Rules = new [] { new ReceiptRuleOptions {
Recipients = new [] { "hello@aws.com" },
Actions = new [] {
new AddHeader(new AddHeaderProps {
Name = "X-Special-Header",
Value = "aws"
}),
new S3(new S3Props {
Bucket = bucket,
ObjectKeyPrefix = "emails/",
Topic = topic
}) }
}, new ReceiptRuleOptions {
Recipients = new [] { "aws.com" },
Actions = new [] {
new Sns(new SnsProps {
Topic = topic
}) }
} }
});
Synopsis
Properties
Bucket | The S3 bucket that incoming email will be saved to. |
KmsKey | The master key that SES should use to encrypt your emails before saving them to the S3 bucket. |
ObjectKeyPrefix | The key prefix of the S3 bucket. |
Topic | The SNS topic to notify when the S3 action is taken. |
Properties
Bucket
KmsKey
The master key that SES should use to encrypt your emails before saving them to the S3 bucket.
virtual IKey KmsKey { get; }
Property Value
Remarks
Default: no encryption
ObjectKeyPrefix
The key prefix of the S3 bucket.
virtual string ObjectKeyPrefix { get; }
Property Value
System.String
Remarks
Default: no prefix
Topic
The SNS topic to notify when the S3 action is taken.
virtual ITopic Topic { get; }
Property Value
Remarks
Default: no notification