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
CfnPhoneNumber(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnPhoneNumber(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnPhoneNumber(Construct, String, ICfnPhoneNumberProps) |
Properties
AttrAddress | The phone number, in E.164 format. |
AttrPhoneNumberArn | The Amazon Resource Name (ARN) of the phone number. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
CountryCode | The ISO country code. |
Description | The description of the phone number. |
Prefix | The prefix of the phone number. |
SourcePhoneNumberArn | The claimed phone number ARN that was previously imported from the external service, such as Amazon Pinpoint. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags used to organize, track, or control access for this resource. |
TargetArn | 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(TreeInspector) | 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.ByRefValue
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.DeputyBase.DeputyProps
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 ICfnPhoneNumberProps
Resource properties.
Properties
AttrAddress
The phone number, in E.164 format.
public virtual string AttrAddress { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Address
AttrPhoneNumberArn
The Amazon Resource Name (ARN) of the phone number.
public virtual string AttrPhoneNumberArn { get; }
Property Value
System.String
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.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
CountryCode
The ISO country code.
public virtual string CountryCode { get; set; }
Property Value
System.String
Description
The description of the phone number.
public virtual string Description { get; set; }
Property Value
System.String
Prefix
The prefix of the phone number.
public virtual string Prefix { get; set; }
Property Value
System.String
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 Amazon Pinpoint.
public virtual string SourcePhoneNumberArn { get; set; }
Property Value
System.String
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
ICfnTag[]
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.String
Type
The type of phone number.
public virtual string Type { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
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.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>