{-# 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.RemediationExecutionStepState
-- 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.RemediationExecutionStepState
  ( RemediationExecutionStepState
      ( ..,
        RemediationExecutionStepState_FAILED,
        RemediationExecutionStepState_PENDING,
        RemediationExecutionStepState_SUCCEEDED
      ),
  )
where

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

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

pattern RemediationExecutionStepState_FAILED :: RemediationExecutionStepState
pattern $bRemediationExecutionStepState_FAILED :: RemediationExecutionStepState
$mRemediationExecutionStepState_FAILED :: forall r.
RemediationExecutionStepState -> (Void# -> r) -> (Void# -> r) -> r
RemediationExecutionStepState_FAILED = RemediationExecutionStepState' "FAILED"

pattern RemediationExecutionStepState_PENDING :: RemediationExecutionStepState
pattern $bRemediationExecutionStepState_PENDING :: RemediationExecutionStepState
$mRemediationExecutionStepState_PENDING :: forall r.
RemediationExecutionStepState -> (Void# -> r) -> (Void# -> r) -> r
RemediationExecutionStepState_PENDING = RemediationExecutionStepState' "PENDING"

pattern RemediationExecutionStepState_SUCCEEDED :: RemediationExecutionStepState
pattern $bRemediationExecutionStepState_SUCCEEDED :: RemediationExecutionStepState
$mRemediationExecutionStepState_SUCCEEDED :: forall r.
RemediationExecutionStepState -> (Void# -> r) -> (Void# -> r) -> r
RemediationExecutionStepState_SUCCEEDED = RemediationExecutionStepState' "SUCCEEDED"

{-# COMPLETE
  RemediationExecutionStepState_FAILED,
  RemediationExecutionStepState_PENDING,
  RemediationExecutionStepState_SUCCEEDED,
  RemediationExecutionStepState'
  #-}