{-# 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.ManagedBlockChain.Types.Node where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.ManagedBlockChain.Types.NodeFrameworkAttributes
import Amazonka.ManagedBlockChain.Types.NodeLogPublishingConfiguration
import Amazonka.ManagedBlockChain.Types.NodeStatus
import Amazonka.ManagedBlockChain.Types.StateDBType
import qualified Amazonka.Prelude as Prelude
data Node = Node'
{
Node -> Maybe NodeStatus
status :: Prelude.Maybe NodeStatus,
Node -> Maybe Text
kmsKeyArn :: Prelude.Maybe Prelude.Text,
Node -> Maybe NodeLogPublishingConfiguration
logPublishingConfiguration :: Prelude.Maybe NodeLogPublishingConfiguration,
Node -> Maybe Text
memberId :: Prelude.Maybe Prelude.Text,
Node -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
Node -> Maybe Text
networkId :: Prelude.Maybe Prelude.Text,
Node -> Maybe Text
instanceType :: Prelude.Maybe Prelude.Text,
Node -> Maybe StateDBType
stateDB :: Prelude.Maybe StateDBType,
Node -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
Node -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
Node -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
Node -> Maybe NodeFrameworkAttributes
frameworkAttributes :: Prelude.Maybe NodeFrameworkAttributes,
Node -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
}
deriving (Node -> Node -> Bool
(Node -> Node -> Bool) -> (Node -> Node -> Bool) -> Eq Node
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Node -> Node -> Bool
$c/= :: Node -> Node -> Bool
== :: Node -> Node -> Bool
$c== :: Node -> Node -> Bool
Prelude.Eq, ReadPrec [Node]
ReadPrec Node
Int -> ReadS Node
ReadS [Node]
(Int -> ReadS Node)
-> ReadS [Node] -> ReadPrec Node -> ReadPrec [Node] -> Read Node
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Node]
$creadListPrec :: ReadPrec [Node]
readPrec :: ReadPrec Node
$creadPrec :: ReadPrec Node
readList :: ReadS [Node]
$creadList :: ReadS [Node]
readsPrec :: Int -> ReadS Node
$creadsPrec :: Int -> ReadS Node
Prelude.Read, Int -> Node -> ShowS
[Node] -> ShowS
Node -> String
(Int -> Node -> ShowS)
-> (Node -> String) -> ([Node] -> ShowS) -> Show Node
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Node] -> ShowS
$cshowList :: [Node] -> ShowS
show :: Node -> String
$cshow :: Node -> String
showsPrec :: Int -> Node -> ShowS
$cshowsPrec :: Int -> Node -> ShowS
Prelude.Show, (forall x. Node -> Rep Node x)
-> (forall x. Rep Node x -> Node) -> Generic Node
forall x. Rep Node x -> Node
forall x. Node -> Rep Node x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Node x -> Node
$cfrom :: forall x. Node -> Rep Node x
Prelude.Generic)
newNode ::
Node
newNode :: Node
newNode =
Node' :: Maybe NodeStatus
-> Maybe Text
-> Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node
Node'
{ $sel:status:Node' :: Maybe NodeStatus
status = Maybe NodeStatus
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyArn:Node' :: Maybe Text
kmsKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:logPublishingConfiguration:Node' :: Maybe NodeLogPublishingConfiguration
logPublishingConfiguration = Maybe NodeLogPublishingConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:memberId:Node' :: Maybe Text
memberId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:Node' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkId:Node' :: Maybe Text
networkId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:instanceType:Node' :: Maybe Text
instanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stateDB:Node' :: Maybe StateDBType
stateDB = Maybe StateDBType
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:Node' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:Node' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:Node' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:frameworkAttributes:Node' :: Maybe NodeFrameworkAttributes
frameworkAttributes = Maybe NodeFrameworkAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:tags:Node' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
}
node_status :: Lens.Lens' Node (Prelude.Maybe NodeStatus)
node_status :: (Maybe NodeStatus -> f (Maybe NodeStatus)) -> Node -> f Node
node_status = (Node -> Maybe NodeStatus)
-> (Node -> Maybe NodeStatus -> Node)
-> Lens Node Node (Maybe NodeStatus) (Maybe NodeStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe NodeStatus
status :: Maybe NodeStatus
$sel:status:Node' :: Node -> Maybe NodeStatus
status} -> Maybe NodeStatus
status) (\s :: Node
s@Node' {} Maybe NodeStatus
a -> Node
s {$sel:status:Node' :: Maybe NodeStatus
status = Maybe NodeStatus
a} :: Node)
node_kmsKeyArn :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_kmsKeyArn :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_kmsKeyArn = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
kmsKeyArn :: Maybe Text
$sel:kmsKeyArn:Node' :: Node -> Maybe Text
kmsKeyArn} -> Maybe Text
kmsKeyArn) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:kmsKeyArn:Node' :: Maybe Text
kmsKeyArn = Maybe Text
a} :: Node)
node_logPublishingConfiguration :: Lens.Lens' Node (Prelude.Maybe NodeLogPublishingConfiguration)
node_logPublishingConfiguration :: (Maybe NodeLogPublishingConfiguration
-> f (Maybe NodeLogPublishingConfiguration))
-> Node -> f Node
node_logPublishingConfiguration = (Node -> Maybe NodeLogPublishingConfiguration)
-> (Node -> Maybe NodeLogPublishingConfiguration -> Node)
-> Lens
Node
Node
(Maybe NodeLogPublishingConfiguration)
(Maybe NodeLogPublishingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe NodeLogPublishingConfiguration
logPublishingConfiguration :: Maybe NodeLogPublishingConfiguration
$sel:logPublishingConfiguration:Node' :: Node -> Maybe NodeLogPublishingConfiguration
logPublishingConfiguration} -> Maybe NodeLogPublishingConfiguration
logPublishingConfiguration) (\s :: Node
s@Node' {} Maybe NodeLogPublishingConfiguration
a -> Node
s {$sel:logPublishingConfiguration:Node' :: Maybe NodeLogPublishingConfiguration
logPublishingConfiguration = Maybe NodeLogPublishingConfiguration
a} :: Node)
node_memberId :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_memberId :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_memberId = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
memberId :: Maybe Text
$sel:memberId:Node' :: Node -> Maybe Text
memberId} -> Maybe Text
memberId) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:memberId:Node' :: Maybe Text
memberId = Maybe Text
a} :: Node)
node_arn :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_arn :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_arn = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
arn :: Maybe Text
$sel:arn:Node' :: Node -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:arn:Node' :: Maybe Text
arn = Maybe Text
a} :: Node)
node_networkId :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_networkId :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_networkId = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
networkId :: Maybe Text
$sel:networkId:Node' :: Node -> Maybe Text
networkId} -> Maybe Text
networkId) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:networkId:Node' :: Maybe Text
networkId = Maybe Text
a} :: Node)
node_instanceType :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_instanceType :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_instanceType = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
instanceType :: Maybe Text
$sel:instanceType:Node' :: Node -> Maybe Text
instanceType} -> Maybe Text
instanceType) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:instanceType:Node' :: Maybe Text
instanceType = Maybe Text
a} :: Node)
node_stateDB :: Lens.Lens' Node (Prelude.Maybe StateDBType)
node_stateDB :: (Maybe StateDBType -> f (Maybe StateDBType)) -> Node -> f Node
node_stateDB = (Node -> Maybe StateDBType)
-> (Node -> Maybe StateDBType -> Node)
-> Lens Node Node (Maybe StateDBType) (Maybe StateDBType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe StateDBType
stateDB :: Maybe StateDBType
$sel:stateDB:Node' :: Node -> Maybe StateDBType
stateDB} -> Maybe StateDBType
stateDB) (\s :: Node
s@Node' {} Maybe StateDBType
a -> Node
s {$sel:stateDB:Node' :: Maybe StateDBType
stateDB = Maybe StateDBType
a} :: Node)
node_availabilityZone :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_availabilityZone :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_availabilityZone = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:Node' :: Node -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:availabilityZone:Node' :: Maybe Text
availabilityZone = Maybe Text
a} :: Node)
node_id :: Lens.Lens' Node (Prelude.Maybe Prelude.Text)
node_id :: (Maybe Text -> f (Maybe Text)) -> Node -> f Node
node_id = (Node -> Maybe Text)
-> (Node -> Maybe Text -> Node)
-> Lens Node Node (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe Text
id :: Maybe Text
$sel:id:Node' :: Node -> Maybe Text
id} -> Maybe Text
id) (\s :: Node
s@Node' {} Maybe Text
a -> Node
s {$sel:id:Node' :: Maybe Text
id = Maybe Text
a} :: Node)
node_creationDate :: Lens.Lens' Node (Prelude.Maybe Prelude.UTCTime)
node_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Node -> f Node
node_creationDate = (Node -> Maybe POSIX)
-> (Node -> Maybe POSIX -> Node)
-> Lens Node Node (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:Node' :: Node -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: Node
s@Node' {} Maybe POSIX
a -> Node
s {$sel:creationDate:Node' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: Node) ((Maybe POSIX -> f (Maybe POSIX)) -> Node -> f Node)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Node
-> f Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
node_frameworkAttributes :: Lens.Lens' Node (Prelude.Maybe NodeFrameworkAttributes)
node_frameworkAttributes :: (Maybe NodeFrameworkAttributes
-> f (Maybe NodeFrameworkAttributes))
-> Node -> f Node
node_frameworkAttributes = (Node -> Maybe NodeFrameworkAttributes)
-> (Node -> Maybe NodeFrameworkAttributes -> Node)
-> Lens
Node
Node
(Maybe NodeFrameworkAttributes)
(Maybe NodeFrameworkAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe NodeFrameworkAttributes
frameworkAttributes :: Maybe NodeFrameworkAttributes
$sel:frameworkAttributes:Node' :: Node -> Maybe NodeFrameworkAttributes
frameworkAttributes} -> Maybe NodeFrameworkAttributes
frameworkAttributes) (\s :: Node
s@Node' {} Maybe NodeFrameworkAttributes
a -> Node
s {$sel:frameworkAttributes:Node' :: Maybe NodeFrameworkAttributes
frameworkAttributes = Maybe NodeFrameworkAttributes
a} :: Node)
node_tags :: Lens.Lens' Node (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
node_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Node -> f Node
node_tags = (Node -> Maybe (HashMap Text Text))
-> (Node -> Maybe (HashMap Text Text) -> Node)
-> Lens
Node Node (Maybe (HashMap Text Text)) (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Node' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Node' :: Node -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Node
s@Node' {} Maybe (HashMap Text Text)
a -> Node
s {$sel:tags:Node' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Node) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Node -> f Node)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Node
-> f Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.FromJSON Node where
parseJSON :: Value -> Parser Node
parseJSON =
String -> (Object -> Parser Node) -> Value -> Parser Node
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Node"
( \Object
x ->
Maybe NodeStatus
-> Maybe Text
-> Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node
Node'
(Maybe NodeStatus
-> Maybe Text
-> Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe NodeStatus)
-> Parser
(Maybe Text
-> Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe NodeStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KmsKeyArn")
Parser
(Maybe NodeLogPublishingConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe NodeLogPublishingConfiguration)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe NodeLogPublishingConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LogPublishingConfiguration")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MemberId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NetworkId")
Parser
(Maybe Text
-> Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstanceType")
Parser
(Maybe StateDBType
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe StateDBType)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StateDBType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StateDB")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AvailabilityZone")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
Parser
(Maybe POSIX
-> Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text)
-> Node)
-> Parser (Maybe POSIX)
-> Parser
(Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text) -> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationDate")
Parser
(Maybe NodeFrameworkAttributes
-> Maybe (HashMap Text Text) -> Node)
-> Parser (Maybe NodeFrameworkAttributes)
-> Parser (Maybe (HashMap Text Text) -> Node)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe NodeFrameworkAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FrameworkAttributes")
Parser (Maybe (HashMap Text Text) -> Node)
-> Parser (Maybe (HashMap Text Text)) -> Parser Node
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable Node
instance Prelude.NFData Node