{-# 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.AccountGateStatus
-- 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.AccountGateStatus
  ( AccountGateStatus
      ( ..,
        AccountGateStatus_FAILED,
        AccountGateStatus_SKIPPED,
        AccountGateStatus_SUCCEEDED
      ),
  )
where

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

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

pattern AccountGateStatus_FAILED :: AccountGateStatus
pattern $bAccountGateStatus_FAILED :: AccountGateStatus
$mAccountGateStatus_FAILED :: forall {r}. AccountGateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountGateStatus_FAILED = AccountGateStatus' "FAILED"

pattern AccountGateStatus_SKIPPED :: AccountGateStatus
pattern $bAccountGateStatus_SKIPPED :: AccountGateStatus
$mAccountGateStatus_SKIPPED :: forall {r}. AccountGateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountGateStatus_SKIPPED = AccountGateStatus' "SKIPPED"

pattern AccountGateStatus_SUCCEEDED :: AccountGateStatus
pattern $bAccountGateStatus_SUCCEEDED :: AccountGateStatus
$mAccountGateStatus_SUCCEEDED :: forall {r}. AccountGateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AccountGateStatus_SUCCEEDED = AccountGateStatus' "SUCCEEDED"

{-# COMPLETE
  AccountGateStatus_FAILED,
  AccountGateStatus_SKIPPED,
  AccountGateStatus_SUCCEEDED,
  AccountGateStatus'
  #-}