CfnPhoneNumberProps Struct
Properties for defining a CfnPhoneNumber.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connect as connect } from 'aws-cdk-lib';
const cfnPhoneNumberProps: connect.CfnPhoneNumberProps = {
targetArn: 'targetArn',
// the properties below are optional
countryCode: 'countryCode',
description: 'description',
prefix: 'prefix',
sourcePhoneNumberArn: 'sourcePhoneNumberArn',
tags: [{
key: 'key',
value: 'value',
}],
type: 'type',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connect as connect
cfn_phone_number_props = connect.CfnPhoneNumberProps(
target_arn="targetArn",
# the properties below are optional
country_code="countryCode",
description="description",
prefix="prefix",
source_phone_number_arn="sourcePhoneNumberArn",
tags=[CfnTag(
key="key",
value="value"
)],
type="type"
)
java
// 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.*;
CfnPhoneNumberProps cfnPhoneNumberProps = CfnPhoneNumberProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnPhoneNumberProps = 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"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnPhoneNumberProps := &CfnPhoneNumberProps{
TargetArn: jsii.String("targetArn"),
// the properties below are optional
CountryCode: jsii.String("countryCode"),
Description: jsii.String("description"),
Prefix: jsii.String("prefix"),
SourcePhoneNumberArn: jsii.String("sourcePhoneNumberArn"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Type: jsii.String("type"),
}
Properties
countryCodeoptionalstringcountry_codeoptionalstrcountryCodeoptionalStringCountryCodeoptionalstringCountryCodeoptional*string #The ISO country code.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the phone number.
prefixoptionalstringprefixoptionalstrprefixoptionalStringPrefixoptionalstringPrefixoptional*string #The prefix of the phone number. If provided, it must contain `+` as part of the country code.
Pattern : ^\\+[0-9]{1,15}
sourcePhoneNumberArnoptionalstringsource_phone_number_arnoptionalstrsourcePhoneNumberArnoptionalStringSourcePhoneNumberArnoptionalstringSourcePhoneNumberArnoptional*string #The claimed phone number ARN that was previously imported from the external service, such as AWS End User Messaging.
If it is from AWS End User Messaging, it looks like the ARN of the phone number that was imported from AWS End User Messaging.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags used to organize, track, or control access for this resource.
For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The Amazon Resource Name (ARN) for Connect Customer instances or traffic distribution group that phone numbers are claimed to.
The type of phone number.