# AddHeaderActionProperty

The action to add a header to a message.

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

- Source: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `headerName`: 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.

- `headerValue`: string (required) — The value of the header to add to the email.
