Class CfnRegistrationAttachment

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.smsvoice.CfnRegistrationAttachment
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IRegistrationAttachmentRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-09-30T11:05:01.807Z") @Stability(Stable) public class CfnRegistrationAttachment extends CfnResource implements IInspectable, IRegistrationAttachmentRef, ITaggableV2
Resource Type definition for AWS::SMSVOICE::RegistrationAttachment.

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.*;
 CfnRegistrationAttachment cfnRegistrationAttachment = CfnRegistrationAttachment.Builder.create(this, "MyCfnRegistrationAttachment")
         .attachmentBody("attachmentBody")
         .attachmentUrl("attachmentUrl")
         .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

    • CfnRegistrationAttachment

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

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

      @Stability(Stable) public CfnRegistrationAttachment(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnRegistrationAttachmentProps props)
      Create a new AWS::SMSVOICE::RegistrationAttachment.

      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.
    • CfnRegistrationAttachment

      @Stability(Stable) public CfnRegistrationAttachment(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::SMSVOICE::RegistrationAttachment.

      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.
  • Method Details

    • arnForRegistrationAttachment

      @Stability(Stable) @NotNull public static String arnForRegistrationAttachment(@NotNull IRegistrationAttachmentRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnRegistrationAttachment

      @Stability(Stable) @NotNull public static Boolean isCfnRegistrationAttachment(@NotNull Object x)
      Checks whether the given object is a CfnRegistrationAttachment.

      Parameters:
      x - This parameter is required.
    • 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.
    • getAttrAttachmentStatus

      @Stability(Stable) @NotNull public String getAttrAttachmentStatus()
      The status of the registration attachment.
    • getAttrCreatedTimestamp

      @Stability(Stable) @NotNull public String getAttrCreatedTimestamp()
      The time when the registration attachment was created, in UNIX epoch time format.
    • getAttrRegistrationAttachmentArn

      @Stability(Stable) @NotNull public String getAttrRegistrationAttachmentArn()
      The Amazon Resource Name (ARN) for the registration attachment.
    • getAttrRegistrationAttachmentId

      @Stability(Stable) @NotNull public String getAttrRegistrationAttachmentId()
      The unique identifier for the registration attachment.
    • getAttrUploadedAttachmentUrl

      @Stability(Stable) @NotNull public String getAttrUploadedAttachmentUrl()
      The URL to the document that was uploaded as the registration attachment, as returned by the service.
    • 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
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getRegistrationAttachmentRef

      @Stability(Stable) @NotNull public RegistrationAttachmentReference getRegistrationAttachmentRef()
      A reference to a RegistrationAttachment resource.
      Specified by:
      getRegistrationAttachmentRef in interface IRegistrationAttachmentRef
    • getAttachmentBody

      @Stability(Stable) @Nullable public String getAttachmentBody()
      The registration file to upload.
    • setAttachmentBody

      @Stability(Stable) public void setAttachmentBody(@Nullable String value)
      The registration file to upload.
    • getAttachmentUrl

      @Stability(Stable) @Nullable public String getAttachmentUrl()
      A URL to the required registration file.
    • setAttachmentUrl

      @Stability(Stable) public void setAttachmentUrl(@Nullable String value)
      A URL to the required registration file.
    • getTags

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

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