interface KeyPairReference
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Interfaces.Lightsail.KeyPairReference |
Go | github.com/aws/aws-cdk-go/awscdk/v2/interfaces/awslightsail#KeyPairReference |
Java | software.amazon.awscdk.interfaces.lightsail.KeyPairReference |
Python | aws_cdk.interfaces.aws_lightsail.KeyPairReference |
TypeScript | aws-cdk-lib » interfaces » aws_lightsail » 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_lightsail as interfaces_lightsail } from 'aws-cdk-lib/interfaces';
const keyPairReference: interfaces_lightsail.KeyPairReference = {
keyPairArn: 'keyPairArn',
keyPairName: 'keyPairName',
};
Properties
| Name | Type | Description |
|---|---|---|
| key | string | The ARN of the KeyPair resource. |
| key | string | The KeyPairName of the KeyPair resource. |
keyPairArn
Type:
string
The ARN of the KeyPair resource.
keyPairName
Type:
string
The KeyPairName of the KeyPair resource.

.NET
Go
Java
Python
TypeScript