Skip to content
v2.273.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_ec2 as interfaces_ec2 } from 'aws-cdk-lib/interfaces';
const keyPairReference: interfaces_ec2.KeyPairReference = {
  keyName: 'keyName',
};

Properties ​

keyNamestringkey_namestrkeyNameStringKeyNamestringKeyName*stringrequired#
The KeyName of the KeyPair resource.