Skip to content
v2.278.0

AddHeaderActionProperty Struct ​

When included in a receipt rule, this action adds a header to the received email.

For information about adding a header using a receipt rule, see the Amazon SES Developer Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const addHeaderActionProperty: ses.CfnReceiptRule.AddHeaderActionProperty = {
  headerName: 'headerName',
  headerValue: 'headerValue',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses as ses

add_header_action_property = ses.CfnReceiptRule.AddHeaderActionProperty(
    header_name="headerName",
    header_value="headerValue"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.*;

AddHeaderActionProperty addHeaderActionProperty = AddHeaderActionProperty.builder()
        .headerName("headerName")
        .headerValue("headerValue")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES;

var addHeaderActionProperty = new AddHeaderActionProperty {
    HeaderName = "headerName",
    HeaderValue = "headerValue"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

addHeaderActionProperty := &AddHeaderActionProperty{
	HeaderName: jsii.String("headerName"),
	HeaderValue: jsii.String("headerValue"),
}

Properties ​

headerNamestringheader_namestrheaderNameStringHeaderNamestringHeaderName*string required #
The name of the header to add to the incoming message.

The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric ( a–z, A–Z, 0–9 ) characters and dashes.

headerValuestringheader_valuestrheaderValueStringHeaderValuestringHeaderValue*string required #
The content to include in the header.

This value can contain up to 2048 characters. It can't contain newline ( \n ) or carriage return ( \r ) characters.