@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:49.879Z") public class CfnPhoneNumber extends CfnResource implements IInspectable
Claims a phone number to the specified Amazon Connect instance.
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") .countryCode("countryCode") .targetArn("targetArn") .type("type") // the properties below are optional .description("description") .prefix("prefix") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPhoneNumber.Builder
A fluent builder for
CfnPhoneNumber . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPhoneNumber(Construct scope,
java.lang.String id,
CfnPhoneNumberProps props)
Create a new `AWS::Connect::PhoneNumber`.
|
protected |
CfnPhoneNumber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPhoneNumber(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrAddress()
The phone number, in E.164 format.
|
java.lang.String |
getAttrPhoneNumberArn()
The Amazon Resource Name (ARN) of the phone number.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getCountryCode()
The ISO country code.
|
java.lang.String |
getDescription()
The description of the phone number.
|
java.lang.String |
getPrefix()
The prefix of the phone number.
|
TagManager |
getTags()
The tags used to organize, track, or control access for this resource.
|
java.lang.String |
getTargetArn()
The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.
|
java.lang.String |
getType()
The type of phone number.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCountryCode(java.lang.String value)
The ISO country code.
|
void |
setDescription(java.lang.String value)
The description of the phone number.
|
void |
setPrefix(java.lang.String value)
The prefix of the phone number.
|
void |
setTargetArn(java.lang.String value)
The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.
|
void |
setType(java.lang.String value)
The type of phone number.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnPhoneNumber(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPhoneNumber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnPhoneNumber(Construct scope, java.lang.String id, CfnPhoneNumberProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrAddress()
public java.lang.String getAttrPhoneNumberArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getCountryCode()
public void setCountryCode(java.lang.String value)
public java.lang.String getTargetArn()
public void setTargetArn(java.lang.String value)
public java.lang.String getType()
public void setType(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getPrefix()
Pattern : ^\\+[0-9]{1,15}
public void setPrefix(java.lang.String value)
Pattern : ^\\+[0-9]{1,15}