{-# 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.CloudFormation.Types.HookStatus
-- 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.CloudFormation.Types.HookStatus
  ( HookStatus
      ( ..,
        HookStatus_HOOK_COMPLETE_FAILED,
        HookStatus_HOOK_COMPLETE_SUCCEEDED,
        HookStatus_HOOK_FAILED,
        HookStatus_HOOK_IN_PROGRESS
      ),
  )
where

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

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

pattern HookStatus_HOOK_COMPLETE_FAILED :: HookStatus
pattern $bHookStatus_HOOK_COMPLETE_FAILED :: HookStatus
$mHookStatus_HOOK_COMPLETE_FAILED :: forall {r}. HookStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HookStatus_HOOK_COMPLETE_FAILED = HookStatus' "HOOK_COMPLETE_FAILED"

pattern HookStatus_HOOK_COMPLETE_SUCCEEDED :: HookStatus
pattern $bHookStatus_HOOK_COMPLETE_SUCCEEDED :: HookStatus
$mHookStatus_HOOK_COMPLETE_SUCCEEDED :: forall {r}. HookStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HookStatus_HOOK_COMPLETE_SUCCEEDED = HookStatus' "HOOK_COMPLETE_SUCCEEDED"

pattern HookStatus_HOOK_FAILED :: HookStatus
pattern $bHookStatus_HOOK_FAILED :: HookStatus
$mHookStatus_HOOK_FAILED :: forall {r}. HookStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HookStatus_HOOK_FAILED = HookStatus' "HOOK_FAILED"

pattern HookStatus_HOOK_IN_PROGRESS :: HookStatus
pattern $bHookStatus_HOOK_IN_PROGRESS :: HookStatus
$mHookStatus_HOOK_IN_PROGRESS :: forall {r}. HookStatus -> ((# #) -> r) -> ((# #) -> r) -> r
HookStatus_HOOK_IN_PROGRESS = HookStatus' "HOOK_IN_PROGRESS"

{-# COMPLETE
  HookStatus_HOOK_COMPLETE_FAILED,
  HookStatus_HOOK_COMPLETE_SUCCEEDED,
  HookStatus_HOOK_FAILED,
  HookStatus_HOOK_IN_PROGRESS,
  HookStatus'
  #-}