interface KeyPairAttributes
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.KeyPairAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#KeyPairAttributes |
Java | software.amazon.awscdk.services.ec2.KeyPairAttributes |
Python | aws_cdk.aws_ec2.KeyPairAttributes |
TypeScript (source) | aws-cdk-lib » aws_ec2 » KeyPairAttributes |
Attributes of a Key Pair.
Example
const keyPair = ec2.KeyPair.fromKeyPairAttributes(this, 'KeyPair', {
keyPairName: 'the-keypair-name',
type: ec2.KeyPairType.RSA,
})
Properties
Name | Type | Description |
---|---|---|
key | string | The unique name of the key pair. |
type? | Key | The type of the key pair. |
keyPairName
Type:
string
The unique name of the key pair.
type?
Type:
Key
(optional, default: no type specified)
The type of the key pair.