Class CfnPool
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IPoolRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
A pool can include one or more phone numbers and SenderIds that are associated with your AWS account.
The new pool inherits its configuration from the specified origination identity. This includes keywords, message type, opt-out list, two-way configuration, and self-managed opt-out configuration. Deletion protection isn't inherited from the origination identity and defaults to false.
If the origination identity is a phone number and is already associated with another pool, an error is returned. A sender ID can be associated with multiple pools.
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.*;
CfnPool cfnPool = CfnPool.Builder.create(this, "MyCfnPool")
.mandatoryKeywords(MandatoryKeywordsProperty.builder()
.help(MandatoryKeywordProperty.builder()
.message("message")
.build())
.stop(MandatoryKeywordProperty.builder()
.message("message")
.build())
.build())
.originationIdentities(List.of("originationIdentities"))
// the properties below are optional
.deletionProtectionEnabled(false)
.optionalKeywords(List.of(OptionalKeywordProperty.builder()
.action("action")
.keyword("keyword")
.message("message")
.build()))
.optOutListName("optOutListName")
.selfManagedOptOutsEnabled(false)
.sharedRoutesEnabled(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 TypeClassDescriptionstatic final classA fluent builder forCfnPool.static interfaceThe keywordsHELPandSTOPare mandatory keywords that each phone number must have.static interfaceThe manadatory keywords,HELPandSTOPto add to the pool.static interfaceThe pool'sOptionalKeywordconfiguration.static interfaceThe pool's two-way SMS configuration object.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.smsvoice.IPoolRef
IPoolRef.Jsii$Default, IPoolRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPool(software.amazon.jsii.JsiiObjectRef objRef) CfnPool(software.constructs.Construct scope, String id, CfnPoolProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IPoolReffromPoolArn(software.constructs.Construct scope, String id, String arn) Creates a new IPoolRef from an ARN.static IPoolReffromPoolId(software.constructs.Construct scope, String id, String poolId) Creates a new IPoolRef from a poolId.The Amazon Resource Name of thePool.The unique identifier for the pool.Tag Manager which manages the tags for this resource.When set to true the pool can't be deleted.Creates or updates the pool'sMandatoryKeywordconfiguration.Specifies any optional keywords to associate with the pool.The name of the OptOutList associated with the pool.The list of origination identities to apply to the pool, eitherPhoneNumberArnorSenderIdArn.A reference to a Pool resource.When set to false, 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.Allows you to enable shared routes on your pool.getTags()An array of tags (key and value pairs) associated with the pool.Describes the two-way SMS configuration for a phone number.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidWhen set to true the pool can't be deleted.voidWhen set to true the pool can't be deleted.voidsetMandatoryKeywords(IResolvable value) Creates or updates the pool'sMandatoryKeywordconfiguration.voidCreates or updates the pool'sMandatoryKeywordconfiguration.voidsetOptionalKeywords(List<Object> value) Specifies any optional keywords to associate with the pool.voidsetOptionalKeywords(IResolvable value) Specifies any optional keywords to associate with the pool.voidsetOptOutListName(String value) The name of the OptOutList associated with the pool.voidsetOriginationIdentities(List<String> value) The list of origination identities to apply to the pool, eitherPhoneNumberArnorSenderIdArn.voidWhen set to false, 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.voidWhen set to false, 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.voidsetSharedRoutesEnabled(Boolean value) Allows you to enable shared routes on your pool.voidAllows you to enable shared routes on your pool.voidAn array of tags (key and value pairs) associated with the pool.voidsetTwoWay(IResolvable value) Describes the two-way SMS configuration for a phone number.voidsetTwoWay(CfnPool.TwoWayProperty value) Describes the two-way SMS configuration for a phone number.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPool
protected CfnPool(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPool
protected CfnPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPool
@Stability(Stable) public CfnPool(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPoolProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromPoolArn
@Stability(Stable) @NotNull public static IPoolRef fromPoolArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IPoolRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromPoolId
@Stability(Stable) @NotNull public static IPoolRef fromPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String poolId) Creates a new IPoolRef from a poolId.- Parameters:
scope- This parameter is required.id- This parameter is required.poolId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name of thePool. -
getAttrPoolId
The unique identifier for the pool. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPoolRef
A reference to a Pool resource.- Specified by:
getPoolRefin interfaceIPoolRef
-
getMandatoryKeywords
Creates or updates the pool'sMandatoryKeywordconfiguration.Returns union: either
IResolvableorCfnPool.MandatoryKeywordsProperty -
setMandatoryKeywords
Creates or updates the pool'sMandatoryKeywordconfiguration. -
setMandatoryKeywords
@Stability(Stable) public void setMandatoryKeywords(@NotNull CfnPool.MandatoryKeywordsProperty value) Creates or updates the pool'sMandatoryKeywordconfiguration. -
getOriginationIdentities
The list of origination identities to apply to the pool, eitherPhoneNumberArnorSenderIdArn. -
setOriginationIdentities
The list of origination identities to apply to the pool, eitherPhoneNumberArnorSenderIdArn. -
getDeletionProtectionEnabled
When set to true the pool can't be deleted.Returns union: either
BooleanorIResolvable -
setDeletionProtectionEnabled
When set to true the pool can't be deleted. -
setDeletionProtectionEnabled
When set to true the pool can't be deleted. -
getOptionalKeywords
Specifies any optional keywords to associate with the pool.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPool.OptionalKeywordProperty> -
setOptionalKeywords
Specifies any optional keywords to associate with the pool. -
setOptionalKeywords
Specifies any optional keywords to associate with the pool. -
getOptOutListName
The name of the OptOutList associated with the pool. -
setOptOutListName
The name of the OptOutList associated with the pool. -
getSelfManagedOptOutsEnabled
When set to false, 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.Returns union: either
BooleanorIResolvable -
setSelfManagedOptOutsEnabled
When set to false, 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. -
setSelfManagedOptOutsEnabled
When set to false, 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) associated with the pool. -
setTags
An array of tags (key and value pairs) associated with the pool. -
getTwoWay
Describes the two-way SMS configuration for a phone number.Returns union: either
IResolvableorCfnPool.TwoWayProperty -
setTwoWay
Describes the two-way SMS configuration for a phone number. -
setTwoWay
Describes the two-way SMS configuration for a phone number.
-