Instance class

Describes an instance (a virtual private server).

Constructors

Instance({List<AddOn>? addOns, String? arn, String? blueprintId, String? blueprintName, String? bundleId, DateTime? createdAt, InstanceHardware? hardware, String? ipv6Address, bool? isStaticIp, ResourceLocation? location, String? name, InstanceNetworking? networking, String? privateIpAddress, String? publicIpAddress, ResourceType? resourceType, String? sshKeyName, InstanceState? state, String? supportCode, List<Tag>? tags, String? username})
Instance.fromJson(Map<String, dynamic> json)
factory

Properties

addOns List<AddOn>?
An array of objects representing the add-ons enabled on the instance.
final
arn String?
The Amazon Resource Name (ARN) of the instance (e.g., arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).
final
blueprintId String?
The blueprint ID (e.g., os_amlinux_2016_03).
final
blueprintName String?
The friendly name of the blueprint (e.g., Amazon Linux).
final
bundleId String?
The bundle for the instance (e.g., micro_1_0).
final
createdAt DateTime?
The timestamp when the instance was created (e.g., 1479734909.17) in Unix time format.
final
hardware InstanceHardware?
The size of the vCPU and the amount of RAM for the instance.
final
hashCode int
The hash code for this object.
no setterinherited
ipv6Address String?
The IPv6 address of the instance.
final
isStaticIp bool?
A Boolean value indicating whether this instance has a static IP assigned to it.
final
location ResourceLocation?
The region name and Availability Zone where the instance is located.
final
name String?
The name the user gave the instance (e.g., Amazon_Linux-1GB-Ohio-1).
final
networking InstanceNetworking?
Information about the public ports and monthly data transfer rates for the instance.
final
privateIpAddress String?
The private IP address of the instance.
final
publicIpAddress String?
The public IP address of the instance.
final
resourceType ResourceType?
The type of resource (usually Instance).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sshKeyName String?
The name of the SSH key being used to connect to the instance (e.g., LightsailDefaultKeyPair).
final
state InstanceState?
The status code and the state (e.g., running) for the instance.
final
supportCode 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.
final
tags List<Tag>?
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
final
username String?
The user name for connecting to the instance (e.g., ec2-user).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited