interface CfnKeyPairProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Lightsail.CfnKeyPairProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslightsail#CfnKeyPairProps |
Java | software.amazon.awscdk.services.lightsail.CfnKeyPairProps |
Python | aws_cdk.aws_lightsail.CfnKeyPairProps |
TypeScript | aws-cdk-lib » aws_lightsail » CfnKeyPairProps |
Properties for defining a CfnKeyPair.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-keypair.html
Example
// 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
| Name | Type | Description |
|---|---|---|
| key | string | The name of the key pair. |
| tags? | Cfn[] | The tag keys and optional values to add to the resource during create. |
keyPairName
Type:
string
The name of the key pair.
tags?
Type:
Cfn[]
(optional)
The tag keys and optional values to add to the resource during create.

.NET
Go
Java
Python
TypeScript