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

Class: Aws::Lightsail::Types::InstanceAccessDetails

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

Overview

The parameters for gaining temporary access to one of your Amazon Lightsail instances.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#cert_keyString

For SSH access, the public key to use when accessing your instance For OpenSSH clients (e.g., command line SSH), you should save this value to tempkey-cert.pub.

Returns:

  • (String)

    For SSH access, the public key to use when accessing your instance For OpenSSH clients (e.g., command line SSH), you should save this value to tempkey-cert.pub.

#expires_atTime

For SSH access, the date on which the temporary keys expire.

Returns:

  • (Time)

    For SSH access, the date on which the temporary keys expire.

#instance_nameString

The name of this Amazon Lightsail instance.

Returns:

  • (String)

    The name of this Amazon Lightsail instance.

#ip_addressString

The public IP address of the Amazon Lightsail instance.

Returns:

  • (String)

    The public IP address of the Amazon Lightsail instance.

#passwordString

For RDP access, the temporary password of the Amazon EC2 instance.

Returns:

  • (String)

    For RDP access, the temporary password of the Amazon EC2 instance.

#private_keyString

For SSH access, the temporary private key. For OpenSSH clients (e.g., command line SSH), you should save this value to tempkey).

Returns:

  • (String)

    For SSH access, the temporary private key.

#protocolString

The protocol for these Amazon Lightsail instance access details.

Possible values:

  • ssh
  • rdp

Returns:

  • (String)

    The protocol for these Amazon Lightsail instance access details.

#usernameString

The user name to use when logging in to the Amazon Lightsail instance.

Returns:

  • (String)

    The user name to use when logging in to the Amazon Lightsail instance.