Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Instance = Instance' {}
- newInstance :: Text -> Text -> LifecycleState -> Text -> Bool -> Instance
- instance_weightedCapacity :: Lens' Instance (Maybe Text)
- instance_instanceType :: Lens' Instance (Maybe Text)
- instance_launchConfigurationName :: Lens' Instance (Maybe Text)
- instance_launchTemplate :: Lens' Instance (Maybe LaunchTemplateSpecification)
- instance_instanceId :: Lens' Instance Text
- instance_availabilityZone :: Lens' Instance Text
- instance_lifecycleState :: Lens' Instance LifecycleState
- instance_healthStatus :: Lens' Instance Text
- instance_protectedFromScaleIn :: Lens' Instance Bool
Documentation
Describes an EC2 instance.
See: newInstance
smart constructor.
Instance' | |
|
Instances
Create a value of Instance
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:weightedCapacity:Instance'
, instance_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.
$sel:instanceType:Instance'
, instance_instanceType
- The instance type of the EC2 instance.
$sel:launchConfigurationName:Instance'
, instance_launchConfigurationName
- The launch configuration associated with the instance.
$sel:launchTemplate:Instance'
, instance_launchTemplate
- The launch template for the instance.
$sel:instanceId:Instance'
, instance_instanceId
- The ID of the instance.
$sel:availabilityZone:Instance'
, instance_availabilityZone
- The Availability Zone in which the instance is running.
$sel:lifecycleState:Instance'
, instance_lifecycleState
- A description of the current lifecycle state. The Quarantined
state is
not used. For information about lifecycle states, see
Instance lifecycle
in the Amazon EC2 Auto Scaling User Guide.
$sel:healthStatus:Instance'
, instance_healthStatus
- 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.
$sel:protectedFromScaleIn:Instance'
, instance_protectedFromScaleIn
- Indicates whether the instance is protected from termination by Amazon
EC2 Auto Scaling when scaling in.
instance_weightedCapacity :: Lens' Instance (Maybe Text) Source #
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
instance_launchConfigurationName :: Lens' Instance (Maybe Text) Source #
The launch configuration associated with the instance.
instance_launchTemplate :: Lens' Instance (Maybe LaunchTemplateSpecification) Source #
The launch template for the instance.
instance_availabilityZone :: Lens' Instance Text Source #
The Availability Zone in which the instance is running.
instance_lifecycleState :: Lens' Instance LifecycleState Source #
A description of the current lifecycle state. The Quarantined
state is
not used. For information about lifecycle states, see
Instance lifecycle
in the Amazon EC2 Auto Scaling User Guide.