Interface CfnPhoneNumberProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPhoneNumberProps.Jsii$Proxy
CfnPhoneNumber.
Example:
// 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.*;
CfnPhoneNumberProps cfnPhoneNumberProps = CfnPhoneNumberProps.builder()
.isoCountryCode("isoCountryCode")
.mandatoryKeywords(MandatoryKeywordsProperty.builder()
.help(MandatoryKeywordProperty.builder()
.message("message")
.build())
.stop(MandatoryKeywordProperty.builder()
.message("message")
.build())
.build())
.numberCapabilities(List.of("numberCapabilities"))
.numberType("numberType")
// the properties below are optional
.deletionProtectionEnabled(false)
.optionalKeywords(List.of(OptionalKeywordProperty.builder()
.action("action")
.keyword("keyword")
.message("message")
.build()))
.optOutListName("optOutListName")
.selfManagedOptOutsEnabled(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.twoWay(TwoWayProperty.builder()
.enabled(false)
// the properties below are optional
.channelArn("channelArn")
.channelRole("channelRole")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPhoneNumberPropsstatic final classAn implementation forCfnPhoneNumberProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPhoneNumberProps.Builderbuilder()default ObjectBy default this is set to false.The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.Indicates if the phone number will be used for text messages, voice messages, or both.The type of phone number to request.default ObjectA keyword is a word that you can search for on a particular phone number or pool.default StringThe name of the OptOutList associated with the phone number.default ObjectWhen set to false and an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, End User Messaging automatically replies with a customizable message and adds the end recipient to the OptOutList.getTags()An array of tags (key and value pairs) to associate with the requested phone number.default ObjectDescribes the two-way SMS configuration for a phone number.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIsoCountryCode
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.- See Also:
-
getMandatoryKeywords
Creates or updates aMandatoryKeywordconfiguration on an origination phone number For more information, see Keywords in the End User Messaging User Guide.Returns union: either
IResolvableorCfnPhoneNumber.MandatoryKeywordsProperty- See Also:
-
getNumberCapabilities
Indicates if the phone number will be used for text messages, voice messages, or both.- See Also:
-
getNumberType
The type of phone number to request.The
ShortCodenumber type is not supported in AWS CloudFormation .- See Also:
-
getDeletionProtectionEnabled
By default this is set to false.When set to true the phone number can't be deleted.
Returns union: either
BooleanorIResolvable- See Also:
-
getOptionalKeywords
A keyword is a word that you can search for on a particular phone number or pool.It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, End User Messaging responds with a customizable message. Optional keywords are differentiated from mandatory keywords. For more information, see Keywords in the End User Messaging User Guide.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPhoneNumber.OptionalKeywordProperty>- See Also:
-
getOptOutListName
The name of the OptOutList associated with the phone number.- See Also:
-
getSelfManagedOptOutsEnabled
When set to false and an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, End User Messaging automatically replies with a customizable message and adds the end recipient to the OptOutList.When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out request. For more information see Self-managed opt-outs
Returns union: either
BooleanorIResolvable- See Also:
-
getTags
An array of tags (key and value pairs) to associate with the requested phone number.- See Also:
-
getTwoWay
Describes the two-way SMS configuration for a phone number.For more information, see Two-way SMS messaging in the End User Messaging User Guide.
Returns union: either
IResolvableorCfnPhoneNumber.TwoWayProperty- See Also:
-
builder
- Returns:
- a
CfnPhoneNumberProps.BuilderofCfnPhoneNumberProps
-