Class KeyPairProps.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class KeyPairProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements KeyPairProps
An implementation for KeyPairProps
  • 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(KeyPairProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the KeyPairProps.Builder.
  • Method Details

    • getFormat

      public final KeyPairFormat getFormat()
      Description copied from interface: KeyPairProps
      The format of the key pair.

      Default: PEM

      Specified by:
      getFormat in interface KeyPairProps
    • getKeyPairName

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

      Default: A generated name

      Specified by:
      getKeyPairName in interface KeyPairProps
    • getPublicKeyMaterial

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

      If this is provided the key is considered "imported". For imported keys, it is assumed that you already have the private key material so the private key material will not be returned or stored in AWS Systems Manager Parameter Store.

      Default: a public and private key will be generated

      Specified by:
      getPublicKeyMaterial in interface KeyPairProps
    • getType

      public final KeyPairType getType()
      Description copied from interface: KeyPairProps
      The type of key pair.

      Default: RSA (ignored if keyMaterial is provided)

      Specified by:
      getType in interface KeyPairProps
    • getAccount

      public final String getAccount()
      Description copied from interface: ResourceProps
      The AWS account ID this resource belongs to.

      Default: - the resource is in the same account as the stack it belongs to

      Specified by:
      getAccount in interface ResourceProps
    • getEnvironmentFromArn

      public final String getEnvironmentFromArn()
      Description copied from interface: ResourceProps
      ARN to deduce region and account from.

      The ARN is parsed and the account and region are taken from the ARN. This should be used for imported resources.

      Cannot be supplied together with either account or region.

      Default: - take environment from `account`, `region` parameters, or use Stack environment.

      Specified by:
      getEnvironmentFromArn in interface ResourceProps
    • getPhysicalName

      public final String getPhysicalName()
      Description copied from interface: ResourceProps
      The value passed in by users to the physical name prop of the resource.

      • undefined implies that a physical name will be allocated by CloudFormation during deployment.
      • a concrete value implies a specific physical name
      • PhysicalName.GENERATE_IF_NEEDED is a marker that indicates that a physical will only be generated by the CDK if it is needed for cross-environment references. Otherwise, it will be allocated by CloudFormation.

      Default: - The physical name will be allocated by CloudFormation at deployment time

      Specified by:
      getPhysicalName in interface ResourceProps
    • getRegion

      public final String getRegion()
      Description copied from interface: ResourceProps
      The AWS region this resource belongs to.

      Default: - the resource is in the same region as the stack it belongs to

      Specified by:
      getRegion in interface ResourceProps
    • $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