{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.AutoScaling.Types.AutoScalingInstanceDetails where
import Amazonka.AutoScaling.Types.LaunchTemplateSpecification
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AutoScalingInstanceDetails = AutoScalingInstanceDetails'
{
AutoScalingInstanceDetails -> Maybe Text
weightedCapacity :: Prelude.Maybe Prelude.Text,
AutoScalingInstanceDetails -> Maybe Text
instanceType :: Prelude.Maybe Prelude.Text,
AutoScalingInstanceDetails -> Maybe Text
launchConfigurationName :: Prelude.Maybe Prelude.Text,
AutoScalingInstanceDetails -> Maybe LaunchTemplateSpecification
launchTemplate :: Prelude.Maybe LaunchTemplateSpecification,
AutoScalingInstanceDetails -> Text
instanceId :: Prelude.Text,
AutoScalingInstanceDetails -> Text
autoScalingGroupName :: Prelude.Text,
AutoScalingInstanceDetails -> Text
availabilityZone :: Prelude.Text,
AutoScalingInstanceDetails -> Text
lifecycleState :: Prelude.Text,
AutoScalingInstanceDetails -> Text
healthStatus :: Prelude.Text,
AutoScalingInstanceDetails -> Bool
protectedFromScaleIn :: Prelude.Bool
}
deriving (AutoScalingInstanceDetails -> AutoScalingInstanceDetails -> Bool
(AutoScalingInstanceDetails -> AutoScalingInstanceDetails -> Bool)
-> (AutoScalingInstanceDetails
-> AutoScalingInstanceDetails -> Bool)
-> Eq AutoScalingInstanceDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoScalingInstanceDetails -> AutoScalingInstanceDetails -> Bool
$c/= :: AutoScalingInstanceDetails -> AutoScalingInstanceDetails -> Bool
== :: AutoScalingInstanceDetails -> AutoScalingInstanceDetails -> Bool
$c== :: AutoScalingInstanceDetails -> AutoScalingInstanceDetails -> Bool
Prelude.Eq, ReadPrec [AutoScalingInstanceDetails]
ReadPrec AutoScalingInstanceDetails
Int -> ReadS AutoScalingInstanceDetails
ReadS [AutoScalingInstanceDetails]
(Int -> ReadS AutoScalingInstanceDetails)
-> ReadS [AutoScalingInstanceDetails]
-> ReadPrec AutoScalingInstanceDetails
-> ReadPrec [AutoScalingInstanceDetails]
-> Read AutoScalingInstanceDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoScalingInstanceDetails]
$creadListPrec :: ReadPrec [AutoScalingInstanceDetails]
readPrec :: ReadPrec AutoScalingInstanceDetails
$creadPrec :: ReadPrec AutoScalingInstanceDetails
readList :: ReadS [AutoScalingInstanceDetails]
$creadList :: ReadS [AutoScalingInstanceDetails]
readsPrec :: Int -> ReadS AutoScalingInstanceDetails
$creadsPrec :: Int -> ReadS AutoScalingInstanceDetails
Prelude.Read, Int -> AutoScalingInstanceDetails -> ShowS
[AutoScalingInstanceDetails] -> ShowS
AutoScalingInstanceDetails -> String
(Int -> AutoScalingInstanceDetails -> ShowS)
-> (AutoScalingInstanceDetails -> String)
-> ([AutoScalingInstanceDetails] -> ShowS)
-> Show AutoScalingInstanceDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoScalingInstanceDetails] -> ShowS
$cshowList :: [AutoScalingInstanceDetails] -> ShowS
show :: AutoScalingInstanceDetails -> String
$cshow :: AutoScalingInstanceDetails -> String
showsPrec :: Int -> AutoScalingInstanceDetails -> ShowS
$cshowsPrec :: Int -> AutoScalingInstanceDetails -> ShowS
Prelude.Show, (forall x.
AutoScalingInstanceDetails -> Rep AutoScalingInstanceDetails x)
-> (forall x.
Rep AutoScalingInstanceDetails x -> AutoScalingInstanceDetails)
-> Generic AutoScalingInstanceDetails
forall x.
Rep AutoScalingInstanceDetails x -> AutoScalingInstanceDetails
forall x.
AutoScalingInstanceDetails -> Rep AutoScalingInstanceDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AutoScalingInstanceDetails x -> AutoScalingInstanceDetails
$cfrom :: forall x.
AutoScalingInstanceDetails -> Rep AutoScalingInstanceDetails x
Prelude.Generic)
newAutoScalingInstanceDetails ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Bool ->
AutoScalingInstanceDetails
newAutoScalingInstanceDetails :: Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails
newAutoScalingInstanceDetails
Text
pInstanceId_
Text
pAutoScalingGroupName_
Text
pAvailabilityZone_
Text
pLifecycleState_
Text
pHealthStatus_
Bool
pProtectedFromScaleIn_ =
AutoScalingInstanceDetails' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails
AutoScalingInstanceDetails'
{ $sel:weightedCapacity:AutoScalingInstanceDetails' :: Maybe Text
weightedCapacity =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:instanceType:AutoScalingInstanceDetails' :: Maybe Text
instanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:launchConfigurationName:AutoScalingInstanceDetails' :: Maybe Text
launchConfigurationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:launchTemplate:AutoScalingInstanceDetails' :: Maybe LaunchTemplateSpecification
launchTemplate = Maybe LaunchTemplateSpecification
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:AutoScalingInstanceDetails' :: Text
instanceId = Text
pInstanceId_,
$sel:autoScalingGroupName:AutoScalingInstanceDetails' :: Text
autoScalingGroupName = Text
pAutoScalingGroupName_,
$sel:availabilityZone:AutoScalingInstanceDetails' :: Text
availabilityZone = Text
pAvailabilityZone_,
$sel:lifecycleState:AutoScalingInstanceDetails' :: Text
lifecycleState = Text
pLifecycleState_,
$sel:healthStatus:AutoScalingInstanceDetails' :: Text
healthStatus = Text
pHealthStatus_,
$sel:protectedFromScaleIn:AutoScalingInstanceDetails' :: Bool
protectedFromScaleIn = Bool
pProtectedFromScaleIn_
}
autoScalingInstanceDetails_weightedCapacity :: Lens.Lens' AutoScalingInstanceDetails (Prelude.Maybe Prelude.Text)
autoScalingInstanceDetails_weightedCapacity :: (Maybe Text -> f (Maybe Text))
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_weightedCapacity = (AutoScalingInstanceDetails -> Maybe Text)
-> (AutoScalingInstanceDetails
-> Maybe Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails
AutoScalingInstanceDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Maybe Text
weightedCapacity :: Maybe Text
$sel:weightedCapacity:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Maybe Text
weightedCapacity} -> Maybe Text
weightedCapacity) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Maybe Text
a -> AutoScalingInstanceDetails
s {$sel:weightedCapacity:AutoScalingInstanceDetails' :: Maybe Text
weightedCapacity = Maybe Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_instanceType :: Lens.Lens' AutoScalingInstanceDetails (Prelude.Maybe Prelude.Text)
autoScalingInstanceDetails_instanceType :: (Maybe Text -> f (Maybe Text))
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_instanceType = (AutoScalingInstanceDetails -> Maybe Text)
-> (AutoScalingInstanceDetails
-> Maybe Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails
AutoScalingInstanceDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Maybe Text
instanceType :: Maybe Text
$sel:instanceType:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Maybe Text
instanceType} -> Maybe Text
instanceType) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Maybe Text
a -> AutoScalingInstanceDetails
s {$sel:instanceType:AutoScalingInstanceDetails' :: Maybe Text
instanceType = Maybe Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_launchConfigurationName :: Lens.Lens' AutoScalingInstanceDetails (Prelude.Maybe Prelude.Text)
autoScalingInstanceDetails_launchConfigurationName :: (Maybe Text -> f (Maybe Text))
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_launchConfigurationName = (AutoScalingInstanceDetails -> Maybe Text)
-> (AutoScalingInstanceDetails
-> Maybe Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails
AutoScalingInstanceDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Maybe Text
launchConfigurationName :: Maybe Text
$sel:launchConfigurationName:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Maybe Text
launchConfigurationName} -> Maybe Text
launchConfigurationName) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Maybe Text
a -> AutoScalingInstanceDetails
s {$sel:launchConfigurationName:AutoScalingInstanceDetails' :: Maybe Text
launchConfigurationName = Maybe Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_launchTemplate :: Lens.Lens' AutoScalingInstanceDetails (Prelude.Maybe LaunchTemplateSpecification)
autoScalingInstanceDetails_launchTemplate :: (Maybe LaunchTemplateSpecification
-> f (Maybe LaunchTemplateSpecification))
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_launchTemplate = (AutoScalingInstanceDetails -> Maybe LaunchTemplateSpecification)
-> (AutoScalingInstanceDetails
-> Maybe LaunchTemplateSpecification -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails
AutoScalingInstanceDetails
(Maybe LaunchTemplateSpecification)
(Maybe LaunchTemplateSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Maybe LaunchTemplateSpecification
launchTemplate :: Maybe LaunchTemplateSpecification
$sel:launchTemplate:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Maybe LaunchTemplateSpecification
launchTemplate} -> Maybe LaunchTemplateSpecification
launchTemplate) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Maybe LaunchTemplateSpecification
a -> AutoScalingInstanceDetails
s {$sel:launchTemplate:AutoScalingInstanceDetails' :: Maybe LaunchTemplateSpecification
launchTemplate = Maybe LaunchTemplateSpecification
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_instanceId :: Lens.Lens' AutoScalingInstanceDetails Prelude.Text
autoScalingInstanceDetails_instanceId :: (Text -> f Text)
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_instanceId = (AutoScalingInstanceDetails -> Text)
-> (AutoScalingInstanceDetails
-> Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails AutoScalingInstanceDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Text
instanceId :: Text
$sel:instanceId:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Text
instanceId} -> Text
instanceId) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Text
a -> AutoScalingInstanceDetails
s {$sel:instanceId:AutoScalingInstanceDetails' :: Text
instanceId = Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_autoScalingGroupName :: Lens.Lens' AutoScalingInstanceDetails Prelude.Text
autoScalingInstanceDetails_autoScalingGroupName :: (Text -> f Text)
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_autoScalingGroupName = (AutoScalingInstanceDetails -> Text)
-> (AutoScalingInstanceDetails
-> Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails AutoScalingInstanceDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Text
autoScalingGroupName :: Text
$sel:autoScalingGroupName:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Text
autoScalingGroupName} -> Text
autoScalingGroupName) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Text
a -> AutoScalingInstanceDetails
s {$sel:autoScalingGroupName:AutoScalingInstanceDetails' :: Text
autoScalingGroupName = Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_availabilityZone :: Lens.Lens' AutoScalingInstanceDetails Prelude.Text
autoScalingInstanceDetails_availabilityZone :: (Text -> f Text)
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_availabilityZone = (AutoScalingInstanceDetails -> Text)
-> (AutoScalingInstanceDetails
-> Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails AutoScalingInstanceDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Text
availabilityZone :: Text
$sel:availabilityZone:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Text
availabilityZone} -> Text
availabilityZone) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Text
a -> AutoScalingInstanceDetails
s {$sel:availabilityZone:AutoScalingInstanceDetails' :: Text
availabilityZone = Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_lifecycleState :: Lens.Lens' AutoScalingInstanceDetails Prelude.Text
autoScalingInstanceDetails_lifecycleState :: (Text -> f Text)
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_lifecycleState = (AutoScalingInstanceDetails -> Text)
-> (AutoScalingInstanceDetails
-> Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails AutoScalingInstanceDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Text
lifecycleState :: Text
$sel:lifecycleState:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Text
lifecycleState} -> Text
lifecycleState) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Text
a -> AutoScalingInstanceDetails
s {$sel:lifecycleState:AutoScalingInstanceDetails' :: Text
lifecycleState = Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_healthStatus :: Lens.Lens' AutoScalingInstanceDetails Prelude.Text
autoScalingInstanceDetails_healthStatus :: (Text -> f Text)
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_healthStatus = (AutoScalingInstanceDetails -> Text)
-> (AutoScalingInstanceDetails
-> Text -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails AutoScalingInstanceDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Text
healthStatus :: Text
$sel:healthStatus:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Text
healthStatus} -> Text
healthStatus) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Text
a -> AutoScalingInstanceDetails
s {$sel:healthStatus:AutoScalingInstanceDetails' :: Text
healthStatus = Text
a} :: AutoScalingInstanceDetails)
autoScalingInstanceDetails_protectedFromScaleIn :: Lens.Lens' AutoScalingInstanceDetails Prelude.Bool
autoScalingInstanceDetails_protectedFromScaleIn :: (Bool -> f Bool)
-> AutoScalingInstanceDetails -> f AutoScalingInstanceDetails
autoScalingInstanceDetails_protectedFromScaleIn = (AutoScalingInstanceDetails -> Bool)
-> (AutoScalingInstanceDetails
-> Bool -> AutoScalingInstanceDetails)
-> Lens
AutoScalingInstanceDetails AutoScalingInstanceDetails Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoScalingInstanceDetails' {Bool
protectedFromScaleIn :: Bool
$sel:protectedFromScaleIn:AutoScalingInstanceDetails' :: AutoScalingInstanceDetails -> Bool
protectedFromScaleIn} -> Bool
protectedFromScaleIn) (\s :: AutoScalingInstanceDetails
s@AutoScalingInstanceDetails' {} Bool
a -> AutoScalingInstanceDetails
s {$sel:protectedFromScaleIn:AutoScalingInstanceDetails' :: Bool
protectedFromScaleIn = Bool
a} :: AutoScalingInstanceDetails)
instance Core.FromXML AutoScalingInstanceDetails where
parseXML :: [Node] -> Either String AutoScalingInstanceDetails
parseXML [Node]
x =
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails
AutoScalingInstanceDetails'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"WeightedCapacity")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"InstanceType")
Either
String
(Maybe Text
-> Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
-> Either String (Maybe Text)
-> Either
String
(Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LaunchConfigurationName")
Either
String
(Maybe LaunchTemplateSpecification
-> Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
-> Either String (Maybe LaunchTemplateSpecification)
-> Either
String
(Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe LaunchTemplateSpecification)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LaunchTemplate")
Either
String
(Text
-> Text
-> Text
-> Text
-> Text
-> Bool
-> AutoScalingInstanceDetails)
-> Either String Text
-> Either
String
(Text
-> Text -> Text -> Text -> Bool -> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"InstanceId")
Either
String
(Text
-> Text -> Text -> Text -> Bool -> AutoScalingInstanceDetails)
-> Either String Text
-> Either
String (Text -> Text -> Text -> Bool -> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"AutoScalingGroupName")
Either
String (Text -> Text -> Text -> Bool -> AutoScalingInstanceDetails)
-> Either String Text
-> Either
String (Text -> Text -> Bool -> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"AvailabilityZone")
Either String (Text -> Text -> Bool -> AutoScalingInstanceDetails)
-> Either String Text
-> Either String (Text -> Bool -> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"LifecycleState")
Either String (Text -> Bool -> AutoScalingInstanceDetails)
-> Either String Text
-> Either String (Bool -> AutoScalingInstanceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"HealthStatus")
Either String (Bool -> AutoScalingInstanceDetails)
-> Either String Bool -> Either String AutoScalingInstanceDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Bool
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"ProtectedFromScaleIn")
instance Prelude.Hashable AutoScalingInstanceDetails
instance Prelude.NFData AutoScalingInstanceDetails