import { _ResourceLocation, _UnmarshalledResourceLocation } from "./_ResourceLocation"; import { _Tag, _UnmarshalledTag } from "./_Tag"; import { _InstanceHardware, _UnmarshalledInstanceHardware } from "./_InstanceHardware"; import { _InstanceNetworking, _UnmarshalledInstanceNetworking } from "./_InstanceNetworking"; import { _InstanceState, _UnmarshalledInstanceState } from "./_InstanceState"; /** *

Describes an instance (a virtual private server).

*/ export interface _Instance { /** *

The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1).

*/ name?: string; /** *

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

*/ arn?: string; /** *

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.

*/ supportCode?: string; /** *

The timestamp when the instance was created (e.g., 1479734909.17).

*/ createdAt?: Date | string | number; /** *

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

*/ location?: _ResourceLocation; /** *

The type of resource (usually Instance).

*/ resourceType?: "Instance" | "StaticIp" | "KeyPair" | "InstanceSnapshot" | "Domain" | "PeeredVpc" | "LoadBalancer" | "LoadBalancerTlsCertificate" | "Disk" | "DiskSnapshot" | "RelationalDatabase" | "RelationalDatabaseSnapshot" | "ExportSnapshotRecord" | "CloudFormationStackRecord" | string; /** *

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

*/ tags?: Array<_Tag> | Iterable<_Tag>; /** *

The blueprint ID (e.g., os_amlinux_2016_03).

*/ blueprintId?: string; /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ blueprintName?: string; /** *

The bundle for the instance (e.g., micro_1_0).

*/ bundleId?: string; /** *

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

*/ isStaticIp?: boolean; /** *

The private IP address of the instance.

*/ privateIpAddress?: string; /** *

The public IP address of the instance.

*/ publicIpAddress?: string; /** *

The IPv6 address of the instance.

*/ ipv6Address?: string; /** *

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

*/ hardware?: _InstanceHardware; /** *

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

*/ networking?: _InstanceNetworking; /** *

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

*/ state?: _InstanceState; /** *

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

*/ username?: string; /** *

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

*/ sshKeyName?: string; } export interface _UnmarshalledInstance extends _Instance { /** *

The timestamp when the instance was created (e.g., 1479734909.17).

*/ createdAt?: Date; /** *

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

*/ location?: _UnmarshalledResourceLocation; /** *

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

*/ tags?: Array<_UnmarshalledTag>; /** *

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

*/ hardware?: _UnmarshalledInstanceHardware; /** *

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

*/ networking?: _UnmarshalledInstanceNetworking; /** *

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

*/ state?: _UnmarshalledInstanceState; }