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< ? ipv6Addresses, Input<String> ?>bool?> ? isStaticIp, Input<String?> ? keyPairName, Input<String?> ? name, Input<String?> ? privateIpAddress, Input<String?> ? publicIpAddress, Input<double?> ? ramSize, Input<String?> ? region, Input<Map< ? tags, Input<String, String> ?>Map< ? tagsAll, Input<String, String> ?>String?> ? userData, Input<String?> ? username}) -
Creates a new InstanceState.
addOnAdd-on configuration for the instance. See below.arnARN of the Lightsail instance (matchesid).availabilityZoneAvailability 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.blueprintIdID for a virtual private server image. A list of available blueprint IDs can be obtained using the AWS CLI command:aws lightsail get-blueprints.bundleIdBundle of specification information. A list of available bundle IDs can be obtained using the AWS CLI command:aws lightsail get-bundles.cpuCountNumber of vCPUs the instance has.createdAtTimestamp when the instance was created.ipAddressTypeIP address type of the Lightsail Instance. Valid values:dualstack,ipv4,ipv6. Default:dualstack.ipv6AddressesList of IPv6 addresses for the Lightsail instance.isStaticIpWhether this instance has a static IP assigned to it.keyPairNameName of your key pair. Created in the Lightsail console (cannot useaws.ec2.KeyPairat this time).nameName of the Lightsail Instance. Names must be unique within each AWS Region in your Lightsail account.privateIpAddressPrivate IP address of the instance.publicIpAddressPublic IP address of the instance.ramSizeAmount of RAM in GB on the instance (e.g., 1.0).regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.tagsMap of tags to assign to the resource. To create a key-only tag, use an empty string as the value. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.tagsAllMap of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.userDataSingle lined launch script as a string to configure server with additional user data.usernameUser 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.KeyPairat 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
-
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
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration 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