Class CfnSenderId

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

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-25T11:29:17.656Z") @Stability(Stable) public class CfnSenderId extends CfnResource implements IInspectable, ISenderIdRef, ITaggableV2
Request a new sender ID that doesn't require registration.

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.smsvoice.*;
 CfnSenderId cfnSenderId = CfnSenderId.Builder.create(this, "MyCfnSenderId")
         .isoCountryCode("isoCountryCode")
         .senderId("senderId")
         // the properties below are optional
         .deletionProtectionEnabled(false)
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnSenderId

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

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

      @Stability(Stable) public CfnSenderId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSenderIdProps 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.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name of the SenderId .
    • getCdkTagManager

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

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

      @Stability(Stable) @NotNull public SenderIdReference getSenderIdRef()
      A reference to a SenderId resource.
      Specified by:
      getSenderIdRef in interface ISenderIdRef
    • getIsoCountryCode

      @Stability(Stable) @NotNull public String getIsoCountryCode()
      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
    • setIsoCountryCode

      @Stability(Stable) public void setIsoCountryCode(@NotNull String value)
      The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
    • getSenderId

      @Stability(Stable) @NotNull public String getSenderId()
      The sender ID string to request.
    • setSenderId

      @Stability(Stable) public void setSenderId(@NotNull String value)
      The sender ID string to request.
    • getDeletionProtectionEnabled

      @Stability(Stable) @Nullable public Object getDeletionProtectionEnabled()
      By default this is set to false.
    • setDeletionProtectionEnabled

      @Stability(Stable) public void setDeletionProtectionEnabled(@Nullable Boolean value)
      By default this is set to false.
    • setDeletionProtectionEnabled

      @Stability(Stable) public void setDeletionProtectionEnabled(@Nullable IResolvable value)
      By default this is set to false.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of tags (key and value pairs) to associate with the sender ID.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of tags (key and value pairs) to associate with the sender ID.