Interface CfnPhoneNumberProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnPhoneNumberProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.988Z") @Stability(Stable) public interface CfnPhoneNumberProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnPhoneNumber.

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.*;
 CfnPhoneNumberProps cfnPhoneNumberProps = CfnPhoneNumberProps.builder()
         .countryCode("countryCode")
         .targetArn("targetArn")
         .type("type")
         // the properties below are optional
         .description("description")
         .prefix("prefix")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Method Details

    • getCountryCode

      @Stability(Stable) @NotNull String getCountryCode()
      The ISO country code.
    • getTargetArn

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

      @Stability(Stable) @NotNull String getType()
      The type of phone number.
    • getDescription

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

      @Stability(Stable) @Nullable default String getPrefix()
      The prefix of the phone number. If provided, it must contain + as part of the country code.

      Pattern : ^\\+[0-9]{1,15}

    • getTags

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

      For example, { "tags": {"key1":"value1", "key2":"value2"} }.

    • builder

      @Stability(Stable) static CfnPhoneNumberProps.Builder builder()
      Returns:
      a CfnPhoneNumberProps.Builder of CfnPhoneNumberProps