You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lightsail::Types::KeyPair

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Describes the SSH key pair.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the key pair (e.g., arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

#created_atTime

The timestamp when the key pair was created (e.g., 1479816991.349).

Returns:

  • (Time)

    The timestamp when the key pair was created (e.g., 1479816991.349).

#fingerprintString

The RSA fingerprint of the key pair.

Returns:

  • (String)

    The RSA fingerprint of the key pair.

#locationTypes::ResourceLocation

The region name and Availability Zone where the key pair was created.

Returns:

#nameString

The friendly name of the SSH key pair.

Returns:

  • (String)

    The friendly name of the SSH key pair.

#resource_typeString

The resource type (usually KeyPair).

Possible values:

  • Instance
  • StaticIp
  • KeyPair
  • InstanceSnapshot
  • Domain
  • PeeredVpc
  • LoadBalancer
  • LoadBalancerTlsCertificate
  • Disk
  • DiskSnapshot

Returns:

  • (String)

    The resource type (usually KeyPair).

#support_codeString

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

Returns:

  • (String)

    The support code.