Class S3Props
Construction properties for a S3 action.
Inheritance
System.Object
S3Props
Implements
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class S3Props : Object, IS3Props
Syntax (vb)
Public Class S3Props
Inherits Object
Implements 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
Constructors
S3Props() |
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. |
Constructors
S3Props()
public S3Props()
Properties
Bucket
The S3 bucket that incoming email will be saved to.
public IBucket Bucket { get; set; }
Property Value
KmsKey
The master key that SES should use to encrypt your emails before saving them to the S3 bucket.
public IKey KmsKey { get; set; }
Property Value
Remarks
Default: no encryption
ObjectKeyPrefix
The key prefix of the S3 bucket.
public string ObjectKeyPrefix { get; set; }
Property Value
System.String
Remarks
Default: no prefix
Topic
The SNS topic to notify when the S3 action is taken.
public ITopic Topic { get; set; }
Property Value
Remarks
Default: no notification