# PackageVersionReference

Struct · External

A reference to a PackageVersion resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_panorama as interfaces_panorama } from 'aws-cdk-lib/interfaces';
const packageVersionReference: interfaces_panorama.PackageVersionReference = {
  packageId: 'packageId',
  packageVersion: 'packageVersion',
  patchVersion: 'patchVersion',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_panorama as interfaces_panorama

package_version_reference = interfaces_panorama.PackageVersionReference(
    package_id="packageId",
    package_version="packageVersion",
    patch_version="patchVersion"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.panorama.*;

PackageVersionReference packageVersionReference = PackageVersionReference.builder()
        .packageId("packageId")
        .packageVersion("packageVersion")
        .patchVersion("patchVersion")
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Panorama;

var packageVersionReference = new PackageVersionReference {
    PackageId = "packageId",
    PackageVersion = "packageVersion",
    PatchVersion = "patchVersion"
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

packageVersionReference := &PackageVersionReference{
	PackageId: jsii.String("packageId"),
	PackageVersion: jsii.String("packageVersion"),
	PatchVersion: jsii.String("patchVersion"),
}
```

## Properties

- `packageId`: string (required) — The PackageId of the PackageVersion resource.

- `packageVersion`: string (required) — The PackageVersion of the PackageVersion resource.

- `patchVersion`: string (required) — The PatchVersion of the PackageVersion resource.
