interface KeyPairReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Interfaces.EC2.KeyPairReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/interfaces/awsec2#KeyPairReference |
Java | software.amazon.awscdk.interfaces.ec2.KeyPairReference |
Python | aws_cdk.interfaces.aws_ec2.KeyPairReference |
TypeScript | aws-cdk-lib » interfaces » aws_ec2 » KeyPairReference |
A reference to a KeyPair resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as interfaces_aws_ec2 } from 'aws-cdk-lib/interfaces';
const keyPairReference: interfaces_aws_ec2.KeyPairReference = {
keyName: 'keyName',
};
Properties
| Name | Type | Description |
|---|---|---|
| key | string | The KeyName of the KeyPair resource. |
keyName
Type:
string
The KeyName of the KeyPair resource.

.NET
Go
Java
Python
TypeScript