TwoWayProperty
Struct External
The pool's two-way SMS configuration object.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_smsvoice as smsvoice } from 'aws-cdk-lib';
const twoWayProperty: smsvoice.CfnPool.TwoWayProperty = {
enabled: false,
// the properties below are optional
channelArn: 'channelArn',
channelRole: 'channelRole',
};
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_smsvoice as smsvoice
two_way_property = smsvoice.CfnPool.TwoWayProperty(
enabled=False,
# the properties below are optional
channel_arn="channelArn",
channel_role="channelRole"
)
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.smsvoice.*;
TwoWayProperty twoWayProperty = TwoWayProperty.builder()
.enabled(false)
// the properties below are optional
.channelArn("channelArn")
.channelRole("channelRole")
.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.SMSVOICE;
var twoWayProperty = new TwoWayProperty {
Enabled = false,
// the properties below are optional
ChannelArn = "channelArn",
ChannelRole = "channelRole"
};
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"
twoWayProperty := &TwoWayProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
ChannelArn: jsii.String("channelArn"),
ChannelRole: jsii.String("channelRole"),
}
Properties
channelArnoptionalstringchannel_arnoptionalstrchannelArnoptionalStringChannelArnoptionalstringChannelArnoptional*string #The Amazon Resource Name (ARN) of the two way channel.
channelRoleoptionalstringchannel_roleoptionalstrchannelRoleoptionalStringChannelRoleoptionalstringChannelRoleoptional*string #An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #By default this is set to false.
When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.