Skip to content
v2.278.0

AddHeaderActionProperty Struct ​

The action to add a header to a message.

When executed, this action will add the given header to the message.

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.CfnMailManagerRuleSet.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.CfnMailManagerRuleSet.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 an email.

The header must be prefixed with "X-". Headers are added regardless of whether the header name pre-existed in the email.

headerValuestringheader_valuestrheaderValueStringHeaderValuestringHeaderValue*string required #
The value of the header to add to the email.