{-# 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.Activity where
import Amazonka.AutoScaling.Types.ScalingActivityStatusCode
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Activity = Activity'
{
Activity -> Maybe Int
progress :: Prelude.Maybe Prelude.Int,
Activity -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
Activity -> Maybe Text
autoScalingGroupState :: Prelude.Maybe Prelude.Text,
Activity -> Maybe ISO8601
endTime :: Prelude.Maybe Core.ISO8601,
Activity -> Maybe Text
details :: Prelude.Maybe Prelude.Text,
Activity -> Maybe Text
autoScalingGroupARN :: Prelude.Maybe Prelude.Text,
Activity -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
Activity -> Text
activityId :: Prelude.Text,
Activity -> Text
autoScalingGroupName :: Prelude.Text,
Activity -> Text
cause :: Prelude.Text,
Activity -> ISO8601
startTime :: Core.ISO8601,
Activity -> ScalingActivityStatusCode
statusCode :: ScalingActivityStatusCode
}
deriving (Activity -> Activity -> Bool
(Activity -> Activity -> Bool)
-> (Activity -> Activity -> Bool) -> Eq Activity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Activity -> Activity -> Bool
$c/= :: Activity -> Activity -> Bool
== :: Activity -> Activity -> Bool
$c== :: Activity -> Activity -> Bool
Prelude.Eq, ReadPrec [Activity]
ReadPrec Activity
Int -> ReadS Activity
ReadS [Activity]
(Int -> ReadS Activity)
-> ReadS [Activity]
-> ReadPrec Activity
-> ReadPrec [Activity]
-> Read Activity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Activity]
$creadListPrec :: ReadPrec [Activity]
readPrec :: ReadPrec Activity
$creadPrec :: ReadPrec Activity
readList :: ReadS [Activity]
$creadList :: ReadS [Activity]
readsPrec :: Int -> ReadS Activity
$creadsPrec :: Int -> ReadS Activity
Prelude.Read, Int -> Activity -> ShowS
[Activity] -> ShowS
Activity -> String
(Int -> Activity -> ShowS)
-> (Activity -> String) -> ([Activity] -> ShowS) -> Show Activity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Activity] -> ShowS
$cshowList :: [Activity] -> ShowS
show :: Activity -> String
$cshow :: Activity -> String
showsPrec :: Int -> Activity -> ShowS
$cshowsPrec :: Int -> Activity -> ShowS
Prelude.Show, (forall x. Activity -> Rep Activity x)
-> (forall x. Rep Activity x -> Activity) -> Generic Activity
forall x. Rep Activity x -> Activity
forall x. Activity -> Rep Activity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Activity x -> Activity
$cfrom :: forall x. Activity -> Rep Activity x
Prelude.Generic)
newActivity ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
ScalingActivityStatusCode ->
Activity
newActivity :: Text
-> Text -> Text -> UTCTime -> ScalingActivityStatusCode -> Activity
newActivity
Text
pActivityId_
Text
pAutoScalingGroupName_
Text
pCause_
UTCTime
pStartTime_
ScalingActivityStatusCode
pStatusCode_ =
Activity' :: Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity
Activity'
{ $sel:progress:Activity' :: Maybe Int
progress = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:Activity' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoScalingGroupState:Activity' :: Maybe Text
autoScalingGroupState = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:Activity' :: Maybe ISO8601
endTime = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:details:Activity' :: Maybe Text
details = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoScalingGroupARN:Activity' :: Maybe Text
autoScalingGroupARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:Activity' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:activityId:Activity' :: Text
activityId = Text
pActivityId_,
$sel:autoScalingGroupName:Activity' :: Text
autoScalingGroupName = Text
pAutoScalingGroupName_,
$sel:cause:Activity' :: Text
cause = Text
pCause_,
$sel:startTime:Activity' :: ISO8601
startTime = Tagged UTCTime (Identity UTCTime)
-> Tagged ISO8601 (Identity ISO8601)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged ISO8601 (Identity ISO8601))
-> UTCTime -> ISO8601
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pStartTime_,
$sel:statusCode:Activity' :: ScalingActivityStatusCode
statusCode = ScalingActivityStatusCode
pStatusCode_
}
activity_progress :: Lens.Lens' Activity (Prelude.Maybe Prelude.Int)
activity_progress :: (Maybe Int -> f (Maybe Int)) -> Activity -> f Activity
activity_progress = (Activity -> Maybe Int)
-> (Activity -> Maybe Int -> Activity)
-> Lens Activity Activity (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe Int
progress :: Maybe Int
$sel:progress:Activity' :: Activity -> Maybe Int
progress} -> Maybe Int
progress) (\s :: Activity
s@Activity' {} Maybe Int
a -> Activity
s {$sel:progress:Activity' :: Maybe Int
progress = Maybe Int
a} :: Activity)
activity_statusMessage :: Lens.Lens' Activity (Prelude.Maybe Prelude.Text)
activity_statusMessage :: (Maybe Text -> f (Maybe Text)) -> Activity -> f Activity
activity_statusMessage = (Activity -> Maybe Text)
-> (Activity -> Maybe Text -> Activity)
-> Lens Activity Activity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:Activity' :: Activity -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: Activity
s@Activity' {} Maybe Text
a -> Activity
s {$sel:statusMessage:Activity' :: Maybe Text
statusMessage = Maybe Text
a} :: Activity)
activity_autoScalingGroupState :: Lens.Lens' Activity (Prelude.Maybe Prelude.Text)
activity_autoScalingGroupState :: (Maybe Text -> f (Maybe Text)) -> Activity -> f Activity
activity_autoScalingGroupState = (Activity -> Maybe Text)
-> (Activity -> Maybe Text -> Activity)
-> Lens Activity Activity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe Text
autoScalingGroupState :: Maybe Text
$sel:autoScalingGroupState:Activity' :: Activity -> Maybe Text
autoScalingGroupState} -> Maybe Text
autoScalingGroupState) (\s :: Activity
s@Activity' {} Maybe Text
a -> Activity
s {$sel:autoScalingGroupState:Activity' :: Maybe Text
autoScalingGroupState = Maybe Text
a} :: Activity)
activity_endTime :: Lens.Lens' Activity (Prelude.Maybe Prelude.UTCTime)
activity_endTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Activity -> f Activity
activity_endTime = (Activity -> Maybe ISO8601)
-> (Activity -> Maybe ISO8601 -> Activity)
-> Lens Activity Activity (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe ISO8601
endTime :: Maybe ISO8601
$sel:endTime:Activity' :: Activity -> Maybe ISO8601
endTime} -> Maybe ISO8601
endTime) (\s :: Activity
s@Activity' {} Maybe ISO8601
a -> Activity
s {$sel:endTime:Activity' :: Maybe ISO8601
endTime = Maybe ISO8601
a} :: Activity) ((Maybe ISO8601 -> f (Maybe ISO8601)) -> Activity -> f Activity)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Activity
-> f Activity
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
activity_details :: Lens.Lens' Activity (Prelude.Maybe Prelude.Text)
activity_details :: (Maybe Text -> f (Maybe Text)) -> Activity -> f Activity
activity_details = (Activity -> Maybe Text)
-> (Activity -> Maybe Text -> Activity)
-> Lens Activity Activity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe Text
details :: Maybe Text
$sel:details:Activity' :: Activity -> Maybe Text
details} -> Maybe Text
details) (\s :: Activity
s@Activity' {} Maybe Text
a -> Activity
s {$sel:details:Activity' :: Maybe Text
details = Maybe Text
a} :: Activity)
activity_autoScalingGroupARN :: Lens.Lens' Activity (Prelude.Maybe Prelude.Text)
activity_autoScalingGroupARN :: (Maybe Text -> f (Maybe Text)) -> Activity -> f Activity
activity_autoScalingGroupARN = (Activity -> Maybe Text)
-> (Activity -> Maybe Text -> Activity)
-> Lens Activity Activity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe Text
autoScalingGroupARN :: Maybe Text
$sel:autoScalingGroupARN:Activity' :: Activity -> Maybe Text
autoScalingGroupARN} -> Maybe Text
autoScalingGroupARN) (\s :: Activity
s@Activity' {} Maybe Text
a -> Activity
s {$sel:autoScalingGroupARN:Activity' :: Maybe Text
autoScalingGroupARN = Maybe Text
a} :: Activity)
activity_description :: Lens.Lens' Activity (Prelude.Maybe Prelude.Text)
activity_description :: (Maybe Text -> f (Maybe Text)) -> Activity -> f Activity
activity_description = (Activity -> Maybe Text)
-> (Activity -> Maybe Text -> Activity)
-> Lens Activity Activity (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Maybe Text
description :: Maybe Text
$sel:description:Activity' :: Activity -> Maybe Text
description} -> Maybe Text
description) (\s :: Activity
s@Activity' {} Maybe Text
a -> Activity
s {$sel:description:Activity' :: Maybe Text
description = Maybe Text
a} :: Activity)
activity_activityId :: Lens.Lens' Activity Prelude.Text
activity_activityId :: (Text -> f Text) -> Activity -> f Activity
activity_activityId = (Activity -> Text)
-> (Activity -> Text -> Activity)
-> Lens Activity Activity Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Text
activityId :: Text
$sel:activityId:Activity' :: Activity -> Text
activityId} -> Text
activityId) (\s :: Activity
s@Activity' {} Text
a -> Activity
s {$sel:activityId:Activity' :: Text
activityId = Text
a} :: Activity)
activity_autoScalingGroupName :: Lens.Lens' Activity Prelude.Text
activity_autoScalingGroupName :: (Text -> f Text) -> Activity -> f Activity
activity_autoScalingGroupName = (Activity -> Text)
-> (Activity -> Text -> Activity)
-> Lens Activity Activity Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Text
autoScalingGroupName :: Text
$sel:autoScalingGroupName:Activity' :: Activity -> Text
autoScalingGroupName} -> Text
autoScalingGroupName) (\s :: Activity
s@Activity' {} Text
a -> Activity
s {$sel:autoScalingGroupName:Activity' :: Text
autoScalingGroupName = Text
a} :: Activity)
activity_cause :: Lens.Lens' Activity Prelude.Text
activity_cause :: (Text -> f Text) -> Activity -> f Activity
activity_cause = (Activity -> Text)
-> (Activity -> Text -> Activity)
-> Lens Activity Activity Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {Text
cause :: Text
$sel:cause:Activity' :: Activity -> Text
cause} -> Text
cause) (\s :: Activity
s@Activity' {} Text
a -> Activity
s {$sel:cause:Activity' :: Text
cause = Text
a} :: Activity)
activity_startTime :: Lens.Lens' Activity Prelude.UTCTime
activity_startTime :: (UTCTime -> f UTCTime) -> Activity -> f Activity
activity_startTime = (Activity -> ISO8601)
-> (Activity -> ISO8601 -> Activity)
-> Lens Activity Activity ISO8601 ISO8601
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {ISO8601
startTime :: ISO8601
$sel:startTime:Activity' :: Activity -> ISO8601
startTime} -> ISO8601
startTime) (\s :: Activity
s@Activity' {} ISO8601
a -> Activity
s {$sel:startTime:Activity' :: ISO8601
startTime = ISO8601
a} :: Activity) ((ISO8601 -> f ISO8601) -> Activity -> f Activity)
-> ((UTCTime -> f UTCTime) -> ISO8601 -> f ISO8601)
-> (UTCTime -> f UTCTime)
-> Activity
-> f Activity
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> ISO8601 -> f ISO8601
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
activity_statusCode :: Lens.Lens' Activity ScalingActivityStatusCode
activity_statusCode :: (ScalingActivityStatusCode -> f ScalingActivityStatusCode)
-> Activity -> f Activity
activity_statusCode = (Activity -> ScalingActivityStatusCode)
-> (Activity -> ScalingActivityStatusCode -> Activity)
-> Lens
Activity
Activity
ScalingActivityStatusCode
ScalingActivityStatusCode
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Activity' {ScalingActivityStatusCode
statusCode :: ScalingActivityStatusCode
$sel:statusCode:Activity' :: Activity -> ScalingActivityStatusCode
statusCode} -> ScalingActivityStatusCode
statusCode) (\s :: Activity
s@Activity' {} ScalingActivityStatusCode
a -> Activity
s {$sel:statusCode:Activity' :: ScalingActivityStatusCode
statusCode = ScalingActivityStatusCode
a} :: Activity)
instance Core.FromXML Activity where
parseXML :: [Node] -> Either String Activity
parseXML [Node]
x =
Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity
Activity'
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe Int)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Progress")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
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
"StatusMessage")
Either
String
(Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe Text)
-> Either
String
(Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
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
"AutoScalingGroupState")
Either
String
(Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EndTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
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
"Details")
Either
String
(Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
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
"AutoScalingGroupARN")
Either
String
(Maybe Text
-> Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String (Maybe Text)
-> Either
String
(Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
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
"Description")
Either
String
(Text
-> Text
-> Text
-> ISO8601
-> ScalingActivityStatusCode
-> Activity)
-> Either String Text
-> Either
String
(Text -> Text -> ISO8601 -> ScalingActivityStatusCode -> Activity)
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
"ActivityId")
Either
String
(Text -> Text -> ISO8601 -> ScalingActivityStatusCode -> Activity)
-> Either String Text
-> Either
String (Text -> ISO8601 -> ScalingActivityStatusCode -> Activity)
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 -> ISO8601 -> ScalingActivityStatusCode -> Activity)
-> Either String Text
-> Either String (ISO8601 -> ScalingActivityStatusCode -> Activity)
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
"Cause")
Either String (ISO8601 -> ScalingActivityStatusCode -> Activity)
-> Either String ISO8601
-> Either String (ScalingActivityStatusCode -> Activity)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ISO8601
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"StartTime")
Either String (ScalingActivityStatusCode -> Activity)
-> Either String ScalingActivityStatusCode
-> Either String Activity
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ScalingActivityStatusCode
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"StatusCode")
instance Prelude.Hashable Activity
instance Prelude.NFData Activity