# CfnSoftwarePackageVersionProps

Properties for defining a `CfnSoftwarePackageVersion`.

Extends: CfnSoftwarePackageVersionProps
Used as props by: CfnSoftwarePackageVersion

- Source: Generated code
- Type last changed: v2.183.0 · 12 Mar 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const cfnSoftwarePackageVersionProps: iot.CfnSoftwarePackageVersionProps = {
  packageName: 'packageName',

  // the properties below are optional
  artifact: {
    s3Location: {
      bucket: 'bucket',
      key: 'key',
      version: 'version',
    },
  },
  attributes: {
    attributesKey: 'attributes',
  },
  description: 'description',
  recipe: 'recipe',
  sbom: {
    s3Location: {
      bucket: 'bucket',
      key: 'key',
      version: 'version',
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  versionName: 'versionName',
};
```

## Properties

- `artifact`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSoftwarePackageVersion.PackageVersionArtifactProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnSoftwarePackageVersion.PackageVersionArtifactProperty.html) — The artifact location of the package version.

- `attributes`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Metadata 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.

- `description`: string — A summary of the package version being created.

  This can be used to outline the package's contents or purpose.

- `packageName`: string (required) — The name of the associated software package.

- `recipe`: string — The inline json job document associated with a software package version.

- `sbom`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSoftwarePackageVersion.SbomProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnSoftwarePackageVersion.SbomProperty.html) — The sbom zip archive location of the package version.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Metadata that can be used to manage the package version.

- `versionName`: string — The name of the new package version.
