KeyPairAttributes Struct
Attributes of a Key Pair.
Example
ts
const keyPair = ec2.KeyPair.fromKeyPairAttributes(this, 'KeyPair', {
keyPairName: 'the-keypair-name',
type: ec2.KeyPairType.RSA,
})
Properties
The unique name of the key pair.
typeoptionalKeyPairTypetypeoptionalKeyPairTypetypeoptionalKeyPairTypeTypeoptionalKeyPairTypeTypeoptionalKeyPairType#The type of the key pair.
Default: no type specified