{-# 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.AMP.Types.RuleGroupsNamespaceDescription where
import Amazonka.AMP.Types.RuleGroupsNamespaceStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data RuleGroupsNamespaceDescription = RuleGroupsNamespaceDescription'
{
RuleGroupsNamespaceDescription -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
RuleGroupsNamespaceDescription -> Text
arn :: Prelude.Text,
RuleGroupsNamespaceDescription -> POSIX
createdAt :: Core.POSIX,
RuleGroupsNamespaceDescription -> Base64
data' :: Core.Base64,
RuleGroupsNamespaceDescription -> POSIX
modifiedAt :: Core.POSIX,
RuleGroupsNamespaceDescription -> Text
name :: Prelude.Text,
RuleGroupsNamespaceDescription -> RuleGroupsNamespaceStatus
status :: RuleGroupsNamespaceStatus
}
deriving (RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool
(RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool)
-> (RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool)
-> Eq RuleGroupsNamespaceDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool
$c/= :: RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool
== :: RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool
$c== :: RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceDescription -> Bool
Prelude.Eq, ReadPrec [RuleGroupsNamespaceDescription]
ReadPrec RuleGroupsNamespaceDescription
Int -> ReadS RuleGroupsNamespaceDescription
ReadS [RuleGroupsNamespaceDescription]
(Int -> ReadS RuleGroupsNamespaceDescription)
-> ReadS [RuleGroupsNamespaceDescription]
-> ReadPrec RuleGroupsNamespaceDescription
-> ReadPrec [RuleGroupsNamespaceDescription]
-> Read RuleGroupsNamespaceDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RuleGroupsNamespaceDescription]
$creadListPrec :: ReadPrec [RuleGroupsNamespaceDescription]
readPrec :: ReadPrec RuleGroupsNamespaceDescription
$creadPrec :: ReadPrec RuleGroupsNamespaceDescription
readList :: ReadS [RuleGroupsNamespaceDescription]
$creadList :: ReadS [RuleGroupsNamespaceDescription]
readsPrec :: Int -> ReadS RuleGroupsNamespaceDescription
$creadsPrec :: Int -> ReadS RuleGroupsNamespaceDescription
Prelude.Read, Int -> RuleGroupsNamespaceDescription -> ShowS
[RuleGroupsNamespaceDescription] -> ShowS
RuleGroupsNamespaceDescription -> String
(Int -> RuleGroupsNamespaceDescription -> ShowS)
-> (RuleGroupsNamespaceDescription -> String)
-> ([RuleGroupsNamespaceDescription] -> ShowS)
-> Show RuleGroupsNamespaceDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RuleGroupsNamespaceDescription] -> ShowS
$cshowList :: [RuleGroupsNamespaceDescription] -> ShowS
show :: RuleGroupsNamespaceDescription -> String
$cshow :: RuleGroupsNamespaceDescription -> String
showsPrec :: Int -> RuleGroupsNamespaceDescription -> ShowS
$cshowsPrec :: Int -> RuleGroupsNamespaceDescription -> ShowS
Prelude.Show, (forall x.
RuleGroupsNamespaceDescription
-> Rep RuleGroupsNamespaceDescription x)
-> (forall x.
Rep RuleGroupsNamespaceDescription x
-> RuleGroupsNamespaceDescription)
-> Generic RuleGroupsNamespaceDescription
forall x.
Rep RuleGroupsNamespaceDescription x
-> RuleGroupsNamespaceDescription
forall x.
RuleGroupsNamespaceDescription
-> Rep RuleGroupsNamespaceDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RuleGroupsNamespaceDescription x
-> RuleGroupsNamespaceDescription
$cfrom :: forall x.
RuleGroupsNamespaceDescription
-> Rep RuleGroupsNamespaceDescription x
Prelude.Generic)
newRuleGroupsNamespaceDescription ::
Prelude.Text ->
Prelude.UTCTime ->
Prelude.ByteString ->
Prelude.UTCTime ->
Prelude.Text ->
RuleGroupsNamespaceStatus ->
RuleGroupsNamespaceDescription
newRuleGroupsNamespaceDescription :: Text
-> UTCTime
-> ByteString
-> UTCTime
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription
newRuleGroupsNamespaceDescription
Text
pArn_
UTCTime
pCreatedAt_
ByteString
pData_
UTCTime
pModifiedAt_
Text
pName_
RuleGroupsNamespaceStatus
pStatus_ =
RuleGroupsNamespaceDescription' :: Maybe (HashMap Text Text)
-> Text
-> POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription'
{ $sel:tags:RuleGroupsNamespaceDescription' :: Maybe (HashMap Text Text)
tags =
Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:arn:RuleGroupsNamespaceDescription' :: Text
arn = Text
pArn_,
$sel:createdAt:RuleGroupsNamespaceDescription' :: POSIX
createdAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreatedAt_,
$sel:data':RuleGroupsNamespaceDescription' :: Base64
data' = Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64)
Iso' Base64 ByteString
Core._Base64 (Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64))
-> ByteString -> Base64
forall t b. AReview t b -> b -> t
Lens.# ByteString
pData_,
$sel:modifiedAt:RuleGroupsNamespaceDescription' :: POSIX
modifiedAt = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pModifiedAt_,
$sel:name:RuleGroupsNamespaceDescription' :: Text
name = Text
pName_,
$sel:status:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceStatus
status = RuleGroupsNamespaceStatus
pStatus_
}
ruleGroupsNamespaceDescription_tags :: Lens.Lens' RuleGroupsNamespaceDescription (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
ruleGroupsNamespaceDescription_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_tags = (RuleGroupsNamespaceDescription -> Maybe (HashMap Text Text))
-> (RuleGroupsNamespaceDescription
-> Maybe (HashMap Text Text) -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
(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 (\RuleGroupsNamespaceDescription' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} Maybe (HashMap Text Text)
a -> RuleGroupsNamespaceDescription
s {$sel:tags:RuleGroupsNamespaceDescription' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: RuleGroupsNamespaceDescription) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription)
-> ((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)))
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
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
ruleGroupsNamespaceDescription_arn :: Lens.Lens' RuleGroupsNamespaceDescription Prelude.Text
ruleGroupsNamespaceDescription_arn :: (Text -> f Text)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_arn = (RuleGroupsNamespaceDescription -> Text)
-> (RuleGroupsNamespaceDescription
-> Text -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RuleGroupsNamespaceDescription' {Text
arn :: Text
$sel:arn:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> Text
arn} -> Text
arn) (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} Text
a -> RuleGroupsNamespaceDescription
s {$sel:arn:RuleGroupsNamespaceDescription' :: Text
arn = Text
a} :: RuleGroupsNamespaceDescription)
ruleGroupsNamespaceDescription_createdAt :: Lens.Lens' RuleGroupsNamespaceDescription Prelude.UTCTime
ruleGroupsNamespaceDescription_createdAt :: (UTCTime -> f UTCTime)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_createdAt = (RuleGroupsNamespaceDescription -> POSIX)
-> (RuleGroupsNamespaceDescription
-> POSIX -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RuleGroupsNamespaceDescription' {POSIX
createdAt :: POSIX
$sel:createdAt:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> POSIX
createdAt} -> POSIX
createdAt) (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} POSIX
a -> RuleGroupsNamespaceDescription
s {$sel:createdAt:RuleGroupsNamespaceDescription' :: POSIX
createdAt = POSIX
a} :: RuleGroupsNamespaceDescription) ((POSIX -> f POSIX)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
ruleGroupsNamespaceDescription_data :: Lens.Lens' RuleGroupsNamespaceDescription Prelude.ByteString
ruleGroupsNamespaceDescription_data :: (ByteString -> f ByteString)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_data = (RuleGroupsNamespaceDescription -> Base64)
-> (RuleGroupsNamespaceDescription
-> Base64 -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
Base64
Base64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RuleGroupsNamespaceDescription' {Base64
data' :: Base64
$sel:data':RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> Base64
data'} -> Base64
data') (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} Base64
a -> RuleGroupsNamespaceDescription
s {$sel:data':RuleGroupsNamespaceDescription' :: Base64
data' = Base64
a} :: RuleGroupsNamespaceDescription) ((Base64 -> f Base64)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription)
-> ((ByteString -> f ByteString) -> Base64 -> f Base64)
-> (ByteString -> f ByteString)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (ByteString -> f ByteString) -> Base64 -> f Base64
Iso' Base64 ByteString
Core._Base64
ruleGroupsNamespaceDescription_modifiedAt :: Lens.Lens' RuleGroupsNamespaceDescription Prelude.UTCTime
ruleGroupsNamespaceDescription_modifiedAt :: (UTCTime -> f UTCTime)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_modifiedAt = (RuleGroupsNamespaceDescription -> POSIX)
-> (RuleGroupsNamespaceDescription
-> POSIX -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
POSIX
POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RuleGroupsNamespaceDescription' {POSIX
modifiedAt :: POSIX
$sel:modifiedAt:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> POSIX
modifiedAt} -> POSIX
modifiedAt) (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} POSIX
a -> RuleGroupsNamespaceDescription
s {$sel:modifiedAt:RuleGroupsNamespaceDescription' :: POSIX
modifiedAt = POSIX
a} :: RuleGroupsNamespaceDescription) ((POSIX -> f POSIX)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
ruleGroupsNamespaceDescription_name :: Lens.Lens' RuleGroupsNamespaceDescription Prelude.Text
ruleGroupsNamespaceDescription_name :: (Text -> f Text)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_name = (RuleGroupsNamespaceDescription -> Text)
-> (RuleGroupsNamespaceDescription
-> Text -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RuleGroupsNamespaceDescription' {Text
name :: Text
$sel:name:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> Text
name} -> Text
name) (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} Text
a -> RuleGroupsNamespaceDescription
s {$sel:name:RuleGroupsNamespaceDescription' :: Text
name = Text
a} :: RuleGroupsNamespaceDescription)
ruleGroupsNamespaceDescription_status :: Lens.Lens' RuleGroupsNamespaceDescription RuleGroupsNamespaceStatus
ruleGroupsNamespaceDescription_status :: (RuleGroupsNamespaceStatus -> f RuleGroupsNamespaceStatus)
-> RuleGroupsNamespaceDescription
-> f RuleGroupsNamespaceDescription
ruleGroupsNamespaceDescription_status = (RuleGroupsNamespaceDescription -> RuleGroupsNamespaceStatus)
-> (RuleGroupsNamespaceDescription
-> RuleGroupsNamespaceStatus -> RuleGroupsNamespaceDescription)
-> Lens
RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription
RuleGroupsNamespaceStatus
RuleGroupsNamespaceStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RuleGroupsNamespaceDescription' {RuleGroupsNamespaceStatus
status :: RuleGroupsNamespaceStatus
$sel:status:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceDescription -> RuleGroupsNamespaceStatus
status} -> RuleGroupsNamespaceStatus
status) (\s :: RuleGroupsNamespaceDescription
s@RuleGroupsNamespaceDescription' {} RuleGroupsNamespaceStatus
a -> RuleGroupsNamespaceDescription
s {$sel:status:RuleGroupsNamespaceDescription' :: RuleGroupsNamespaceStatus
status = RuleGroupsNamespaceStatus
a} :: RuleGroupsNamespaceDescription)
instance Core.FromJSON RuleGroupsNamespaceDescription where
parseJSON :: Value -> Parser RuleGroupsNamespaceDescription
parseJSON =
String
-> (Object -> Parser RuleGroupsNamespaceDescription)
-> Value
-> Parser RuleGroupsNamespaceDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"RuleGroupsNamespaceDescription"
( \Object
x ->
Maybe (HashMap Text Text)
-> Text
-> POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription
RuleGroupsNamespaceDescription'
(Maybe (HashMap Text Text)
-> Text
-> POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Text
-> POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
forall (f :: * -> *) a b. Functor 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)
Parser
(Text
-> POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
-> Parser Text
-> Parser
(POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"arn")
Parser
(POSIX
-> Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
-> Parser POSIX
-> Parser
(Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"createdAt")
Parser
(Base64
-> POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
-> Parser Base64
-> Parser
(POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Base64
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"data")
Parser
(POSIX
-> Text
-> RuleGroupsNamespaceStatus
-> RuleGroupsNamespaceDescription)
-> Parser POSIX
-> Parser
(Text
-> RuleGroupsNamespaceStatus -> RuleGroupsNamespaceDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"modifiedAt")
Parser
(Text
-> RuleGroupsNamespaceStatus -> RuleGroupsNamespaceDescription)
-> Parser Text
-> Parser
(RuleGroupsNamespaceStatus -> RuleGroupsNamespaceDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"name")
Parser
(RuleGroupsNamespaceStatus -> RuleGroupsNamespaceDescription)
-> Parser RuleGroupsNamespaceStatus
-> Parser RuleGroupsNamespaceDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser RuleGroupsNamespaceStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"status")
)
instance
Prelude.Hashable
RuleGroupsNamespaceDescription
instance
Prelude.NFData
RuleGroupsNamespaceDescription