{-# 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.EC2.Types.TransitGatewayPolicyTableState
-- 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.EC2.Types.TransitGatewayPolicyTableState
  ( TransitGatewayPolicyTableState
      ( ..,
        TransitGatewayPolicyTableState_Available,
        TransitGatewayPolicyTableState_Deleted,
        TransitGatewayPolicyTableState_Deleting,
        TransitGatewayPolicyTableState_Pending
      ),
  )
where

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

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

pattern TransitGatewayPolicyTableState_Available :: TransitGatewayPolicyTableState
pattern $bTransitGatewayPolicyTableState_Available :: TransitGatewayPolicyTableState
$mTransitGatewayPolicyTableState_Available :: forall {r}.
TransitGatewayPolicyTableState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPolicyTableState_Available = TransitGatewayPolicyTableState' "available"

pattern TransitGatewayPolicyTableState_Deleted :: TransitGatewayPolicyTableState
pattern $bTransitGatewayPolicyTableState_Deleted :: TransitGatewayPolicyTableState
$mTransitGatewayPolicyTableState_Deleted :: forall {r}.
TransitGatewayPolicyTableState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPolicyTableState_Deleted = TransitGatewayPolicyTableState' "deleted"

pattern TransitGatewayPolicyTableState_Deleting :: TransitGatewayPolicyTableState
pattern $bTransitGatewayPolicyTableState_Deleting :: TransitGatewayPolicyTableState
$mTransitGatewayPolicyTableState_Deleting :: forall {r}.
TransitGatewayPolicyTableState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPolicyTableState_Deleting = TransitGatewayPolicyTableState' "deleting"

pattern TransitGatewayPolicyTableState_Pending :: TransitGatewayPolicyTableState
pattern $bTransitGatewayPolicyTableState_Pending :: TransitGatewayPolicyTableState
$mTransitGatewayPolicyTableState_Pending :: forall {r}.
TransitGatewayPolicyTableState -> ((# #) -> r) -> ((# #) -> r) -> r
TransitGatewayPolicyTableState_Pending = TransitGatewayPolicyTableState' "pending"

{-# COMPLETE
  TransitGatewayPolicyTableState_Available,
  TransitGatewayPolicyTableState_Deleted,
  TransitGatewayPolicyTableState_Deleting,
  TransitGatewayPolicyTableState_Pending,
  TransitGatewayPolicyTableState'
  #-}