# StackReference

A reference to a Stack resource.

- Source: Generated code
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudformation as interfaces_cloudformation } from 'aws-cdk-lib/interfaces';
const stackReference: interfaces_cloudformation.StackReference = {
  stackId: 'stackId',
};
```

## Properties

- `stackId`: string (required) — The StackId of the Stack resource.
