Skip to content
v2.273.0

CfnKeyPairProps Struct ​

Properties for defining a CfnKeyPair.

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 lightsail } from 'aws-cdk-lib';
const cfnKeyPairProps: lightsail.CfnKeyPairProps = {
  keyPairName: 'keyPairName',

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

keyPairNamestringkey_pair_namestrkeyPairNameStringKeyPairNamestringKeyPairName*stringrequired#
The name of the key pair.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tag keys and optional values to add to the resource during create.

Used as props by ​