{-# 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.ConformancePackState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Config.Types.ConformancePackState
  ( ConformancePackState
      ( ..,
        ConformancePackState_CREATE_COMPLETE,
        ConformancePackState_CREATE_FAILED,
        ConformancePackState_CREATE_IN_PROGRESS,
        ConformancePackState_DELETE_FAILED,
        ConformancePackState_DELETE_IN_PROGRESS
      ),
  )
where

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

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

pattern ConformancePackState_CREATE_COMPLETE :: ConformancePackState
pattern $bConformancePackState_CREATE_COMPLETE :: ConformancePackState
$mConformancePackState_CREATE_COMPLETE :: forall {r}.
ConformancePackState -> ((# #) -> r) -> ((# #) -> r) -> r
ConformancePackState_CREATE_COMPLETE = ConformancePackState' "CREATE_COMPLETE"

pattern ConformancePackState_CREATE_FAILED :: ConformancePackState
pattern $bConformancePackState_CREATE_FAILED :: ConformancePackState
$mConformancePackState_CREATE_FAILED :: forall {r}.
ConformancePackState -> ((# #) -> r) -> ((# #) -> r) -> r
ConformancePackState_CREATE_FAILED = ConformancePackState' "CREATE_FAILED"

pattern ConformancePackState_CREATE_IN_PROGRESS :: ConformancePackState
pattern $bConformancePackState_CREATE_IN_PROGRESS :: ConformancePackState
$mConformancePackState_CREATE_IN_PROGRESS :: forall {r}.
ConformancePackState -> ((# #) -> r) -> ((# #) -> r) -> r
ConformancePackState_CREATE_IN_PROGRESS = ConformancePackState' "CREATE_IN_PROGRESS"

pattern ConformancePackState_DELETE_FAILED :: ConformancePackState
pattern $bConformancePackState_DELETE_FAILED :: ConformancePackState
$mConformancePackState_DELETE_FAILED :: forall {r}.
ConformancePackState -> ((# #) -> r) -> ((# #) -> r) -> r
ConformancePackState_DELETE_FAILED = ConformancePackState' "DELETE_FAILED"

pattern ConformancePackState_DELETE_IN_PROGRESS :: ConformancePackState
pattern $bConformancePackState_DELETE_IN_PROGRESS :: ConformancePackState
$mConformancePackState_DELETE_IN_PROGRESS :: forall {r}.
ConformancePackState -> ((# #) -> r) -> ((# #) -> r) -> r
ConformancePackState_DELETE_IN_PROGRESS = ConformancePackState' "DELETE_IN_PROGRESS"

{-# COMPLETE
  ConformancePackState_CREATE_COMPLETE,
  ConformancePackState_CREATE_FAILED,
  ConformancePackState_CREATE_IN_PROGRESS,
  ConformancePackState_DELETE_FAILED,
  ConformancePackState_DELETE_IN_PROGRESS,
  ConformancePackState'
  #-}