Interface KeyPairReference
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
KeyPairReference.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:20.152Z")
@Stability(Stable)
public interface KeyPairReference
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.interfaces.ec2.*;
KeyPairReference keyPairReference = KeyPairReference.builder()
.keyName("keyName")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forKeyPairReferencestatic final classAn implementation forKeyPairReference -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyPairReference.Builderbuilder()The KeyName of the KeyPair resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKeyName
The KeyName of the KeyPair resource. -
builder
- Returns:
- a
KeyPairReference.BuilderofKeyPairReference
-