# PackageReference

Struct · External

A reference to a Package 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 packageReference: interfaces_panorama.PackageReference = {
  packageArn: 'packageArn',
  packageId: 'packageId',
};
```

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_reference = interfaces_panorama.PackageReference(
    package_arn="packageArn",
    package_id="packageId"
)
```

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.*;

PackageReference packageReference = PackageReference.builder()
        .packageArn("packageArn")
        .packageId("packageId")
        .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 packageReference = new PackageReference {
    PackageArn = "packageArn",
    PackageId = "packageId"
};
```

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"

packageReference := &PackageReference{
	PackageArn: jsii.String("packageArn"),
	PackageId: jsii.String("packageId"),
}
```

## Properties

- `packageArn`: string (required) — The ARN of the Package resource.

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