AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Describes an EC2 instance.
Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z
public class Instance
The Instance type exposes the following members
Name | Description | |
---|---|---|
Instance() |
Name | Type | Description | |
---|---|---|---|
AvailabilityZone | System.String |
Gets and sets the property AvailabilityZone. The Availability Zone in which the instance is running. |
|
HealthStatus | System.String |
Gets and sets the property HealthStatus.
The last reported health status of the instance. |
|
InstanceId | System.String |
Gets and sets the property InstanceId. The ID of the instance. |
|
InstanceType | System.String |
Gets and sets the property InstanceType. The instance type of the EC2 instance. |
|
LaunchConfigurationName | System.String |
Gets and sets the property LaunchConfigurationName. The launch configuration associated with the instance. |
|
LaunchTemplate | Amazon.AutoScaling.Model.LaunchTemplateSpecification |
Gets and sets the property LaunchTemplate. The launch template for the instance. |
|
LifecycleState | Amazon.AutoScaling.LifecycleState |
Gets and sets the property LifecycleState.
A description of the current lifecycle state. The |
|
ProtectedFromScaleIn | System.Boolean |
Gets and sets the property ProtectedFromScaleIn. Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in. |
|
WeightedCapacity | System.String |
Gets and sets the property WeightedCapacity. The number of capacity units contributed by the instance based on its instance type. Valid Range: Minimum value of 1. Maximum value of 999. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5