{-# 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.AttackLayer
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Shield.Types.AttackLayer
  ( AttackLayer
      ( ..,
        AttackLayer_APPLICATION,
        AttackLayer_NETWORK
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype AttackLayer = AttackLayer'
  { AttackLayer -> Text
fromAttackLayer ::
      Core.Text
  }
  deriving stock
    ( Int -> AttackLayer -> ShowS
[AttackLayer] -> ShowS
AttackLayer -> String
(Int -> AttackLayer -> ShowS)
-> (AttackLayer -> String)
-> ([AttackLayer] -> ShowS)
-> Show AttackLayer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AttackLayer] -> ShowS
$cshowList :: [AttackLayer] -> ShowS
show :: AttackLayer -> String
$cshow :: AttackLayer -> String
showsPrec :: Int -> AttackLayer -> ShowS
$cshowsPrec :: Int -> AttackLayer -> ShowS
Prelude.Show,
      ReadPrec [AttackLayer]
ReadPrec AttackLayer
Int -> ReadS AttackLayer
ReadS [AttackLayer]
(Int -> ReadS AttackLayer)
-> ReadS [AttackLayer]
-> ReadPrec AttackLayer
-> ReadPrec [AttackLayer]
-> Read AttackLayer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AttackLayer]
$creadListPrec :: ReadPrec [AttackLayer]
readPrec :: ReadPrec AttackLayer
$creadPrec :: ReadPrec AttackLayer
readList :: ReadS [AttackLayer]
$creadList :: ReadS [AttackLayer]
readsPrec :: Int -> ReadS AttackLayer
$creadsPrec :: Int -> ReadS AttackLayer
Prelude.Read,
      AttackLayer -> AttackLayer -> Bool
(AttackLayer -> AttackLayer -> Bool)
-> (AttackLayer -> AttackLayer -> Bool) -> Eq AttackLayer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AttackLayer -> AttackLayer -> Bool
$c/= :: AttackLayer -> AttackLayer -> Bool
== :: AttackLayer -> AttackLayer -> Bool
$c== :: AttackLayer -> AttackLayer -> Bool
Prelude.Eq,
      Eq AttackLayer
Eq AttackLayer
-> (AttackLayer -> AttackLayer -> Ordering)
-> (AttackLayer -> AttackLayer -> Bool)
-> (AttackLayer -> AttackLayer -> Bool)
-> (AttackLayer -> AttackLayer -> Bool)
-> (AttackLayer -> AttackLayer -> Bool)
-> (AttackLayer -> AttackLayer -> AttackLayer)
-> (AttackLayer -> AttackLayer -> AttackLayer)
-> Ord AttackLayer
AttackLayer -> AttackLayer -> Bool
AttackLayer -> AttackLayer -> Ordering
AttackLayer -> AttackLayer -> AttackLayer
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 :: AttackLayer -> AttackLayer -> AttackLayer
$cmin :: AttackLayer -> AttackLayer -> AttackLayer
max :: AttackLayer -> AttackLayer -> AttackLayer
$cmax :: AttackLayer -> AttackLayer -> AttackLayer
>= :: AttackLayer -> AttackLayer -> Bool
$c>= :: AttackLayer -> AttackLayer -> Bool
> :: AttackLayer -> AttackLayer -> Bool
$c> :: AttackLayer -> AttackLayer -> Bool
<= :: AttackLayer -> AttackLayer -> Bool
$c<= :: AttackLayer -> AttackLayer -> Bool
< :: AttackLayer -> AttackLayer -> Bool
$c< :: AttackLayer -> AttackLayer -> Bool
compare :: AttackLayer -> AttackLayer -> Ordering
$ccompare :: AttackLayer -> AttackLayer -> Ordering
$cp1Ord :: Eq AttackLayer
Prelude.Ord,
      (forall x. AttackLayer -> Rep AttackLayer x)
-> (forall x. Rep AttackLayer x -> AttackLayer)
-> Generic AttackLayer
forall x. Rep AttackLayer x -> AttackLayer
forall x. AttackLayer -> Rep AttackLayer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AttackLayer x -> AttackLayer
$cfrom :: forall x. AttackLayer -> Rep AttackLayer x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AttackLayer -> Int
AttackLayer -> Int
(Int -> AttackLayer -> Int)
-> (AttackLayer -> Int) -> Hashable AttackLayer
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AttackLayer -> Int
$chash :: AttackLayer -> Int
hashWithSalt :: Int -> AttackLayer -> Int
$chashWithSalt :: Int -> AttackLayer -> Int
Prelude.Hashable,
      AttackLayer -> ()
(AttackLayer -> ()) -> NFData AttackLayer
forall a. (a -> ()) -> NFData a
rnf :: AttackLayer -> ()
$crnf :: AttackLayer -> ()
Prelude.NFData,
      Text -> Either String AttackLayer
(Text -> Either String AttackLayer) -> FromText AttackLayer
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AttackLayer
$cfromText :: Text -> Either String AttackLayer
Core.FromText,
      AttackLayer -> Text
(AttackLayer -> Text) -> ToText AttackLayer
forall a. (a -> Text) -> ToText a
toText :: AttackLayer -> Text
$ctoText :: AttackLayer -> Text
Core.ToText,
      AttackLayer -> ByteString
(AttackLayer -> ByteString) -> ToByteString AttackLayer
forall a. (a -> ByteString) -> ToByteString a
toBS :: AttackLayer -> ByteString
$ctoBS :: AttackLayer -> ByteString
Core.ToByteString,
      AttackLayer -> ByteStringBuilder
(AttackLayer -> ByteStringBuilder) -> ToLog AttackLayer
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AttackLayer -> ByteStringBuilder
$cbuild :: AttackLayer -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AttackLayer -> [Header]
(HeaderName -> AttackLayer -> [Header]) -> ToHeader AttackLayer
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AttackLayer -> [Header]
$ctoHeader :: HeaderName -> AttackLayer -> [Header]
Core.ToHeader,
      AttackLayer -> QueryString
(AttackLayer -> QueryString) -> ToQuery AttackLayer
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AttackLayer -> QueryString
$ctoQuery :: AttackLayer -> QueryString
Core.ToQuery,
      Value -> Parser [AttackLayer]
Value -> Parser AttackLayer
(Value -> Parser AttackLayer)
-> (Value -> Parser [AttackLayer]) -> FromJSON AttackLayer
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AttackLayer]
$cparseJSONList :: Value -> Parser [AttackLayer]
parseJSON :: Value -> Parser AttackLayer
$cparseJSON :: Value -> Parser AttackLayer
Core.FromJSON,
      FromJSONKeyFunction [AttackLayer]
FromJSONKeyFunction AttackLayer
FromJSONKeyFunction AttackLayer
-> FromJSONKeyFunction [AttackLayer] -> FromJSONKey AttackLayer
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AttackLayer]
$cfromJSONKeyList :: FromJSONKeyFunction [AttackLayer]
fromJSONKey :: FromJSONKeyFunction AttackLayer
$cfromJSONKey :: FromJSONKeyFunction AttackLayer
Core.FromJSONKey,
      [AttackLayer] -> Encoding
