{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.AMP.Types.RuleGroupsNamespaceStatusCode
-- 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.RuleGroupsNamespaceStatusCode
  ( RuleGroupsNamespaceStatusCode
      ( ..,
        RuleGroupsNamespaceStatusCode_ACTIVE,
        RuleGroupsNamespaceStatusCode_CREATING,
        RuleGroupsNamespaceStatusCode_CREATION_FAILED,
        RuleGroupsNamespaceStatusCode_DELETING,
        RuleGroupsNamespaceStatusCode_UPDATE_FAILED,
        RuleGroupsNamespaceStatusCode_UPDATING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | State of a namespace.
newtype RuleGroupsNamespaceStatusCode = RuleGroupsNamespaceStatusCode'
  { RuleGroupsNamespaceStatusCode -> Text
fromRuleGroupsNamespaceStatusCode ::
      Core.Text
  }
  deriving stock
    ( Int -> RuleGroupsNamespaceStatusCode -> ShowS
[RuleGroupsNamespaceStatusCode] -> ShowS
RuleGroupsNamespaceStatusCode -> String
(Int -> RuleGroupsNamespaceStatusCode -> ShowS)
-> (RuleGroupsNamespaceStatusCode -> String)
-> ([RuleGroupsNamespaceStatusCode] -> ShowS)
-> Show RuleGroupsNamespaceStatusCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RuleGroupsNamespaceStatusCode] -> ShowS
$cshowList :: [RuleGroupsNamespaceStatusCode] -> ShowS
show :: RuleGroupsNamespaceStatusCode -> String
$cshow :: RuleGroupsNamespaceStatusCode -> String
showsPrec :: Int -> RuleGroupsNamespaceStatusCode -> ShowS
$cshowsPrec :: Int -> RuleGroupsNamespaceStatusCode -> ShowS
Prelude.Show,
      ReadPrec [RuleGroupsNamespaceStatusCode]
ReadPrec RuleGroupsNamespaceStatusCode
Int -> ReadS RuleGroupsNamespaceStatusCode
ReadS [RuleGroupsNamespaceStatusCode]
(Int -> ReadS RuleGroupsNamespaceStatusCode)
-> ReadS [RuleGroupsNamespaceStatusCode]
-> ReadPrec RuleGroupsNamespaceStatusCode
-> ReadPrec [RuleGroupsNamespaceStatusCode]
-> Read RuleGroupsNamespaceStatusCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RuleGroupsNamespaceStatusCode]
$creadListPrec :: ReadPrec [RuleGroupsNamespaceStatusCode]
readPrec :: ReadPrec RuleGroupsNamespaceStatusCode
$creadPrec :: ReadPrec RuleGroupsNamespaceStatusCode
readList :: ReadS [RuleGroupsNamespaceStatusCode]
$creadList :: ReadS [RuleGroupsNamespaceStatusCode]
readsPrec :: Int -> ReadS RuleGroupsNamespaceStatusCode
$creadsPrec :: Int -> ReadS RuleGroupsNamespaceStatusCode
Prelude.Read,
      RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
(RuleGroupsNamespaceStatusCode
 -> RuleGroupsNamespaceStatusCode -> Bool)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> Bool)
-> Eq RuleGroupsNamespaceStatusCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
$c/= :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
== :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
$c== :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
Prelude.Eq,
      Eq RuleGroupsNamespaceStatusCode
Eq RuleGroupsNamespaceStatusCode
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> Ordering)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> Bool)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> Bool)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> Bool)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> Bool)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode)
-> (RuleGroupsNamespaceStatusCode
    -> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode)
-> Ord RuleGroupsNamespaceStatusCode
RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Ordering
RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode
$cmin :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode
max :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode
$cmax :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> RuleGroupsNamespaceStatusCode
>= :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
$c>= :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
> :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
$c> :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
<= :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
$c<= :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
< :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
$c< :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Bool
compare :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Ordering
$ccompare :: RuleGroupsNamespaceStatusCode
-> RuleGroupsNamespaceStatusCode -> Ordering
$cp1Ord :: Eq RuleGroupsNamespaceStatusCode
Prelude.Ord,
      (forall x.
 RuleGroupsNamespaceStatusCode
 -> Rep RuleGroupsNamespaceStatusCode x)
