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