Class CfnPhoneNumber
Claims a phone number to the specified Amazon Connect instance or traffic distribution group.
Inherited Members
Namespace: Amazon.CDK.AWS.Connect
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPhoneNumber : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnPhoneNumber
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Connect;
var cfnPhoneNumber = new CfnPhoneNumber(this, "MyCfnPhoneNumber", new CfnPhoneNumberProps {
TargetArn = "targetArn",
// the properties below are optional
CountryCode = "countryCode",
Description = "description",
Prefix = "prefix",
SourcePhoneNumberArn = "sourcePhoneNumberArn",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Type = "type"
});
Synopsis
Constructors
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Cfn |
Properties
Attr |
The phone number, in E.164 format. |
Attr |
The Amazon Resource Name (ARN) of the phone number. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
Cfn |
|
Country |
The ISO country code. |
Description | The description of the phone number. |
Prefix | The prefix of the phone number. |
Source |
The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging. |
Tags | Tag Manager which manages the tags for this resource. |
Tags |
The tags used to organize, track, or control access for this resource. |
Target |
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to. |
Type | The type of phone number. |
Methods
Inspect(Tree |
Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnPhoneNumber(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnPhoneNumber(ByRefValue reference)
Parameters
- reference Amazon.
JSII. Runtime. Deputy. By Ref Value The Javascript-owned object reference
CfnPhoneNumber(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnPhoneNumber(DeputyBase.DeputyProps props)
Parameters
- props Amazon.
JSII. Runtime. Deputy. Deputy Base. Deputy Props The deputy props
CfnPhoneNumber(Construct, String, ICfnPhoneNumberProps)
public CfnPhoneNumber(Construct scope, string id, ICfnPhoneNumberProps props)
Parameters
- scope Constructs.
Construct Scope in which this resource is defined.
- id System.
String Construct identifier for this resource (unique in its scope).
- props ICfn
Phone Number Props Resource properties.
Properties
AttrAddress
The phone number, in E.164 format.
public virtual string AttrAddress { get; }
Property Value
System.
Remarks
CloudformationAttribute: Address
AttrPhoneNumberArn
The Amazon Resource Name (ARN) of the phone number.
public virtual string AttrPhoneNumberArn { get; }
Property Value
System.
Remarks
CloudformationAttribute: PhoneNumberArn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
CountryCode
The ISO country code.
public virtual string CountryCode { get; set; }
Property Value
System.
Description
The description of the phone number.
public virtual string Description { get; set; }
Property Value
System.
Prefix
The prefix of the phone number.
public virtual string Prefix { get; set; }
Property Value
System.
Remarks
If provided, it must contain +
as part of the country code.
SourcePhoneNumberArn
The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging.
public virtual string SourcePhoneNumberArn { get; set; }
Property Value
System.
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags used to organize, track, or control access for this resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfn
TargetArn
The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.
public virtual string TargetArn { get; set; }
Property Value
System.
Type
The type of phone number.
public virtual string Type { get; set; }
Property Value
System.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.
Collections. <System.Generic. IDictionary String , System.Object >
Returns
System.