-> (forall x.
    Rep RuleGroupsNamespaceStatusCode x
    -> RuleGroupsNamespaceStatusCode)
-> Generic RuleGroupsNamespaceStatusCode
forall x.
Rep RuleGroupsNamespaceStatusCode x
-> RuleGroupsNamespaceStatusCode
forall x.
RuleGroupsNamespaceStatusCode
-> Rep RuleGroupsNamespaceStatusCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RuleGroupsNamespaceStatusCode x
-> RuleGroupsNamespaceStatusCode
$cfrom :: forall x.
RuleGroupsNamespaceStatusCode
-> Rep RuleGroupsNamespaceStatusCode x
Prelude.Generic
    )
  deriving newtype
    ( Int -> RuleGroupsNamespaceStatusCode -> Int
RuleGroupsNamespaceStatusCode -> Int
(Int -> RuleGroupsNamespaceStatusCode -> Int)
-> (RuleGroupsNamespaceStatusCode -> Int)
-> Hashable RuleGroupsNamespaceStatusCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RuleGroupsNamespaceStatusCode -> Int
$chash :: RuleGroupsNamespaceStatusCode -> Int
hashWithSalt :: Int -> RuleGroupsNamespaceStatusCode -> Int
$chashWithSalt :: Int -> RuleGroupsNamespaceStatusCode -> Int
Prelude.Hashable,
      RuleGroupsNamespaceStatusCode -> ()
(RuleGroupsNamespaceStatusCode -> ())
-> NFData RuleGroupsNamespaceStatusCode
forall a. (a -> ()) -> NFData a
rnf :: RuleGroupsNamespaceStatusCode -> ()
$crnf :: RuleGroupsNamespaceStatusCode -> ()
Prelude.NFData,
      Text -> Either String RuleGroupsNamespaceStatusCode
(Text -> Either String RuleGroupsNamespaceStatusCode)
-> FromText RuleGroupsNamespaceStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RuleGroupsNamespaceStatusCode
$cfromText :: Text -> Either String RuleGroupsNamespaceStatusCode
Core.FromText,
      RuleGroupsNamespaceStatusCode -> Text
(RuleGroupsNamespaceStatusCode -> Text)
-> ToText RuleGroupsNamespaceStatusCode
forall a. (a -> Text) -> ToText a
toText :: RuleGroupsNamespaceStatusCode -> Text
$ctoText :: RuleGroupsNamespaceStatusCode -> Text
Core.ToText,
      RuleGroupsNamespaceStatusCode -> ByteString
(RuleGroupsNamespaceStatusCode -> ByteString)
-> ToByteString RuleGroupsNamespaceStatusCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: RuleGroupsNamespaceStatusCode -> ByteString
$ctoBS :: RuleGroupsNamespaceStatusCode -> ByteString
Core.ToByteString,
      RuleGroupsNamespaceStatusCode -> ByteStringBuilder
(RuleGroupsNamespaceStatusCode -> ByteStringBuilder)
-> ToLog RuleGroupsNamespaceStatusCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RuleGroupsNamespaceStatusCode -> ByteStringBuilder
$cbuild :: RuleGroupsNamespaceStatusCode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RuleGroupsNamespaceStatusCode -> [Header]
(HeaderName -> RuleGroupsNamespaceStatusCode -> [Header])
-> ToHeader RuleGroupsNamespaceStatusCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RuleGroupsNamespaceStatusCode -> [Header]
$ctoHeader :: HeaderName -> RuleGroupsNamespaceStatusCode -> [Header]
Core.ToHeader,
      RuleGroupsNamespaceStatusCode -> QueryString
(RuleGroupsNamespaceStatusCode -> QueryString)
-> ToQuery RuleGroupsNamespaceStatusCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RuleGroupsNamespaceStatusCode -> QueryString
$ctoQuery :: RuleGroupsNamespaceStatusCode -> QueryString
Core.ToQuery,
      Value -> Parser [RuleGroupsNamespaceStatusCode]
Value -> Parser RuleGroupsNamespaceStatusCode
(Value -> Parser RuleGroupsNamespaceStatusCode)
-> (Value -> Parser [RuleGroupsNamespaceStatusCode])
-> FromJSON RuleGroupsNamespaceStatusCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RuleGroupsNamespaceStatusCode]
$cparseJSONList :: Value -> Parser [RuleGroupsNamespaceStatusCode]
parseJSON :: Value -> Parser RuleGroupsNamespaceStatusCode
$cparseJSON :: Value -> Parser RuleGroupsNamespaceStatusCode
Core.FromJSON,
      FromJSONKeyFunction [RuleGroupsNamespaceStatusCode]
