Class CfnKeyPairProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.CfnKeyPairProps.Jsii$Proxy
All Implemented Interfaces:
CfnKeyPairProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
CfnKeyPairProps

@Stability(Stable) @Internal public static final class CfnKeyPairProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnKeyPairProps
An implementation for CfnKeyPairProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(CfnKeyPairProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnKeyPairProps.Builder.
  • Method Details

    • getKeyName

      public final String getKeyName()
      Description copied from interface: CfnKeyPairProps
      A unique name for the key pair.

      Constraints: Up to 255 ASCII characters

      Specified by:
      getKeyName in interface CfnKeyPairProps
    • getKeyType

      public final String getKeyType()
      Description copied from interface: CfnKeyPairProps
      The type of key pair. Note that ED25519 keys are not supported for Windows instances.

      If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value.

      Default: rsa

      Specified by:
      getKeyType in interface CfnKeyPairProps
    • getPublicKeyMaterial

      public final String getPublicKeyMaterial()
      Description copied from interface: CfnKeyPairProps
      The public key material.

      The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.

      Specified by:
      getPublicKeyMaterial in interface CfnKeyPairProps
    • getTags

      public final List<CfnTag> getTags()
      Description copied from interface: CfnKeyPairProps
      The tags to apply to the key pair.
      Specified by:
      getTags in interface CfnKeyPairProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object