AWS::IoT::SoftwarePackageVersionUse 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](https://docs.aws.amazon.com/iot/latest/developerguide/software-package-catalog.html) and [Creating a software package and package version](https://docs.aws.amazon.com/iot/latest/developerguide/creating-package-and-version.html) in the *AWS IoT Developer Guide* . See also, [CreatePackageVersion](https://docs.aws.amazon.com/iot/latest/apireference/API_CreatePackageVersion.html) 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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html) 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](https://docs.aws.amazon.com/iot/latest/developerguide/preparing-to-use-software-package-catalog.html#package-version-lifecycle) . To change the package version state after it’s created, use the [UpdatePackageVersionAPI](https://docs.aws.amazon.com/iot/latest/apireference/API_UpdatePackageVersion.html) command.
import { CfnSoftwarePackageVersion } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnSoftwarePackageVersionConfiguration passed to the constructor as CfnSoftwarePackageVersionProps.
packageNameRequiredstringThe name of the associated software package.
artifactOptionalIResolvable | PackageVersionArtifactPropertyThe artifact location of the package version.
attributesOptional{ [key: string]: string } | IResolvableMetadata that can be used to define a package version’s configuration. For example, the S3 file location, configuration options that are being sent to the device or fleet. The combined size of all the attributes on a package version is limited to 3KB.
descriptionOptionalstringA summary of the package version being created. This can be used to outline the package's contents or purpose.
recipeOptionalstringThe inline json job document associated with a software package version.
sbomOptionalIResolvable | SbomPropertyThe sbom zip archive location of the package version.
tagsOptionalCfnTag[]Metadata that can be used to manage the package version.
versionNameOptionalstringThe name of the new package version.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::SoftwarePackageVersion