{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.NetworkFirewall.Types.ResourceStatus
( ResourceStatus
( ..,
ResourceStatus_ACTIVE,
ResourceStatus_DELETING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ResourceStatus = ResourceStatus'
{ ResourceStatus -> Text
fromResourceStatus ::
Core.Text
}
deriving stock
( Int -> ResourceStatus -> ShowS
[ResourceStatus] -> ShowS
ResourceStatus -> String
(Int -> ResourceStatus -> ShowS)
-> (ResourceStatus -> String)
-> ([ResourceStatus] -> ShowS)
-> Show ResourceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceStatus] -> ShowS
$cshowList :: [ResourceStatus] -> ShowS
show :: ResourceStatus -> String
$cshow :: ResourceStatus -> String
showsPrec :: Int -> ResourceStatus -> ShowS
$cshowsPrec :: Int -> ResourceStatus -> ShowS
Prelude.Show,
ReadPrec [ResourceStatus]
ReadPrec ResourceStatus
Int -> ReadS ResourceStatus
ReadS [ResourceStatus]
(Int -> ReadS ResourceStatus)
-> ReadS [ResourceStatus]
-> ReadPrec ResourceStatus
-> ReadPrec [ResourceStatus]
-> Read ResourceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceStatus]
$creadListPrec :: ReadPrec [ResourceStatus]
readPrec :: ReadPrec ResourceStatus
$creadPrec :: ReadPrec ResourceStatus
readList :: ReadS [ResourceStatus]
$creadList :: ReadS [ResourceStatus]
readsPrec :: Int -> ReadS ResourceStatus
$creadsPrec :: Int -> ReadS ResourceStatus
Prelude.Read,
ResourceStatus -> ResourceStatus -> Bool
(ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool) -> Eq ResourceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceStatus -> ResourceStatus -> Bool
$c/= :: ResourceStatus -> ResourceStatus -> Bool
== :: ResourceStatus -> ResourceStatus -> Bool
$c== :: ResourceStatus -> ResourceStatus -> Bool
Prelude.Eq,
Eq ResourceStatus
Eq ResourceStatus
-> (ResourceStatus -> ResourceStatus -> Ordering)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> Bool)
-> (ResourceStatus -> ResourceStatus -> ResourceStatus)
-> (ResourceStatus -> ResourceStatus -> ResourceStatus)
-> Ord ResourceStatus
ResourceStatus -> ResourceStatus -> Bool
ResourceStatus -> ResourceStatus -> Ordering
ResourceStatus -> ResourceStatus -> ResourceStatus
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 :: ResourceStatus -> ResourceStatus -> ResourceStatus
$cmin :: ResourceStatus -> ResourceStatus -> ResourceStatus
max :: ResourceStatus -> ResourceStatus -> ResourceStatus
$cmax :: ResourceStatus -> ResourceStatus -> ResourceStatus
>= :: ResourceStatus -> ResourceStatus -> Bool
$c>= :: ResourceStatus -> ResourceStatus -> Bool
> :: ResourceStatus -> ResourceStatus -> Bool
$c> :: ResourceStatus -> ResourceStatus -> Bool
<= :: ResourceStatus -> ResourceStatus -> Bool
$c<= :: ResourceStatus -> ResourceStatus -> Bool
< :: ResourceStatus -> ResourceStatus -> Bool
$c< :: ResourceStatus -> ResourceStatus -> Bool
compare :: ResourceStatus -> ResourceStatus -> Ordering
$ccompare :: ResourceStatus -> ResourceStatus -> Ordering
$cp1Ord :: Eq ResourceStatus
Prelude.Ord,
(forall x. ResourceStatus -> Rep ResourceStatus x)
-> (forall x. Rep ResourceStatus x -> ResourceStatus)
-> Generic ResourceStatus
forall x. Rep ResourceStatus x -> ResourceStatus
forall x. ResourceStatus -> Rep ResourceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResourceStatus x -> ResourceStatus
$cfrom :: forall x. ResourceStatus -> Rep ResourceStatus x
Prelude.Generic
)
deriving newtype
( Int -> ResourceStatus -> Int
ResourceStatus -> Int
(Int -> ResourceStatus -> Int)
-> (ResourceStatus -> Int) -> Hashable ResourceStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ResourceStatus -> Int
$chash :: ResourceStatus -> Int
hashWithSalt :: Int -> ResourceStatus -> Int
$chashWithSalt :: Int -> ResourceStatus -> Int
Prelude.Hashable,
ResourceStatus -> ()
(ResourceStatus -> ()) -> NFData ResourceStatus
forall a. (a -> ()) -> NFData a
rnf :: ResourceStatus -> ()
$crnf :: ResourceStatus -> ()
Prelude.NFData,
Text -> Either String ResourceStatus
(Text -> Either String ResourceStatus) -> FromText ResourceStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ResourceStatus
$cfromText :: Text -> Either String ResourceStatus
Core.FromText,
ResourceStatus -> Text
(ResourceStatus -> Text) -> ToText ResourceStatus
forall a. (a -> Text) -> ToText a
toText :: ResourceStatus -> Text
$ctoText :: ResourceStatus -> Text
Core.ToText,
ResourceStatus -> ByteString
(ResourceStatus -> ByteString) -> ToByteString ResourceStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ResourceStatus -> ByteString
$ctoBS :: ResourceStatus -> ByteString
Core.ToByteString,
ResourceStatus -> ByteStringBuilder
(ResourceStatus -> ByteStringBuilder) -> ToLog ResourceStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ResourceStatus -> ByteStringBuilder
$cbuild :: ResourceStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ResourceStatus -> [Header]
(HeaderName -> ResourceStatus -> [Header])
-> ToHeader ResourceStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ResourceStatus -> [Header]
$ctoHeader :: HeaderName -> ResourceStatus -> [Header]
Core.ToHeader,
ResourceStatus -> QueryString
(ResourceStatus -> QueryString) -> ToQuery ResourceStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ResourceStatus -> QueryString
$ctoQuery :: ResourceStatus -> QueryString
Core.ToQuery,
Value -> Parser [ResourceStatus]
Value -> Parser ResourceStatus
(Value -> Parser ResourceStatus)
-> (Value -> Parser [ResourceStatus]) -> FromJSON ResourceStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ResourceStatus]
$cparseJSONList :: Value -> Parser [ResourceStatus]
parseJSON :: Value -> Parser ResourceStatus
$cparseJSON :: Value -> Parser ResourceStatus
Core.FromJSON,
FromJSONKeyFunction [ResourceStatus]
FromJSONKeyFunction ResourceStatus
FromJSONKeyFunction ResourceStatus
-> FromJSONKeyFunction [ResourceStatus]
-> FromJSONKey ResourceStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ResourceStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ResourceStatus]
fromJSONKey :: FromJSONKeyFunction ResourceStatus
$cfromJSONKey :: FromJSONKeyFunction ResourceStatus
Core.FromJSONKey,
[ResourceStatus] -> Encoding
[ResourceStatus] -> Value
ResourceStatus -> Encoding
ResourceStatus -> Value
(ResourceStatus -> Value)
-> (ResourceStatus -> Encoding)
-> ([ResourceStatus] -> Value)
-> ([ResourceStatus] -> Encoding)
-> ToJSON ResourceStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ResourceStatus] -> Encoding
$ctoEncodingList :: [ResourceStatus] -> Encoding
toJSONList :: [ResourceStatus] -> Value
$ctoJSONList :: [ResourceStatus] -> Value
toEncoding :: ResourceStatus -> Encoding
$ctoEncoding :: ResourceStatus -> Encoding
toJSON :: ResourceStatus -> Value
$ctoJSON :: ResourceStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ResourceStatus]
ToJSONKeyFunction ResourceStatus
ToJSONKeyFunction ResourceStatus
-> ToJSONKeyFunction [ResourceStatus] -> ToJSONKey ResourceStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ResourceStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ResourceStatus]
toJSONKey :: ToJSONKeyFunction ResourceStatus
$ctoJSONKey :: ToJSONKeyFunction ResourceStatus
Core.ToJSONKey,
[Node] -> Either String ResourceStatus
([Node] -> Either String ResourceStatus) -> FromXML ResourceStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ResourceStatus
$cparseXML :: [Node] -> Either String ResourceStatus
Core.FromXML,
ResourceStatus -> XML
(ResourceStatus -> XML) -> ToXML ResourceStatus
forall a. (a -> XML) -> ToXML a
toXML :: ResourceStatus -> XML
$ctoXML :: ResourceStatus -> XML
Core.ToXML
)
pattern ResourceStatus_ACTIVE :: ResourceStatus
pattern $bResourceStatus_ACTIVE :: ResourceStatus
$mResourceStatus_ACTIVE :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_ACTIVE = ResourceStatus' "ACTIVE"
pattern ResourceStatus_DELETING :: ResourceStatus
pattern $bResourceStatus_DELETING :: ResourceStatus
$mResourceStatus_DELETING :: forall r. ResourceStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceStatus_DELETING = ResourceStatus' "DELETING"
{-# COMPLETE
ResourceStatus_ACTIVE,
ResourceStatus_DELETING,
ResourceStatus'
#-}