CfnSMSChannelProps
Struct External
Properties for defining a CfnSMSChannel.
| Source |
|---|
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 cfnSMSChannelProps: pinpoint.CfnSMSChannelProps = {
applicationId: 'applicationId',
// the properties below are optional
enabled: false,
senderId: 'senderId',
shortCode: 'shortCode',
};
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
cfn_sms_channel_props = pinpoint.CfnSMSChannelProps(
application_id="applicationId",
# the properties below are optional
enabled=False,
sender_id="senderId",
short_code="shortCode"
)
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.*;
CfnSMSChannelProps cfnSMSChannelProps = CfnSMSChannelProps.builder()
.applicationId("applicationId")
// the properties below are optional
.enabled(false)
.senderId("senderId")
.shortCode("shortCode")
.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 cfnSMSChannelProps = new CfnSMSChannelProps {
ApplicationId = "applicationId",
// the properties below are optional
Enabled = false,
SenderId = "senderId",
ShortCode = "shortCode"
};
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"
cfnSMSChannelProps := &CfnSMSChannelProps{
ApplicationId: jsii.String("applicationId"),
// the properties below are optional
Enabled: jsii.Boolean(false),
SenderId: jsii.String("senderId"),
ShortCode: jsii.String("shortCode"),
}
Properties
applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*string required #The unique identifier for the Amazon Pinpoint application that the SMS channel applies to.
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #Specifies whether to enable the SMS channel for the application.
senderIdoptionalstringsender_idoptionalstrsenderIdoptionalStringSenderIdoptionalstringSenderIdoptional*string #The identity that you want to display on recipients' devices when they receive messages from the SMS channel.
notes
SenderIDs are only supported in certain countries and regions. For more information, see Supported Countries and Regions in the Amazon Pinpoint User Guide .
shortCodeoptionalstringshort_codeoptionalstrshortCodeoptionalStringShortCodeoptionalstringShortCodeoptional*string #The registered short code that you want to use when you send messages through the SMS channel.
notes
For information about obtaining a dedicated short code for sending SMS messages, see Requesting Dedicated Short Codes for SMS Messaging with Amazon Pinpoint in the Amazon Pinpoint User Guide .