Skip to content
GitHubXDiscord

PackageVersion

The PackageVersion resource lets you manage AWS Panorama PackageVersions for deploying and updating machine learning models and applications on AWS Panorama devices.

Create a basic PackageVersion with required properties and a common optional property.

import AWS from "alchemy/aws/control";
const packageVersion = await AWS.Panorama.PackageVersion("myPackageVersion", {
PackageId: "my-package-id",
PackageVersion: "1.0.0",
PatchVersion: "1.0.1",
MarkLatest: true
});

Configure a PackageVersion with additional properties like OwnerAccount and UpdatedLatestPatchVersion.

const advancedPackageVersion = await AWS.Panorama.PackageVersion("advancedPackageVersion", {
PackageId: "my-package-id",
PackageVersion: "1.1.0",
PatchVersion: "1.1.1",
MarkLatest: true,
OwnerAccount: "123456789012",
UpdatedLatestPatchVersion: "1.1.1"
});

Create a PackageVersion that adopts an existing resource instead of failing if it already exists.

const adoptExistingPackageVersion = await AWS.Panorama.PackageVersion("adoptPackageVersion", {
PackageId: "my-existing-package-id",
PackageVersion: "1.0.0",
PatchVersion: "1.0.1",
adopt: true
});

Demonstrate updating a PackageVersion with a new PatchVersion and marking it as the latest.

const updatedPackageVersion = await AWS.Panorama.PackageVersion("updatePackageVersion", {
PackageId: "my-package-id",
PackageVersion: "1.0.1", // Incrementing version
PatchVersion: "1.0.2",
MarkLatest: true
});