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

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

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

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

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

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

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