# KeyPairReference

A reference to a KeyPair resource.

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lightsail as interfaces_lightsail } from 'aws-cdk-lib/interfaces';
const keyPairReference: interfaces_lightsail.KeyPairReference = {
  keyPairArn: 'keyPairArn',
  keyPairName: 'keyPairName',
};
```

## Properties

- `keyPairArn`: string (required) — The ARN of the KeyPair resource.

- `keyPairName`: string (required) — The KeyPairName of the KeyPair resource.
