aws-cdk-lib.aws_pinpoint.CfnCampaign.CampaignSmsMessageProperty

interface CampaignSmsMessageProperty

LanguageType name
.NETAmazon.CDK.AWS.Pinpoint.CfnCampaign.CampaignSmsMessageProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awspinpoint#CfnCampaign_CampaignSmsMessageProperty
Javasoftware.amazon.awscdk.services.pinpoint.CfnCampaign.CampaignSmsMessageProperty
Pythonaws_cdk.aws_pinpoint.CfnCampaign.CampaignSmsMessageProperty
TypeScript aws-cdk-lib » aws_pinpoint » CfnCampaign » CampaignSmsMessageProperty

Specifies the content and settings for an SMS message that's sent to recipients of 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';
const campaignSmsMessageProperty: pinpoint.CfnCampaign.CampaignSmsMessageProperty = {
  body: 'body',
  entityId: 'entityId',
  messageType: 'messageType',
  originationNumber: 'originationNumber',
  senderId: 'senderId',
  templateId: 'templateId',
};

Properties

NameTypeDescription
body?stringThe body of the SMS message.
entityId?stringThe entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.
messageType?stringThe SMS message type.
originationNumber?stringThe long code to send the SMS message from.
senderId?stringThe alphabetic Sender ID to display as the sender of the message on a recipient's device.
templateId?stringThe template ID received from the regulatory body for sending SMS in your country.

body?

Type: string (optional)

The body of the SMS message.


entityId?

Type: string (optional)

The entity ID or Principal Entity (PE) id received from the regulatory body for sending SMS in your country.


messageType?

Type: string (optional)

The SMS message type.

Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren't critical or time-sensitive, such as marketing messages).


originationNumber?

Type: string (optional)

The long code to send the SMS message from.

This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code using an E.164 format to ensure prompt and accurate delivery of the message. For example, +12065550100.


senderId?

Type: string (optional)

The alphabetic Sender ID to display as the sender of the message on a recipient's device.

Support for sender IDs varies by country or region. To specify a phone number as the sender, omit this parameter and use OriginationNumber instead. For more information about support for Sender ID by country, see the Amazon Pinpoint User Guide .


templateId?

Type: string (optional)

The template ID received from the regulatory body for sending SMS in your country.