FromJSONKeyFunction RuleGroupsNamespaceStatusCode
FromJSONKeyFunction RuleGroupsNamespaceStatusCode
-> FromJSONKeyFunction [RuleGroupsNamespaceStatusCode]
-> FromJSONKey RuleGroupsNamespaceStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RuleGroupsNamespaceStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [RuleGroupsNamespaceStatusCode]
fromJSONKey :: FromJSONKeyFunction RuleGroupsNamespaceStatusCode
$cfromJSONKey :: FromJSONKeyFunction RuleGroupsNamespaceStatusCode
Core.FromJSONKey,
      [RuleGroupsNamespaceStatusCode] -> Encoding
[RuleGroupsNamespaceStatusCode] -> Value
RuleGroupsNamespaceStatusCode -> Encoding
RuleGroupsNamespaceStatusCode -> Value
(RuleGroupsNamespaceStatusCode -> Value)
-> (RuleGroupsNamespaceStatusCode -> Encoding)
-> ([RuleGroupsNamespaceStatusCode] -> Value)
-> ([RuleGroupsNamespaceStatusCode] -> Encoding)
-> ToJSON RuleGroupsNamespaceStatusCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RuleGroupsNamespaceStatusCode] -> Encoding
$ctoEncodingList :: [RuleGroupsNamespaceStatusCode] -> Encoding
toJSONList :: [RuleGroupsNamespaceStatusCode] -> Value
$ctoJSONList :: [RuleGroupsNamespaceStatusCode] -> Value
toEncoding :: RuleGroupsNamespaceStatusCode -> Encoding
$ctoEncoding :: RuleGroupsNamespaceStatusCode -> Encoding
toJSON :: RuleGroupsNamespaceStatusCode -> Value
$ctoJSON :: RuleGroupsNamespaceStatusCode -> Value
Core.ToJSON,
      ToJSONKeyFunction [RuleGroupsNamespaceStatusCode]
ToJSONKeyFunction RuleGroupsNamespaceStatusCode
ToJSONKeyFunction RuleGroupsNamespaceStatusCode
-> ToJSONKeyFunction [RuleGroupsNamespaceStatusCode]
-> ToJSONKey RuleGroupsNamespaceStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RuleGroupsNamespaceStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [RuleGroupsNamespaceStatusCode]
toJSONKey :: ToJSONKeyFunction RuleGroupsNamespaceStatusCode
$ctoJSONKey :: ToJSONKeyFunction RuleGroupsNamespaceStatusCode
Core.ToJSONKey,
      [Node] -> Either String RuleGroupsNamespaceStatusCode
([Node] -> Either String RuleGroupsNamespaceStatusCode)
-> FromXML RuleGroupsNamespaceStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RuleGroupsNamespaceStatusCode
$cparseXML :: [Node] -> Either String RuleGroupsNamespaceStatusCode
Core.FromXML,
      RuleGroupsNamespaceStatusCode -> XML
(RuleGroupsNamespaceStatusCode -> XML)
-> ToXML RuleGroupsNamespaceStatusCode
forall a. (a -> XML) -> ToXML a
toXML :: RuleGroupsNamespaceStatusCode -> XML
$ctoXML :: RuleGroupsNamespaceStatusCode -> XML
Core.ToXML
    )

