# CampaignCustomMessageProperty

Specifies the contents of a message that's sent through a custom channel to recipients of a campaign.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pinpoint as pinpoint } from 'aws-cdk-lib';
const campaignCustomMessageProperty: pinpoint.CfnCampaign.CampaignCustomMessageProperty = {
  data: 'data',
};
```

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_pinpoint as pinpoint

campaign_custom_message_property = pinpoint.CfnCampaign.CampaignCustomMessageProperty(
    data="data"
)
```

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.pinpoint.*;

CampaignCustomMessageProperty campaignCustomMessageProperty = CampaignCustomMessageProperty.builder()
        .data("data")
        .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.Pinpoint;

var campaignCustomMessageProperty = new CampaignCustomMessageProperty {
    Data = "data"
};
```

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"

campaignCustomMessageProperty := &CampaignCustomMessageProperty{
	Data: jsii.String("data"),
}
```

## Properties

- `data`: string — The raw, JSON-formatted string to use as the payload for the message.

  The maximum size is 5 KB.