[AttackLayer] -> Value
AttackLayer -> Encoding
AttackLayer -> Value
(AttackLayer -> Value)
-> (AttackLayer -> Encoding)
-> ([AttackLayer] -> Value)
-> ([AttackLayer] -> Encoding)
-> ToJSON AttackLayer
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AttackLayer] -> Encoding
$ctoEncodingList :: [AttackLayer] -> Encoding
toJSONList :: [AttackLayer] -> Value
$ctoJSONList :: [AttackLayer] -> Value
toEncoding :: AttackLayer -> Encoding
$ctoEncoding :: AttackLayer -> Encoding
toJSON :: AttackLayer -> Value
$ctoJSON :: AttackLayer -> Value
Core.ToJSON,
      ToJSONKeyFunction [AttackLayer]
ToJSONKeyFunction AttackLayer
ToJSONKeyFunction AttackLayer
-> ToJSONKeyFunction [AttackLayer] -> ToJSONKey AttackLayer
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AttackLayer]
$ctoJSONKeyList :: ToJSONKeyFunction [AttackLayer]
toJSONKey :: ToJSONKeyFunction AttackLayer
$ctoJSONKey :: ToJSONKeyFunction AttackLayer
Core.ToJSONKey,
      [Node] -> Either String AttackLayer
([Node] -> Either String AttackLayer) -> FromXML AttackLayer
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AttackLayer
$cparseXML :: [Node] -> Either String AttackLayer
Core.FromXML,
      AttackLayer -> XML
(AttackLayer -> XML) -> ToXML AttackLayer
forall a. (a -> XML) -> ToXML a
toXML :: AttackLayer -> XML
$ctoXML :: AttackLayer -> XML
Core.ToXML
    )

pattern AttackLayer_APPLICATION :: AttackLayer
pattern $bAttackLayer_APPLICATION :: AttackLayer
$mAttackLayer_APPLICATION :: forall r. AttackLayer -> (Void# -> r) -> (Void# -> r) -> r
AttackLayer_APPLICATION = AttackLayer' "APPLICATION"

pattern AttackLayer_NETWORK :: AttackLayer
pattern $bAttackLayer_NETWORK :: AttackLayer
$mAttackLayer_NETWORK :: forall r. AttackLayer -> (Void# -> r) -> (Void# -> r) -> r
AttackLayer_NETWORK = AttackLayer' "NETWORK"

{-# COMPLETE
  AttackLayer_APPLICATION,
  AttackLayer_NETWORK,
  AttackLayer'
  #-}