InstanceState class

Input properties used for looking up and filtering Instance resources.

Constructors

InstanceState({Input<InstanceAddOn?>? addOn, Input<String?>? arn, Input<String?>? availabilityZone, Input<String?>? blueprintId, Input<String?>? bundleId, Input<int?>? cpuCount, Input<String?>? createdAt, Input<String?>? ipAddressType, Input<List<String>?>? ipv6Addresses, Input<bool?>? isStaticIp, Input<String?>? keyPairName, Input<String?>? name, Input<String?>? privateIpAddress, Input<String?>? publicIpAddress, Input<double?>? ramSize, Input<String?>? region, Input<Map<String, String>?>? tags, Input<Map<String, String>?>? tagsAll, Input<String?>? userData, Input<String?>? username})
Creates a new InstanceState. addOn Add-on configuration for the instance. See below. arn ARN of the Lightsail instance (matches id). availabilityZone Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command: aws lightsail get-regions --include-availability-zones. blueprintId ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: aws lightsail get-blueprints. bundleId Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: aws lightsail get-bundles. cpuCount Number of vCPUs the instance has. createdAt Timestamp when the instance was created. ipAddressType IP address type of the Lightsail Instance. Valid values: dualstack, ipv4, ipv6. Default: dualstack. ipv6Addresses List of IPv6 addresses for the Lightsail instance. isStaticIp Whether this instance has a static IP assigned to it. keyPairName Name of your key pair. Created in the Lightsail console (cannot use aws.ec2.KeyPair at this time). name Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account. privateIpAddress Private IP address of the instance. publicIpAddress Public IP address of the instance. ramSize Amount of RAM in GB on the instance (e.g., 1.0). region Region where this resource will be managed. Defaults to the Region set in the provider configuration. tags Map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. userData Single lined launch script as a string to configure server with additional user data. username User name for connecting to the instance (e.g., ec2-user).
const
InstanceState.fromMap(Map<String, dynamic> map)
factory

Properties

addOn → Input<InstanceAddOn?>?
Add-on configuration for the instance. See below.
final
arn → Input<String?>?
ARN of the Lightsail instance (matches id).
final
availabilityZone → Input<String?>?
Availability Zone in which to create your instance. A list of available zones can be obtained using the AWS CLI command: aws lightsail get-regions --include-availability-zones.
final
blueprintId → Input<String?>?
ID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command: aws lightsail get-blueprints.
final
bundleId → Input<String?>?
Bundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command: aws lightsail get-bundles.
final
cpuCount → Input<int?>?
Number of vCPUs the instance has.
final
createdAt → Input<String?>?
Timestamp when the instance was created.
final
hashCode → int
The hash code for this object.
no setterinherited
ipAddressType → Input<String?>?
IP address type of the Lightsail Instance. Valid values: dualstack, ipv4, ipv6. Default: dualstack.
final
ipv6Addresses → Input<List<String>?>?
List of IPv6 addresses for the Lightsail instance.
final
isStaticIp → Input<bool?>?
Whether this instance has a static IP assigned to it.
final
keyPairName → Input<String?>?
Name of your key pair. Created in the Lightsail console (cannot use aws.ec2.KeyPair at this time).
final
name → Input<String?>?
Name of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.
final
privateIpAddress → Input<String?>?
Private IP address of the instance.
final
publicIpAddress → Input<String?>?
Public IP address of the instance.
final
ramSize → Input<double?>?
Amount of RAM in GB on the instance (e.g., 1.0).
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tags → Input<Map<String, String>?>?
Map of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
final
tagsAll → Input<Map<String, String>?>?
Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
final
userData → Input<String?>?
Single lined launch script as a string to configure server with additional user data.
final
username → Input<String?>?
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
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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