Instance

class Instance

Describes an instance (a virtual private server).

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

An array of objects representing the add-ons enabled on the instance.

Link copied to clipboard
val arn: String?

The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

Link copied to clipboard

The blueprint ID (amazon_linux_2023).

Link copied to clipboard

The friendly name of the blueprint (Amazon Linux 2023).

Link copied to clipboard

The bundle for the instance (micro_x_x).

Link copied to clipboard

The timestamp when the instance was created (1479734909.17) in Unix time format.

Link copied to clipboard

The size of the vCPU and the amount of RAM for the instance.

Link copied to clipboard

The IP address type of the instance.

Link copied to clipboard

The IPv6 addresses of the instance.

Link copied to clipboard

A Boolean value indicating whether this instance has a static IP assigned to it.

Link copied to clipboard

The region name and Availability Zone where the instance is located.

Link copied to clipboard

The metadata options for the Amazon Lightsail instance.

Link copied to clipboard
val name: String?

The name the user gave the instance (Amazon_Linux_2023-1).

Link copied to clipboard

Information about the public ports and monthly data transfer rates for the instance.

Link copied to clipboard

The private IP address of the instance.

Link copied to clipboard

The public IP address of the instance.

Link copied to clipboard

The type of resource (usually Instance).

Link copied to clipboard

The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).

Link copied to clipboard

The status code and the state (running) for the instance.

Link copied to clipboard

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.

Link copied to clipboard
val tags: List<Tag>?

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

Link copied to clipboard

The user name for connecting to the instance (ec2-user).

Functions

Link copied to clipboard
inline fun copy(block: Instance.Builder.() -> Unit = {}): Instance
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String