{-# 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.Config.Types.OrganizationRuleStatus
-- 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.Config.Types.OrganizationRuleStatus
  ( OrganizationRuleStatus
      ( ..,
        OrganizationRuleStatus_CREATE_FAILED,
        OrganizationRuleStatus_CREATE_IN_PROGRESS,
        OrganizationRuleStatus_CREATE_SUCCESSFUL,
        OrganizationRuleStatus_DELETE_FAILED,
        OrganizationRuleStatus_DELETE_IN_PROGRESS,
        OrganizationRuleStatus_DELETE_SUCCESSFUL,
        OrganizationRuleStatus_UPDATE_FAILED,
        OrganizationRuleStatus_UPDATE_IN_PROGRESS,
        OrganizationRuleStatus_UPDATE_SUCCESSFUL
      ),
  )
where

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

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

pattern OrganizationRuleStatus_CREATE_FAILED :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_CREATE_FAILED :: OrganizationRuleStatus
$mOrganizationRuleStatus_CREATE_FAILED :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_CREATE_FAILED = OrganizationRuleStatus' "CREATE_FAILED"

pattern OrganizationRuleStatus_CREATE_IN_PROGRESS :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_CREATE_IN_PROGRESS :: OrganizationRuleStatus
$mOrganizationRuleStatus_CREATE_IN_PROGRESS :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_CREATE_IN_PROGRESS = OrganizationRuleStatus' "CREATE_IN_PROGRESS"

pattern OrganizationRuleStatus_CREATE_SUCCESSFUL :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_CREATE_SUCCESSFUL :: OrganizationRuleStatus
$mOrganizationRuleStatus_CREATE_SUCCESSFUL :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_CREATE_SUCCESSFUL = OrganizationRuleStatus' "CREATE_SUCCESSFUL"

pattern OrganizationRuleStatus_DELETE_FAILED :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_DELETE_FAILED :: OrganizationRuleStatus
$mOrganizationRuleStatus_DELETE_FAILED :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_DELETE_FAILED = OrganizationRuleStatus' "DELETE_FAILED"

pattern OrganizationRuleStatus_DELETE_IN_PROGRESS :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_DELETE_IN_PROGRESS :: OrganizationRuleStatus
$mOrganizationRuleStatus_DELETE_IN_PROGRESS :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_DELETE_IN_PROGRESS = OrganizationRuleStatus' "DELETE_IN_PROGRESS"

pattern OrganizationRuleStatus_DELETE_SUCCESSFUL :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_DELETE_SUCCESSFUL :: OrganizationRuleStatus
$mOrganizationRuleStatus_DELETE_SUCCESSFUL :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_DELETE_SUCCESSFUL = OrganizationRuleStatus' "DELETE_SUCCESSFUL"

pattern OrganizationRuleStatus_UPDATE_FAILED :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_UPDATE_FAILED :: OrganizationRuleStatus
$mOrganizationRuleStatus_UPDATE_FAILED :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_UPDATE_FAILED = OrganizationRuleStatus' "UPDATE_FAILED"

pattern OrganizationRuleStatus_UPDATE_IN_PROGRESS :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_UPDATE_IN_PROGRESS :: OrganizationRuleStatus
$mOrganizationRuleStatus_UPDATE_IN_PROGRESS :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_UPDATE_IN_PROGRESS = OrganizationRuleStatus' "UPDATE_IN_PROGRESS"

pattern OrganizationRuleStatus_UPDATE_SUCCESSFUL :: OrganizationRuleStatus
pattern $bOrganizationRuleStatus_UPDATE_SUCCESSFUL :: OrganizationRuleStatus
$mOrganizationRuleStatus_UPDATE_SUCCESSFUL :: forall r.
OrganizationRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
OrganizationRuleStatus_UPDATE_SUCCESSFUL = OrganizationRuleStatus' "UPDATE_SUCCESSFUL"

{-# COMPLETE
  OrganizationRuleStatus_CREATE_FAILED,
  OrganizationRuleStatus_CREATE_IN_PROGRESS,
  OrganizationRuleStatus_CREATE_SUCCESSFUL,
  OrganizationRuleStatus_DELETE_FAILED,
  OrganizationRuleStatus_DELETE_IN_PROGRESS,
  OrganizationRuleStatus_DELETE_SUCCESSFUL,
  OrganizationRuleStatus_UPDATE_FAILED,
  OrganizationRuleStatus_UPDATE_IN_PROGRESS,
  OrganizationRuleStatus_UPDATE_SUCCESSFUL,
  OrganizationRuleStatus'
  #-}