Class S3
Saves the received message to an Amazon S3 bucket and, optionally, publishes a notification to Amazon SNS.
Inheritance
System.Object
S3
Implements
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.AWS.SES.Actions.dll
Syntax (csharp)
public class S3 : DeputyBase, IReceiptRuleAction
Syntax (vb)
Public Class S3
Inherits DeputyBase
Implements IReceiptRuleAction
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
S3(IS3Props) | |
S3(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
S3(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IReceiptRule) | Returns the receipt rule action specification. |
Constructors
S3(IS3Props)
S3(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected S3(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
S3(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected S3(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IReceiptRule)
Returns the receipt rule action specification.
public virtual IReceiptRuleActionConfig Bind(IReceiptRule rule)
Parameters
- rule IReceiptRule
Returns