{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Shield.Types.AttackPropertyIdentifier
( AttackPropertyIdentifier
( ..,
AttackPropertyIdentifier_DESTINATION_URL,
AttackPropertyIdentifier_REFERRER,
AttackPropertyIdentifier_SOURCE_ASN,
AttackPropertyIdentifier_SOURCE_COUNTRY,
AttackPropertyIdentifier_SOURCE_IP_ADDRESS,
AttackPropertyIdentifier_SOURCE_USER_AGENT,
AttackPropertyIdentifier_WORDPRESS_PINGBACK_REFLECTOR,
AttackPropertyIdentifier_WORDPRESS_PINGBACK_SOURCE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AttackPropertyIdentifier = AttackPropertyIdentifier'
{ AttackPropertyIdentifier -> Text
fromAttackPropertyIdentifier ::
Core.Text
}
deriving stock
( Int -> AttackPropertyIdentifier -> ShowS
[AttackPropertyIdentifier] -> ShowS
AttackPropertyIdentifier -> String
(Int -> AttackPropertyIdentifier -> ShowS)
-> (AttackPropertyIdentifier -> String)
-> ([AttackPropertyIdentifier] -> ShowS)
-> Show AttackPropertyIdentifier
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AttackPropertyIdentifier] -> ShowS
$cshowList :: [AttackPropertyIdentifier] -> ShowS
show :: AttackPropertyIdentifier -> String
$cshow :: AttackPropertyIdentifier -> String
showsPrec :: Int -> AttackPropertyIdentifier -> ShowS
$cshowsPrec :: Int -> AttackPropertyIdentifier -> ShowS
Prelude.Show,
ReadPrec [AttackPropertyIdentifier]
ReadPrec AttackPropertyIdentifier
Int -> ReadS AttackPropertyIdentifier
ReadS [AttackPropertyIdentifier]
(Int -> ReadS AttackPropertyIdentifier)
-> ReadS [AttackPropertyIdentifier]
-> ReadPrec AttackPropertyIdentifier
-> ReadPrec [AttackPropertyIdentifier]
-> Read AttackPropertyIdentifier
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AttackPropertyIdentifier]
$creadListPrec :: ReadPrec [AttackPropertyIdentifier]
readPrec :: ReadPrec AttackPropertyIdentifier
$creadPrec :: ReadPrec AttackPropertyIdentifier
readList :: ReadS [AttackPropertyIdentifier]
$creadList :: ReadS [AttackPropertyIdentifier]
readsPrec :: Int -> ReadS AttackPropertyIdentifier
$creadsPrec :: Int -> ReadS AttackPropertyIdentifier
Prelude.Read,
AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
(AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool)
-> (AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool)
-> Eq AttackPropertyIdentifier
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
$c/= :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
== :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
$c== :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
Prelude.Eq,
Eq AttackPropertyIdentifier
Eq AttackPropertyIdentifier
-> (AttackPropertyIdentifier
-> AttackPropertyIdentifier -> Ordering)
-> (AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool)
-> (AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool)
-> (AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool)
-> (AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool)
-> (AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier)
-> (AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier)
-> Ord AttackPropertyIdentifier
AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
AttackPropertyIdentifier -> AttackPropertyIdentifier -> Ordering
AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier
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 :: AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier
$cmin :: AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier
max :: AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier
$cmax :: AttackPropertyIdentifier
-> AttackPropertyIdentifier -> AttackPropertyIdentifier
>= :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
$c>= :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
> :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
$c> :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
<= :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
$c<= :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
< :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
$c< :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Bool
compare :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Ordering
$ccompare :: AttackPropertyIdentifier -> AttackPropertyIdentifier -> Ordering
$cp1Ord :: Eq AttackPropertyIdentifier
Prelude.Ord,
(forall x.
AttackPropertyIdentifier -> Rep AttackPropertyIdentifier x)
-> (forall x.
Rep AttackPropertyIdentifier x -> AttackPropertyIdentifier)
-> Generic AttackPropertyIdentifier
forall x.
Rep AttackPropertyIdentifier x -> AttackPropertyIdentifier
forall x.
AttackPropertyIdentifier -> Rep AttackPropertyIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AttackPropertyIdentifier x -> AttackPropertyIdentifier
$cfrom :: forall x.
AttackPropertyIdentifier -> Rep AttackPropertyIdentifier x
Prelude.Generic
)
deriving newtype
( Int -> AttackPropertyIdentifier -> Int
AttackPropertyIdentifier -> Int
(Int -> AttackPropertyIdentifier -> Int)
-> (AttackPropertyIdentifier -> Int)
-> Hashable AttackPropertyIdentifier
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AttackPropertyIdentifier -> Int
$chash :: AttackPropertyIdentifier -> Int
hashWithSalt :: Int -> AttackPropertyIdentifier -> Int
$chashWithSalt :: Int -> AttackPropertyIdentifier -> Int
Prelude.Hashable,
AttackPropertyIdentifier -> ()
(AttackPropertyIdentifier -> ()) -> NFData AttackPropertyIdentifier
forall a. (a -> ()) -> NFData a
rnf :: AttackPropertyIdentifier -> ()
$crnf :: AttackPropertyIdentifier -> ()
Prelude.NFData,
Text -> Either String AttackPropertyIdentifier
(Text -> Either String AttackPropertyIdentifier)
-> FromText AttackPropertyIdentifier
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AttackPropertyIdentifier
$cfromText :: Text -> Either String AttackPropertyIdentifier
Core.FromText,
AttackPropertyIdentifier -> Text
(AttackPropertyIdentifier -> Text)
-> ToText AttackPropertyIdentifier
forall a. (a -> Text) -> ToText a
toText :: AttackPropertyIdentifier -> Text
$ctoText :: AttackPropertyIdentifier -> Text
Core.ToText,
AttackPropertyIdentifier -> ByteString
(AttackPropertyIdentifier -> ByteString)
-> ToByteString AttackPropertyIdentifier
forall a. (a -> ByteString) -> ToByteString a
toBS :: AttackPropertyIdentifier -> ByteString
$ctoBS :: AttackPropertyIdentifier -> ByteString
Core.ToByteString,
AttackPropertyIdentifier -> ByteStringBuilder
(AttackPropertyIdentifier -> ByteStringBuilder)
-> ToLog AttackPropertyIdentifier
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AttackPropertyIdentifier -> ByteStringBuilder
$cbuild :: AttackPropertyIdentifier -> ByteStringBuilder
Core.ToLog,
HeaderName -> AttackPropertyIdentifier -> [Header]
(HeaderName -> AttackPropertyIdentifier -> [Header])
-> ToHeader AttackPropertyIdentifier
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AttackPropertyIdentifier -> [Header]
$ctoHeader :: HeaderName -> AttackPropertyIdentifier -> [Header]
Core.ToHeader,
AttackPropertyIdentifier -> QueryString
(AttackPropertyIdentifier -> QueryString)
-> ToQuery AttackPropertyIdentifier
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AttackPropertyIdentifier -> QueryString
$ctoQuery :: AttackPropertyIdentifier -> QueryString
Core.ToQuery,
Value -> Parser [AttackPropertyIdentifier]
Value -> Parser AttackPropertyIdentifier
(Value -> Parser AttackPropertyIdentifier)
-> (Value -> Parser [AttackPropertyIdentifier])
-> FromJSON AttackPropertyIdentifier
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AttackPropertyIdentifier]
$cparseJSONList :: Value -> Parser [AttackPropertyIdentifier]
parseJSON :: Value -> Parser AttackPropertyIdentifier
$cparseJSON :: Value -> Parser AttackPropertyIdentifier
Core.FromJSON,
FromJSONKeyFunction [AttackPropertyIdentifier]
FromJSONKeyFunction AttackPropertyIdentifier
FromJSONKeyFunction AttackPropertyIdentifier
-> FromJSONKeyFunction [AttackPropertyIdentifier]
-> FromJSONKey AttackPropertyIdentifier
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AttackPropertyIdentifier]
$cfromJSONKeyList :: FromJSONKeyFunction [AttackPropertyIdentifier]
fromJSONKey :: FromJSONKeyFunction AttackPropertyIdentifier
$cfromJSONKey :: FromJSONKeyFunction AttackPropertyIdentifier
Core.FromJSONKey,
[AttackPropertyIdentifier] -> Encoding
[AttackPropertyIdentifier] -> Value
AttackPropertyIdentifier -> Encoding
AttackPropertyIdentifier -> Value
(AttackPropertyIdentifier -> Value)
-> (AttackPropertyIdentifier -> Encoding)
-> ([AttackPropertyIdentifier] -> Value)
-> ([AttackPropertyIdentifier] -> Encoding)
-> ToJSON AttackPropertyIdentifier
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AttackPropertyIdentifier] -> Encoding
$ctoEncodingList :: [AttackPropertyIdentifier] -> Encoding
toJSONList :: [AttackPropertyIdentifier] -> Value
$ctoJSONList :: [AttackPropertyIdentifier] -> Value
toEncoding :: AttackPropertyIdentifier -> Encoding
$ctoEncoding :: AttackPropertyIdentifier -> Encoding
toJSON :: AttackPropertyIdentifier -> Value
$ctoJSON :: AttackPropertyIdentifier -> Value
Core.ToJSON,
ToJSONKeyFunction [AttackPropertyIdentifier]
ToJSONKeyFunction AttackPropertyIdentifier
ToJSONKeyFunction AttackPropertyIdentifier
-> ToJSONKeyFunction [AttackPropertyIdentifier]
-> ToJSONKey AttackPropertyIdentifier
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AttackPropertyIdentifier]
$ctoJSONKeyList :: ToJSONKeyFunction [AttackPropertyIdentifier]
toJSONKey :: ToJSONKeyFunction AttackPropertyIdentifier
$ctoJSONKey :: ToJSONKeyFunction AttackPropertyIdentifier
Core.ToJSONKey,
[Node] -> Either String AttackPropertyIdentifier
([Node] -> Either String AttackPropertyIdentifier)
-> FromXML AttackPropertyIdentifier
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AttackPropertyIdentifier
$cparseXML :: [Node] -> Either String AttackPropertyIdentifier
Core.FromXML,
AttackPropertyIdentifier -> XML
(AttackPropertyIdentifier -> XML) -> ToXML AttackPropertyIdentifier
forall a. (a -> XML) -> ToXML a
toXML :: AttackPropertyIdentifier -> XML
$ctoXML :: AttackPropertyIdentifier -> XML
Core.ToXML
)
pattern AttackPropertyIdentifier_DESTINATION_URL :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_DESTINATION_URL :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_DESTINATION_URL :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_DESTINATION_URL = AttackPropertyIdentifier' "DESTINATION_URL"
pattern AttackPropertyIdentifier_REFERRER :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_REFERRER :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_REFERRER :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_REFERRER = AttackPropertyIdentifier' "REFERRER"
pattern AttackPropertyIdentifier_SOURCE_ASN :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_SOURCE_ASN :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_SOURCE_ASN :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_SOURCE_ASN = AttackPropertyIdentifier' "SOURCE_ASN"
pattern AttackPropertyIdentifier_SOURCE_COUNTRY :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_SOURCE_COUNTRY :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_SOURCE_COUNTRY :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_SOURCE_COUNTRY = AttackPropertyIdentifier' "SOURCE_COUNTRY"
pattern AttackPropertyIdentifier_SOURCE_IP_ADDRESS :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_SOURCE_IP_ADDRESS :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_SOURCE_IP_ADDRESS :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_SOURCE_IP_ADDRESS = AttackPropertyIdentifier' "SOURCE_IP_ADDRESS"
pattern AttackPropertyIdentifier_SOURCE_USER_AGENT :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_SOURCE_USER_AGENT :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_SOURCE_USER_AGENT :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_SOURCE_USER_AGENT = AttackPropertyIdentifier' "SOURCE_USER_AGENT"
pattern AttackPropertyIdentifier_WORDPRESS_PINGBACK_REFLECTOR :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_WORDPRESS_PINGBACK_REFLECTOR :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_WORDPRESS_PINGBACK_REFLECTOR :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_WORDPRESS_PINGBACK_REFLECTOR = AttackPropertyIdentifier' "WORDPRESS_PINGBACK_REFLECTOR"
pattern AttackPropertyIdentifier_WORDPRESS_PINGBACK_SOURCE :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_WORDPRESS_PINGBACK_SOURCE :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_WORDPRESS_PINGBACK_SOURCE :: forall r.
AttackPropertyIdentifier -> (Void# -> r) -> (Void# -> r) -> r
AttackPropertyIdentifier_WORDPRESS_PINGBACK_SOURCE = AttackPropertyIdentifier' "WORDPRESS_PINGBACK_SOURCE"
{-# COMPLETE
AttackPropertyIdentifier_DESTINATION_URL,
AttackPropertyIdentifier_REFERRER,
AttackPropertyIdentifier_SOURCE_ASN,
AttackPropertyIdentifier_SOURCE_COUNTRY,
AttackPropertyIdentifier_SOURCE_IP_ADDRESS,
AttackPropertyIdentifier_SOURCE_USER_AGENT,
AttackPropertyIdentifier_WORDPRESS_PINGBACK_REFLECTOR,
AttackPropertyIdentifier_WORDPRESS_PINGBACK_SOURCE,
AttackPropertyIdentifier'
#-}