Class CfnPackageVersion

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

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:31.172Z") @Stability(Stable) public class CfnPackageVersion extends CfnResource implements IInspectable
Registers a package version.

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.panorama.*;
 CfnPackageVersion cfnPackageVersion = CfnPackageVersion.Builder.create(this, "MyCfnPackageVersion")
         .packageId("packageId")
         .packageVersion("packageVersion")
         .patchVersion("patchVersion")
         // the properties below are optional
         .markLatest(false)
         .ownerAccount("ownerAccount")
         .updatedLatestPatchVersion("updatedLatestPatchVersion")
         .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

    • CfnPackageVersion

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

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

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

      @Stability(Stable) @NotNull public IResolvable getAttrIsLatestPatch()
      Whether the package version is the latest version.
    • getAttrPackageArn

      @Stability(Stable) @NotNull public String getAttrPackageArn()
      The package version's ARN.
    • getAttrPackageName

      @Stability(Stable) @NotNull public String getAttrPackageName()
      The package version's name.
    • getAttrRegisteredTime

      @Stability(Stable) @NotNull public Number getAttrRegisteredTime()
      The package version's registered time.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The package version's status.
    • getAttrStatusDescription

      @Stability(Stable) @NotNull public String getAttrStatusDescription()
      The package version's status description.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public String getPackageId()
      A package ID.
    • setPackageId

      @Stability(Stable) public void setPackageId(@NotNull String value)
      A package ID.
    • getPackageVersion

      @Stability(Stable) @NotNull public String getPackageVersion()
      A package version.
    • setPackageVersion

      @Stability(Stable) public void setPackageVersion(@NotNull String value)
      A package version.
    • getPatchVersion

      @Stability(Stable) @NotNull public String getPatchVersion()
      A patch version.
    • setPatchVersion

      @Stability(Stable) public void setPatchVersion(@NotNull String value)
      A patch version.
    • getMarkLatest

      @Stability(Stable) @Nullable public Object getMarkLatest()
      Whether to mark the new version as the latest version.
    • setMarkLatest

      @Stability(Stable) public void setMarkLatest(@Nullable Boolean value)
      Whether to mark the new version as the latest version.
    • setMarkLatest

      @Stability(Stable) public void setMarkLatest(@Nullable IResolvable value)
      Whether to mark the new version as the latest version.
    • getOwnerAccount

      @Stability(Stable) @Nullable public String getOwnerAccount()
      An owner account.
    • setOwnerAccount

      @Stability(Stable) public void setOwnerAccount(@Nullable String value)
      An owner account.
    • getUpdatedLatestPatchVersion

      @Stability(Stable) @Nullable public String getUpdatedLatestPatchVersion()
      If the version was marked latest, the new version to maker as latest.
    • setUpdatedLatestPatchVersion

      @Stability(Stable) public void setUpdatedLatestPatchVersion(@Nullable String value)
      If the version was marked latest, the new version to maker as latest.