{-# 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-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.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.Prelude as Prelude

newtype ConformancePackState = ConformancePackState'
  { ConformancePackState -> Text
fromConformancePackState ::
      Core.Text
  }
  deriving stock
    ( Int -> ConformancePackState -> ShowS
[ConformancePackState] -> ShowS
ConformancePackState -> String
(Int -> ConformancePackState -> ShowS)
-> (ConformancePackState -> String)
-> ([ConformancePackState] -> ShowS)
-> Show ConformancePackState
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]
(Int -> ReadS ConformancePackState)
-> ReadS [ConformancePackState]
-> ReadPrec ConformancePackState
-> ReadPrec [ConformancePackState]
-> Read 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
(ConformancePackState -> ConformancePackState -> Bool)
-> (ConformancePackState -> ConformancePackState -> Bool)
-> Eq ConformancePackState
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
Eq ConformancePackState
-> (ConformancePackState -> ConformancePackState -> Ordering)
-> (ConformancePackState -> ConformancePackState -> Bool)
-> (ConformancePackState -> ConformancePackState -> Bool)
-> (ConformancePackState -> ConformancePackState -> Bool)
-> (ConformancePackState -> ConformancePackState -> Bool)
-> (ConformancePackState
    -> ConformancePackState -> ConformancePackState)
-> (ConformancePackState
    -> ConformancePackState -> ConformancePackState)
-> Ord 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
$cp1Ord :: Eq ConformancePackState
Prelude.Ord,
      (forall x. ConformancePackState -> Rep ConformancePackState x)
-> (forall x. Rep ConformancePackState x -> ConformancePackState)
-> Generic ConformancePackState
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
    ( Int -> ConformancePackState -> Int
ConformancePackState -> Int
(Int -> ConformancePackState -> Int)
-> (ConformancePackState -> Int) -> Hashable ConformancePackState
forall 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 -> ()
(ConformancePackState -> ()) -> NFData ConformancePackState
forall a. (a -> ()) -> NFData a
rnf :: ConformancePackState -> ()
$crnf :: ConformancePackState -> ()
Prelude.NFData,
      Text -> Either String ConformancePackState
(Text -> Either String ConformancePackState)
-> FromText ConformancePackState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ConformancePackState
$cfromText :: Text -> Either String ConformancePackState
Core.FromText,
      ConformancePackState -> Text
(ConformancePackState -> Text) -> ToText ConformancePackState
forall a. (a -> Text) -> ToText a
toText :: ConformancePackState -> Text
$ctoText :: ConformancePackState -> Text
Core.ToText,
      ConformancePackState -> ByteString
(ConformancePackState -> ByteString)
-> ToByteString ConformancePackState
forall a. (a -> ByteString) -> ToByteString a
toBS :: ConformancePackState -> ByteString
$ctoBS :: ConformancePackState -> ByteString
Core.ToByteString,
      ConformancePackState -> ByteStringBuilder
(ConformancePackState -> ByteStringBuilder)
-> ToLog ConformancePackState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ConformancePackState -> ByteStringBuilder
$cbuild :: ConformancePackState -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ConformancePackState -> [Header]
(HeaderName -> ConformancePackState -> [Header])
-> ToHeader ConformancePackState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ConformancePackState -> [Header]
$ctoHeader :: HeaderName -> ConformancePackState -> [Header]
Core.ToHeader,
      ConformancePackState -> QueryString
(ConformancePackState -> QueryString)
-> ToQuery ConformancePackState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ConformancePackState -> QueryString
$ctoQuery :: ConformancePackState -> QueryString
Core.ToQuery,
      Value -> Parser [ConformancePackState]
Value -> Parser ConformancePackState
(Value -> Parser ConformancePackState)
-> (Value -> Parser [ConformancePackState])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ConformancePackState]
FromJSONKeyFunction ConformancePackState
FromJSONKeyFunction ConformancePackState
-> FromJSONKeyFunction [ConformancePackState]
-> FromJSONKey ConformancePackState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ConformancePackState]
$cfromJSONKeyList :: FromJSONKeyFunction [ConformancePackState]
fromJSONKey :: FromJSONKeyFunction ConformancePackState
$cfromJSONKey :: FromJSONKeyFunction ConformancePackState
Core.FromJSONKey,
      [ConformancePackState] -> Encoding
[ConformancePackState] -> Value
ConformancePackState -> Encoding
ConformancePackState -> Value
(ConformancePackState -> Value)
-> (ConformancePackState -> Encoding)
-> ([ConformancePackState] -> Value)
-> ([ConformancePackState] -> Encoding)
-> ToJSON ConformancePackState
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
Core.ToJSON,
      ToJSONKeyFunction [ConformancePackState]
ToJSONKeyFunction ConformancePackState
ToJSONKeyFunction ConformancePackState
-> ToJSONKeyFunction [ConformancePackState]
-> ToJSONKey ConformancePackState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ConformancePackState]
$ctoJSONKeyList :: ToJSONKeyFunction [ConformancePackState]
toJSONKey :: ToJSONKeyFunction ConformancePackState
$ctoJSONKey :: ToJSONKeyFunction ConformancePackState
Core.ToJSONKey,
      [Node] -> Either String ConformancePackState
([Node] -> Either String ConformancePackState)
-> FromXML ConformancePackState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ConformancePackState
$cparseXML :: [Node] -> Either String ConformancePackState
Core.FromXML,
      ConformancePackState -> XML
(ConformancePackState -> XML) -> ToXML ConformancePackState
forall a. (a -> XML) -> ToXML a
toXML :: ConformancePackState -> XML
$ctoXML :: ConformancePackState -> XML
Core.ToXML
    )

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

pattern ConformancePackState_CREATE_FAILED :: ConformancePackState
pattern $bConformancePackState_CREATE_FAILED :: ConformancePackState
$mConformancePackState_CREATE_FAILED :: forall r. ConformancePackState -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}