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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:16.875Z")
@Stability(Stable)
public class CfnPhoneNumber
extends CfnResource
implements IInspectable, 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 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.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnPhoneNumber
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPhoneNumber
(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.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCountryCode
(String value) The ISO country code.void
setDescription
(String value) The description of the phone number.void
The prefix of the phone number.void
setSourcePhoneNumberArn
(String value) The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging.void
setTagsRaw
(List<CfnTag> value) The tags used to organize, track, or control access for this resource.void
setTargetArn
(String value) The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.void
The 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, 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.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:
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.
-
getAttrAddress
The phone number, in E.164 format. -
getAttrPhoneNumberArn
The Amazon Resource Name (ARN) of the phone number. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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.
-