pattern RuleGroupsNamespaceStatusCode_ACTIVE :: RuleGroupsNamespaceStatusCode
pattern $bRuleGroupsNamespaceStatusCode_ACTIVE :: RuleGroupsNamespaceStatusCode
$mRuleGroupsNamespaceStatusCode_ACTIVE :: forall r.
RuleGroupsNamespaceStatusCode -> (Void# -> r) -> (Void# -> r) -> r
RuleGroupsNamespaceStatusCode_ACTIVE = RuleGroupsNamespaceStatusCode' "ACTIVE"

pattern RuleGroupsNamespaceStatusCode_CREATING :: RuleGroupsNamespaceStatusCode
pattern $bRuleGroupsNamespaceStatusCode_CREATING :: RuleGroupsNamespaceStatusCode
$mRuleGroupsNamespaceStatusCode_CREATING :: forall r.
RuleGroupsNamespaceStatusCode -> (Void# -> r) -> (Void# -> r) -> r
RuleGroupsNamespaceStatusCode_CREATING = RuleGroupsNamespaceStatusCode' "CREATING"

pattern RuleGroupsNamespaceStatusCode_CREATION_FAILED :: RuleGroupsNamespaceStatusCode
pattern $bRuleGroupsNamespaceStatusCode_CREATION_FAILED :: RuleGroupsNamespaceStatusCode
$mRuleGroupsNamespaceStatusCode_CREATION_FAILED :: forall r.
RuleGroupsNamespaceStatusCode -> (Void# -> r) -> (Void# -> r) -> r
RuleGroupsNamespaceStatusCode_CREATION_FAILED = RuleGroupsNamespaceStatusCode' "CREATION_FAILED"

pattern RuleGroupsNamespaceStatusCode_DELETING :: RuleGroupsNamespaceStatusCode
pattern $bRuleGroupsNamespaceStatusCode_DELETING :: RuleGroupsNamespaceStatusCode
$mRuleGroupsNamespaceStatusCode_DELETING :: forall r.
RuleGroupsNamespaceStatusCode -> (Void# -> r) -> (Void# -> r) -> r
RuleGroupsNamespaceStatusCode_DELETING = RuleGroupsNamespaceStatusCode' "DELETING"

pattern RuleGroupsNamespaceStatusCode_UPDATE_FAILED :: RuleGroupsNamespaceStatusCode
pattern $bRuleGroupsNamespaceStatusCode_UPDATE_FAILED :: RuleGroupsNamespaceStatusCode
$mRuleGroupsNamespaceStatusCode_UPDATE_FAILED :: forall r.
RuleGroupsNamespaceStatusCode -> (Void# -> r) -> (Void# -> r) -> r
RuleGroupsNamespaceStatusCode_UPDATE_FAILED = RuleGroupsNamespaceStatusCode' "UPDATE_FAILED"

pattern RuleGroupsNamespaceStatusCode_UPDATING :: RuleGroupsNamespaceStatusCode
pattern $bRuleGroupsNamespaceStatusCode_UPDATING :: RuleGroupsNamespaceStatusCode
$mRuleGroupsNamespaceStatusCode_UPDATING :: forall r.
RuleGroupsNamespaceStatusCode -> (Void# -> r) -> (Void# -> r) -> r
RuleGroupsNamespaceStatusCode_UPDATING = RuleGroupsNamespaceStatusCode' "UPDATING"

{-# COMPLETE
  RuleGroupsNamespaceStatusCode_ACTIVE,
  RuleGroupsNamespaceStatusCode_CREATING,
  RuleGroupsNamespaceStatusCode_CREATION_FAILED,
  RuleGroupsNamespaceStatusCode_DELETING,
  RuleGroupsNamespaceStatusCode_UPDATE_FAILED,
  RuleGroupsNamespaceStatusCode_UPDATING,
  RuleGroupsNamespaceStatusCode'
  #-}