Class CfnPhoneNumber
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.connect.CfnPhoneNumber
- All Implemented Interfaces:
IInspectable,ITaggable,IPhoneNumberRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:08.111Z")
@Stability(Stable)
public class CfnPhoneNumber
extends CfnResource
implements IInspectable, IPhoneNumberRef, ITaggable
Claims a phone number to the specified Amazon Connect instance or traffic distribution group.
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.connect.*;
CfnPhoneNumber cfnPhoneNumber = CfnPhoneNumber.Builder.create(this, "MyCfnPhoneNumber")
.targetArn("targetArn")
// the properties below are optional
.countryCode("countryCode")
.description("description")
.prefix("prefix")
.sourcePhoneNumberArn("sourcePhoneNumberArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.connect.IPhoneNumberRef
IPhoneNumberRef.Jsii$Default, IPhoneNumberRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPhoneNumber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPhoneNumber(software.amazon.jsii.JsiiObjectRef objRef) CfnPhoneNumber(software.constructs.Construct scope, String id, CfnPhoneNumberProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe phone number, in E.164 format.The Amazon Resource Name (ARN) of the phone number.The ISO country code.The description of the phone number.A reference to a PhoneNumber resource.The prefix of the phone number.The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging.getTags()Tag Manager which manages the tags for this resource.The tags used to organize, track, or control access for this resource.The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.getType()The type of phone number.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCountryCode(String value) The ISO country code.voidsetDescription(String value) The description of the phone number.voidThe prefix of the phone number.voidsetSourcePhoneNumberArn(String value) The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging.voidsetTagsRaw(List<CfnTag> value) The tags used to organize, track, or control access for this resource.voidsetTargetArn(String value) The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.voidThe type of 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, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPhoneNumber
protected CfnPhoneNumber(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPhoneNumber
protected CfnPhoneNumber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPhoneNumber
@Stability(Stable) public CfnPhoneNumber(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPhoneNumberProps 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:
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.
-
getAttrAddress
The phone number, in E.164 format. -
getAttrPhoneNumberArn
The Amazon Resource Name (ARN) of the phone number. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPhoneNumberRef
A reference to a PhoneNumber resource.- Specified by:
getPhoneNumberRefin interfaceIPhoneNumberRef
-
getTags
Tag Manager which manages the tags for this resource. -
getTargetArn
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to. -
setTargetArn
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to. -
getCountryCode
The ISO country code. -
setCountryCode
The ISO country code. -
getDescription
The description of the phone number. -
setDescription
The description of the phone number. -
getPrefix
The prefix of the phone number.If provided, it must contain
+as part of the country code. -
setPrefix
The prefix of the phone number.If provided, it must contain
+as part of the country code. -
getSourcePhoneNumberArn
The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging. -
setSourcePhoneNumberArn
The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging. -
getTagsRaw
The tags used to organize, track, or control access for this resource. -
setTagsRaw
The tags used to organize, track, or control access for this resource. -
getType
The type of phone number. -
setType
The type of phone number.
-