Interface IKeyPair

All Superinterfaces:
software.constructs.IConstruct, software.constructs.IDependable, IKeyPairRef, IResource, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IKeyPair.Jsii$Default
All Known Implementing Classes:
IKeyPair.Jsii$Proxy, KeyPair

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-09-15T14:51:56.338Z") @Stability(Stable) public interface IKeyPair extends software.amazon.jsii.JsiiSerializable, IResource, IKeyPairRef
An EC2 Key Pair.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for IKeyPair.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    The name of the key pair.
    software.constructs.Node
    The tree node.
    default KeyPairType
    The type of the key pair.

    Methods inherited from interface software.amazon.awscdk.services.ec2.IKeyPairRef

    getKeyPairRef

    Methods inherited from interface software.amazon.awscdk.IResource

    applyRemovalPolicy, getEnv, getStack

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getKeyPairName

      @Stability(Stable) @NotNull String getKeyPairName()
      The name of the key pair.
    • getType

      @Stability(Stable) @Nullable default KeyPairType getType()
      The type of the key pair.
    • getNode

      @Stability(Stable) @NotNull software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct