Class CfnPool
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.smsvoice.CfnPool
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,IPoolRef
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-25T11:29:17.636Z")
@Stability(Stable)
public class CfnPool
extends CfnResource
implements IInspectable, IPoolRef, ITaggableV2
Creates a new pool and associates the specified origination identity to the pool.
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 class
A fluent builder forCfnPool
.static interface
The keywordsHELP
andSTOP
are mandatory keywords that each phone number must have.static interface
The manadatory keywords,HELP
andSTOP
to add to the pool.static interface
The pool'sOptionalKeyword
configuration.static interface
The pool's two-way SMS configuration object.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.smsvoice.IPoolRef
IPoolRef.Jsii$Default, IPoolRef.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnPool
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPool
(software.amazon.jsii.JsiiObjectRef objRef) CfnPool
(software.constructs.Construct scope, String id, CfnPoolProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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'sMandatoryKeyword
configuration.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, eitherPhoneNumberArn
orSenderIdArn
.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
When set to true the pool can't be deleted.void
When set to true the pool can't be deleted.void
setMandatoryKeywords
(IResolvable value) Creates or updates the pool'sMandatoryKeyword
configuration.void
Creates or updates the pool'sMandatoryKeyword
configuration.void
setOptionalKeywords
(List<Object> value) Specifies any optional keywords to associate with the pool.void
setOptionalKeywords
(IResolvable value) Specifies any optional keywords to associate with the pool.void
setOptOutListName
(String value) The name of the OptOutList associated with the pool.void
setOriginationIdentities
(List<String> value) The list of origination identities to apply to the pool, eitherPhoneNumberArn
orSenderIdArn
.void
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.void
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.void
setSharedRoutesEnabled
(Boolean value) Allows you to enable shared routes on your pool.void
Allows you to enable shared routes on your pool.void
An array of tags (key and value pairs) associated with the pool.void
setTwoWay
(IResolvable value) Describes the two-way SMS configuration for a phone number.void
setTwoWay
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getPoolRef
A reference to a Pool resource.- Specified by:
getPoolRef
in interfaceIPoolRef
-
getMandatoryKeywords
Creates or updates the pool'sMandatoryKeyword
configuration. -
setMandatoryKeywords
Creates or updates the pool'sMandatoryKeyword
configuration. -
setMandatoryKeywords
@Stability(Stable) public void setMandatoryKeywords(@NotNull CfnPool.MandatoryKeywordsProperty value) Creates or updates the pool'sMandatoryKeyword
configuration. -
getOriginationIdentities
The list of origination identities to apply to the pool, eitherPhoneNumberArn
orSenderIdArn
. -
setOriginationIdentities
The list of origination identities to apply to the pool, eitherPhoneNumberArn
orSenderIdArn
. -
getDeletionProtectionEnabled
When set to true the pool can't be deleted. -
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. -
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. -
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. -
setTwoWay
Describes the two-way SMS configuration for a phone number. -
setTwoWay
Describes the two-way SMS configuration for a phone number.
-