{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AMP.Types.RuleGroupsNamespaceDescription
-- 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)
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

-- | Represents a description of the rule groups namespace.
--
-- /See:/ 'newRuleGroupsNamespaceDescription' smart constructor.
data RuleGroupsNamespaceDescription = RuleGroupsNamespaceDescription'
  { -- | The tags of this rule groups namespace.
    RuleGroupsNamespaceDescription -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The Amazon Resource Name (ARN) of this rule groups namespace.
    RuleGroupsNamespaceDescription -> Text
arn :: Prelude.Text,
    -- | The time when the rule groups namespace was created.
    RuleGroupsNamespaceDescription -> POSIX
createdAt :: Core.POSIX,
    -- | The rule groups namespace data.
    RuleGroupsNamespaceDescription -> Base64
data' :: Core.Base64,
    -- | The time when the rule groups namespace was modified.
    RuleGroupsNamespaceDescription -> POSIX
modifiedAt :: Core.POSIX,
    -- | The rule groups namespace name.
    RuleGroupsNamespaceDescription -> Text
name :: Prelude.Text,
    -- | The status of rule groups namespace.
    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)

-- |
-- Create a value of 'RuleGroupsNamespaceDescription' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'tags', 'ruleGroupsNamespaceDescription_tags' - The tags of this rule groups namespace.
--
-- 'arn', 'ruleGroupsNamespaceDescription_arn' - The Amazon Resource Name (ARN) of this rule groups namespace.
--
-- 'createdAt', 'ruleGroupsNamespaceDescription_createdAt' - The time when the rule groups namespace was created.
--
-- 'data'', 'ruleGroupsNamespaceDescription_data' - The rule groups namespace data.--
-- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data.
-- -- The underlying isomorphism will encode to Base64 representation during
-- -- serialisation, and decode from Base64 representation during deserialisation.
-- -- This 'Lens' accepts and returns only raw unencoded data.
--
-- 'modifiedAt', 'ruleGroupsNamespaceDescription_modifiedAt' - The time when the rule groups namespace was modified.
--
-- 'name', 'ruleGroupsNamespaceDescription_name' - The rule groups namespace name.
--
-- 'status', 'ruleGroupsNamespaceDescription_status' - The status of rule groups namespace.
newRuleGroupsNamespaceDescription ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'data''
  Prelude.ByteString ->
  -- | 'modifiedAt'
  Prelude.UTCTime ->
  -- | 'name'
  Prelude.Text ->
  -- | 'status'
  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_
      }

-- | The tags of this rule groups namespace.
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

-- | The Amazon Resource Name (ARN) of this rule groups namespace.
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)

-- | The time when the rule groups namespace was created.
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

-- | The rule groups namespace data.--
-- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data.
-- -- The underlying isomorphism will encode to Base64 representation during
-- -- serialisation, and decode from Base64 representation during deserialisation.
-- -- This 'Lens' accepts and returns only raw unencoded data.
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

-- | The time when the rule groups namespace was modified.
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

-- | The rule groups namespace name.
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)

-- | The status of rule groups namespace.
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