Instance class
Describes an EC2 instance.
Constructors
- Instance.new({required String availabilityZone, required String healthStatus, required String instanceId, required LifecycleState lifecycleState, required bool protectedFromScaleIn, String? instanceType, String? launchConfigurationName, LaunchTemplateSpecification? launchTemplate, String? weightedCapacity})
- Instance.fromXml(XmlElement elem)
-
factory
Properties
- availabilityZone → String
-
The Availability Zone in which the instance is running.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- healthStatus → String
-
The last reported health status of the instance. "Healthy" means that the
instance is healthy and should remain in service. "Unhealthy" means that the
instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and
replace it.
final
- instanceId → String
-
The ID of the instance.
final
- instanceType → String?
-
The instance type of the EC2 instance.
final
- launchConfigurationName → String?
-
The launch configuration associated with the instance.
final
- launchTemplate → LaunchTemplateSpecification?
-
The launch template for the instance.
final
- lifecycleState → LifecycleState
-
A description of the current lifecycle state. The
Quarantined
state is not used.final - protectedFromScaleIn → bool
-
Indicates whether the instance is protected from termination by Amazon EC2
Auto Scaling when scaling in.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weightedCapacity → String?
-
The number of capacity units contributed by the instance based on its
instance type.
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