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(Construct, string, ICfnPhoneNumberProps) | Claims a phone number to the specified Amazon Connect instance or traffic distribution group. |
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 | Claims a phone number to the specified Amazon Connect instance or traffic distribution group. |
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 AWS End User Messaging. |
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>) | Claims a phone number to the specified Amazon Connect instance or traffic distribution group. |
Constructors
CfnPhoneNumber(Construct, string, ICfnPhoneNumberProps)
Claims a phone number to the specified Amazon Connect instance or traffic distribution group.
public CfnPhoneNumber(Construct scope, string id, ICfnPhoneNumberProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnPhoneNumberProps
Resource properties.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
Properties
AttrAddress
The phone number, in E.164 format.
public virtual string AttrAddress { get; }
Property Value
Remarks
CloudformationAttribute: Address
AttrPhoneNumberArn
The Amazon Resource Name (ARN) of the phone number.
public virtual string AttrPhoneNumberArn { get; }
Property Value
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
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
CfnProperties
Claims a phone number to the specified Amazon Connect instance or traffic distribution group.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
CountryCode
The ISO country code.
public virtual string? CountryCode { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
Description
The description of the phone number.
public virtual string? Description { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
Prefix
The prefix of the phone number.
public virtual string? Prefix { get; set; }
Property Value
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
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
TagsRaw
The tags used to organize, track, or control access for this resource.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
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
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
Type
The type of phone number.
public virtual string? Type { get; set; }
Property Value
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
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.
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Claims a phone number to the specified Amazon Connect instance or traffic distribution group.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-phonenumber.html
CloudformationResource: AWS::Connect::PhoneNumber
ExampleMetadata: fixture=_generated