{-# 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.Shield.Types.AttackPropertyIdentifier
-- 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.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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype AttackPropertyIdentifier = AttackPropertyIdentifier'
  { AttackPropertyIdentifier -> Text
fromAttackPropertyIdentifier ::
      Data.Text
  }
  deriving stock
    ( Int -> AttackPropertyIdentifier -> ShowS
[AttackPropertyIdentifier] -> ShowS
AttackPropertyIdentifier -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AttackPropertyIdentifier
Int -> AttackPropertyIdentifier -> Int
AttackPropertyIdentifier -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AttackPropertyIdentifier -> ()
$crnf :: AttackPropertyIdentifier -> ()
Prelude.NFData,
      Text -> Either String AttackPropertyIdentifier
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AttackPropertyIdentifier
$cfromText :: Text -> Either String AttackPropertyIdentifier
Data.FromText,
      AttackPropertyIdentifier -> Text
forall a. (a -> Text) -> ToText a
toText :: AttackPropertyIdentifier -> Text
$ctoText :: AttackPropertyIdentifier -> Text
Data.ToText,
      AttackPropertyIdentifier -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AttackPropertyIdentifier -> ByteString
$ctoBS :: AttackPropertyIdentifier -> ByteString
Data.ToByteString,
      AttackPropertyIdentifier -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AttackPropertyIdentifier -> ByteStringBuilder
$cbuild :: AttackPropertyIdentifier -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AttackPropertyIdentifier -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AttackPropertyIdentifier -> [Header]
$ctoHeader :: HeaderName -> AttackPropertyIdentifier -> [Header]
Data.ToHeader,
      AttackPropertyIdentifier -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AttackPropertyIdentifier -> QueryString
$ctoQuery :: AttackPropertyIdentifier -> QueryString
Data.ToQuery,
      Value -> Parser [AttackPropertyIdentifier]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AttackPropertyIdentifier]
FromJSONKeyFunction AttackPropertyIdentifier
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AttackPropertyIdentifier]
$cfromJSONKeyList :: FromJSONKeyFunction [AttackPropertyIdentifier]
fromJSONKey :: FromJSONKeyFunction AttackPropertyIdentifier
$cfromJSONKey :: FromJSONKeyFunction AttackPropertyIdentifier
Data.FromJSONKey,
      [AttackPropertyIdentifier] -> Encoding
[AttackPropertyIdentifier] -> Value
AttackPropertyIdentifier -> Encoding
AttackPropertyIdentifier -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AttackPropertyIdentifier]
ToJSONKeyFunction AttackPropertyIdentifier
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AttackPropertyIdentifier]
$ctoJSONKeyList :: ToJSONKeyFunction [AttackPropertyIdentifier]
toJSONKey :: ToJSONKeyFunction AttackPropertyIdentifier
$ctoJSONKey :: ToJSONKeyFunction AttackPropertyIdentifier
Data.ToJSONKey,
      [Node] -> Either String AttackPropertyIdentifier
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AttackPropertyIdentifier
$cparseXML :: [Node] -> Either String AttackPropertyIdentifier
Data.FromXML,
      AttackPropertyIdentifier -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AttackPropertyIdentifier -> XML
$ctoXML :: AttackPropertyIdentifier -> XML
Data.ToXML
    )

pattern AttackPropertyIdentifier_DESTINATION_URL :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_DESTINATION_URL :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_DESTINATION_URL :: forall {r}.
AttackPropertyIdentifier -> ((# #) -> r) -> ((# #) -> r) -> r
AttackPropertyIdentifier_DESTINATION_URL = AttackPropertyIdentifier' "DESTINATION_URL"

pattern AttackPropertyIdentifier_REFERRER :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_REFERRER :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_REFERRER :: forall {r}.
AttackPropertyIdentifier -> ((# #) -> r) -> ((# #) -> r) -> r
AttackPropertyIdentifier_REFERRER = AttackPropertyIdentifier' "REFERRER"

pattern AttackPropertyIdentifier_SOURCE_ASN :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_SOURCE_ASN :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_SOURCE_ASN :: forall {r}.
AttackPropertyIdentifier -> ((# #) -> r) -> ((# #) -> r) -> r
AttackPropertyIdentifier_SOURCE_ASN = AttackPropertyIdentifier' "SOURCE_ASN"

pattern AttackPropertyIdentifier_SOURCE_COUNTRY :: AttackPropertyIdentifier
pattern $bAttackPropertyIdentifier_SOURCE_COUNTRY :: AttackPropertyIdentifier
$mAttackPropertyIdentifier_SOURCE_COUNTRY :: forall {r}.
AttackPropertyIdentifier -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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'
  #-}