Skip to content
v2.277.0

CampaignCustomMessageProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
};
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 ​

dataoptionalstringdataoptionalstrdataoptionalStringDataoptionalstringDataoptional*string#
The raw, JSON-formatted string to use as the payload for the message.

The maximum size is 5 KB.