Class AddHeader
Adds a header to the received email.
Inheritance
System.Object
AddHeader
Implements
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AddHeader : DeputyBase, IReceiptRuleAction
Syntax (vb)
Public Class AddHeader
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
AddHeader(IAddHeaderProps) | |
AddHeader(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AddHeader(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IReceiptRule) | Returns the receipt rule action specification. |
Constructors
AddHeader(IAddHeaderProps)
AddHeader(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AddHeader(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AddHeader(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AddHeader(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