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