Class CfnSoftwarePackageVersion

All Implemented Interfaces:
IInspectable, ITaggableV2,, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:03.184Z") @Stability(Stable) public class CfnSoftwarePackageVersion extends CfnResource implements IInspectable, ITaggableV2
Use the AWS::IoT::SoftwarePackageVersion resource to create a software package version.

For information about working with software package versions, see AWS IoT Device Management Software Package Catalog and Creating a software package and package version in the AWS IoT Developer Guide . See also, CreatePackageVersion in the API Guide .

The associated software package must exist before the package version is created. If you create a software package and package version in the same CloudFormation template, set the software package as a dependency of the package version. If they are created out of sequence, you will receive an error.

Package versions and created in a draft state, for more information, see Package version lifecycle . To change the package version state after it’s created, use the UpdatePackageVersionAPI command.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CfnSoftwarePackageVersion cfnSoftwarePackageVersion = CfnSoftwarePackageVersion.Builder.create(this, "MyCfnSoftwarePackageVersion")
         // the properties below are optional
                 "attributesKey", "attributes"))

See Also:
  • Field Details


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

    • CfnSoftwarePackageVersion

      protected CfnSoftwarePackageVersion( objRef)
    • CfnSoftwarePackageVersion

      protected CfnSoftwarePackageVersion( initializationMode)
    • CfnSoftwarePackageVersion

      @Stability(Stable) public CfnSoftwarePackageVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSoftwarePackageVersionProps props)
      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
      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)
      renderProperties in class CfnResource
      props - This parameter is required.
    • getAttrErrorReason

      @Stability(Stable) @NotNull public String getAttrErrorReason()
      Error reason for a package version failure during creation or update.
    • getAttrPackageVersionArn

      @Stability(Stable) @NotNull public String getAttrPackageVersionArn()
      The Amazon Resource Name (ARN) for the package.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the package version.

      For more information, see Package version lifecycle .

    • 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()
      getCfnProperties in class CfnResource
    • getPackageName

      @Stability(Stable) @NotNull public String getPackageName()
    • setPackageName

      @Stability(Stable) public void setPackageName(@NotNull String value)
    • getAttributes

      @Stability(Stable) @Nullable public Object getAttributes()
    • setAttributes

      @Stability(Stable) public void setAttributes(@Nullable IResolvable value)
    • setAttributes

      @Stability(Stable) public void setAttributes(@Nullable Map<String,String> value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.
    • getVersionName

      @Stability(Stable) @Nullable public String getVersionName()
    • setVersionName

      @Stability(Stable) public void setVersionName(@Nullable String value)