interface MessageConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pinpoint.CfnCampaign.MessageConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnCampaign_MessageConfigurationProperty |
![]() | software.amazon.awscdk.services.pinpoint.CfnCampaign.MessageConfigurationProperty |
![]() | aws_cdk.aws_pinpoint.CfnCampaign.MessageConfigurationProperty |
![]() | aws-cdk-lib » aws_pinpoint » CfnCampaign » MessageConfigurationProperty |
Specifies the message configuration settings for a campaign.
Example
// 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';
declare const customConfig: any;
const messageConfigurationProperty: pinpoint.CfnCampaign.MessageConfigurationProperty = {
admMessage: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageSmallIconUrl: 'imageSmallIconUrl',
imageUrl: 'imageUrl',
jsonBody: 'jsonBody',
mediaUrl: 'mediaUrl',
rawContent: 'rawContent',
silentPush: false,
timeToLive: 123,
title: 'title',
url: 'url',
},
apnsMessage: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageSmallIconUrl: 'imageSmallIconUrl',
imageUrl: 'imageUrl',
jsonBody: 'jsonBody',
mediaUrl: 'mediaUrl',
rawContent: 'rawContent',
silentPush: false,
timeToLive: 123,
title: 'title',
url: 'url',
},
baiduMessage: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageSmallIconUrl: 'imageSmallIconUrl',
imageUrl: 'imageUrl',
jsonBody: 'jsonBody',
mediaUrl: 'mediaUrl',
rawContent: 'rawContent',
silentPush: false,
timeToLive: 123,
title: 'title',
url: 'url',
},
customMessage: {
data: 'data',
},
defaultMessage: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageSmallIconUrl: 'imageSmallIconUrl',
imageUrl: 'imageUrl',
jsonBody: 'jsonBody',
mediaUrl: 'mediaUrl',
rawContent: 'rawContent',
silentPush: false,
timeToLive: 123,
title: 'title',
url: 'url',
},
emailMessage: {
body: 'body',
fromAddress: 'fromAddress',
htmlBody: 'htmlBody',
title: 'title',
},
gcmMessage: {
action: 'action',
body: 'body',
imageIconUrl: 'imageIconUrl',
imageSmallIconUrl: 'imageSmallIconUrl',
imageUrl: 'imageUrl',
jsonBody: 'jsonBody',
mediaUrl: 'mediaUrl',
rawContent: 'rawContent',
silentPush: false,
timeToLive: 123,
title: 'title',
url: 'url',
},
inAppMessage: {
content: [{
backgroundColor: 'backgroundColor',
bodyConfig: {
alignment: 'alignment',
body: 'body',
textColor: 'textColor',
},
headerConfig: {
alignment: 'alignment',
header: 'header',
textColor: 'textColor',
},
imageUrl: 'imageUrl',
primaryBtn: {
android: {
buttonAction: 'buttonAction',
link: 'link',
},
defaultConfig: {
backgroundColor: 'backgroundColor',
borderRadius: 123,
buttonAction: 'buttonAction',
link: 'link',
text: 'text',
textColor: 'textColor',
},
ios: {
buttonAction: 'buttonAction',
link: 'link',
},
web: {
buttonAction: 'buttonAction',
link: 'link',
},
},
secondaryBtn: {
android: {
buttonAction: 'buttonAction',
link: 'link',
},
defaultConfig: {
backgroundColor: 'backgroundColor',
borderRadius: 123,
buttonAction: 'buttonAction',
link: 'link',
text: 'text',
textColor: 'textColor',
},
ios: {
buttonAction: 'buttonAction',
link: 'link',
},
web: {
buttonAction: 'buttonAction',
link: 'link',
},
},
}],
customConfig: customConfig,
layout: 'layout',
},
smsMessage: {
body: 'body',
entityId: 'entityId',
messageType: 'messageType',
originationNumber: 'originationNumber',
senderId: 'senderId',
templateId: 'templateId',
},
};
Properties
Name | Type | Description |
---|---|---|
adm | IResolvable | Message | The message that the campaign sends through the ADM (Amazon Device Messaging) channel. |
apns | IResolvable | Message | The message that the campaign sends through the APNs (Apple Push Notification service) channel. |
baidu | IResolvable | Message | The message that the campaign sends through the Baidu (Baidu Cloud Push) channel. |
custom | IResolvable | Campaign | The message that the campaign sends through a custom channel, as specified by the delivery configuration ( CustomDeliveryConfiguration ) settings for the campaign. |
default | IResolvable | Message | The default message that the campaign sends through all the channels that are configured for the campaign. |
email | IResolvable | Campaign | The message that the campaign sends through the email channel. If specified, this message overrides the default message. |
gcm | IResolvable | Message | The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. |
in | IResolvable | Campaign | The default message for the in-app messaging channel. |
sms | IResolvable | Campaign | The message that the campaign sends through the SMS channel. |
admMessage?
Type:
IResolvable
|
Message
(optional)
The message that the campaign sends through the ADM (Amazon Device Messaging) channel.
If specified, this message overrides the default message.
apnsMessage?
Type:
IResolvable
|
Message
(optional)
The message that the campaign sends through the APNs (Apple Push Notification service) channel.
If specified, this message overrides the default message.
baiduMessage?
Type:
IResolvable
|
Message
(optional)
The message that the campaign sends through the Baidu (Baidu Cloud Push) channel.
If specified, this message overrides the default message.
customMessage?
Type:
IResolvable
|
Campaign
(optional)
The message that the campaign sends through a custom channel, as specified by the delivery configuration ( CustomDeliveryConfiguration
) settings for the campaign.
If specified, this message overrides the default message.
defaultMessage?
Type:
IResolvable
|
Message
(optional)
The default message that the campaign sends through all the channels that are configured for the campaign.
emailMessage?
Type:
IResolvable
|
Campaign
(optional)
The message that the campaign sends through the email channel. If specified, this message overrides the default message.
The maximum email message size is 200 KB. You can use email templates to send larger email messages.
gcmMessage?
Type:
IResolvable
|
Message
(optional)
The message that the campaign sends through the GCM channel, which enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
If specified, this message overrides the default message.
inAppMessage?
Type:
IResolvable
|
Campaign
(optional)
The default message for the in-app messaging channel.
This message overrides the default message ( DefaultMessage
).
smsMessage?
Type:
IResolvable
|
Campaign
(optional)
The message that the campaign sends through the SMS channel.
If specified, this message overrides the default message.