Class AddHeaderProps
Construction properties for a add header action.
Inheritance
System.Object
AddHeaderProps
Implements
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AddHeaderProps : Object, IAddHeaderProps
Syntax (vb)
Public Class AddHeaderProps
Inherits Object
Implements IAddHeaderProps
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
AddHeaderProps() |
Properties
Name | The name of the header to add. |
Value | The value of the header to add. |
Constructors
AddHeaderProps()
public AddHeaderProps()
Properties
Name
The name of the header to add.
public string Name { get; set; }
Property Value
System.String
Remarks
Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
Value
The value of the header to add.
public string Value { get; set; }
Property Value
System.String
Remarks
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").