Skip to content
v2.274.0

KeyPairReference Struct ​

A reference to a KeyPair resource.

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 ​

keyPairArnstringkey_pair_arnstrkeyPairArnStringKeyPairArnstringKeyPairArn*stringrequired#
The ARN of the KeyPair resource.
keyPairNamestringkey_pair_namestrkeyPairNameStringKeyPairNamestringKeyPairName*stringrequired#
The KeyPairName of the KeyPair resource.