Class CfnPhoneNumber

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:59.690Z") @Stability(Stable) public class CfnPhoneNumber extends CfnResource implements IInspectable, ITaggable
Claims a phone number to the specified Amazon Connect instance or traffic distribution group.

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")
         .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnPhoneNumber

      protected CfnPhoneNumber(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnPhoneNumber

      protected CfnPhoneNumber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnPhoneNumber

      @Stability(Stable) public CfnPhoneNumber(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPhoneNumberProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAddress

      @Stability(Stable) @NotNull public String getAttrAddress()
      The phone number, in E.164 format.
    • getAttrPhoneNumberArn

      @Stability(Stable) @NotNull public String getAttrPhoneNumberArn()
      The Amazon Resource Name (ARN) of the phone number.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getTargetArn

      @Stability(Stable) @NotNull public String getTargetArn()
      The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.
    • setTargetArn

      @Stability(Stable) public void setTargetArn(@NotNull String value)
      The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution group that phone numbers are claimed to.
    • getCountryCode

      @Stability(Stable) @Nullable public String getCountryCode()
      The ISO country code.
    • setCountryCode

      @Stability(Stable) public void setCountryCode(@Nullable String value)
      The ISO country code.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the phone number.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the phone number.
    • getPrefix

      @Stability(Stable) @Nullable public String getPrefix()
      The prefix of the phone number.

      If provided, it must contain + as part of the country code.

    • setPrefix

      @Stability(Stable) public void setPrefix(@Nullable String value)
      The prefix of the phone number.

      If provided, it must contain + as part of the country code.

    • getSourcePhoneNumberArn

      @Stability(Stable) @Nullable public String getSourcePhoneNumberArn()
      The claimed phone number ARN that was previously imported from the external service, such as Amazon Pinpoint.
    • setSourcePhoneNumberArn

      @Stability(Stable) public void setSourcePhoneNumberArn(@Nullable String value)
      The claimed phone number ARN that was previously imported from the external service, such as Amazon Pinpoint.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags used to organize, track, or control access for this resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for this resource.
    • getType

      @Stability(Stable) @Nullable public String getType()
      The type of phone number.
    • setType

      @Stability(Stable) public void setType(@Nullable String value)
      The type of phone number.