{-# 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.ProtectedResourceType
-- 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.ProtectedResourceType
  ( ProtectedResourceType
      ( ..,
        ProtectedResourceType_APPLICATION_LOAD_BALANCER,
        ProtectedResourceType_CLASSIC_LOAD_BALANCER,
        ProtectedResourceType_CLOUDFRONT_DISTRIBUTION,
        ProtectedResourceType_ELASTIC_IP_ALLOCATION,
        ProtectedResourceType_GLOBAL_ACCELERATOR,
        ProtectedResourceType_ROUTE_53_HOSTED_ZONE
      ),
  )
where

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

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

pattern ProtectedResourceType_APPLICATION_LOAD_BALANCER :: ProtectedResourceType
pattern $bProtectedResourceType_APPLICATION_LOAD_BALANCER :: ProtectedResourceType
$mProtectedResourceType_APPLICATION_LOAD_BALANCER :: forall r.
ProtectedResourceType -> (Void# -> r) -> (Void# -> r) -> r
ProtectedResourceType_APPLICATION_LOAD_BALANCER = ProtectedResourceType' "APPLICATION_LOAD_BALANCER"

pattern ProtectedResourceType_CLASSIC_LOAD_BALANCER :: ProtectedResourceType
pattern $bProtectedResourceType_CLASSIC_LOAD_BALANCER :: ProtectedResourceType
$mProtectedResourceType_CLASSIC_LOAD_BALANCER :: forall r.
ProtectedResourceType -> (Void# -> r) -> (Void# -> r) -> r
ProtectedResourceType_CLASSIC_LOAD_BALANCER = ProtectedResourceType' "CLASSIC_LOAD_BALANCER"

pattern ProtectedResourceType_CLOUDFRONT_DISTRIBUTION :: ProtectedResourceType
pattern $bProtectedResourceType_CLOUDFRONT_DISTRIBUTION :: ProtectedResourceType
$mProtectedResourceType_CLOUDFRONT_DISTRIBUTION :: forall r.
ProtectedResourceType -> (Void# -> r) -> (Void# -> r) -> r
ProtectedResourceType_CLOUDFRONT_DISTRIBUTION = ProtectedResourceType' "CLOUDFRONT_DISTRIBUTION"

pattern ProtectedResourceType_ELASTIC_IP_ALLOCATION :: ProtectedResourceType
pattern $bProtectedResourceType_ELASTIC_IP_ALLOCATION :: ProtectedResourceType
$mProtectedResourceType_ELASTIC_IP_ALLOCATION :: forall r.
ProtectedResourceType -> (Void# -> r) -> (Void# -> r) -> r
ProtectedResourceType_ELASTIC_IP_ALLOCATION = ProtectedResourceType' "ELASTIC_IP_ALLOCATION"

pattern ProtectedResourceType_GLOBAL_ACCELERATOR :: ProtectedResourceType
pattern $bProtectedResourceType_GLOBAL_ACCELERATOR :: ProtectedResourceType
$mProtectedResourceType_GLOBAL_ACCELERATOR :: forall r.
ProtectedResourceType -> (Void# -> r) -> (Void# -> r) -> r
ProtectedResourceType_GLOBAL_ACCELERATOR = ProtectedResourceType' "GLOBAL_ACCELERATOR"

pattern ProtectedResourceType_ROUTE_53_HOSTED_ZONE :: ProtectedResourceType
pattern $bProtectedResourceType_ROUTE_53_HOSTED_ZONE :: ProtectedResourceType
$mProtectedResourceType_ROUTE_53_HOSTED_ZONE :: forall r.
ProtectedResourceType -> (Void# -> r) -> (Void# -> r) -> r
ProtectedResourceType_ROUTE_53_HOSTED_ZONE = ProtectedResourceType' "ROUTE_53_HOSTED_ZONE"

{-# COMPLETE
  ProtectedResourceType_APPLICATION_LOAD_BALANCER,
  ProtectedResourceType_CLASSIC_LOAD_BALANCER,
  ProtectedResourceType_CLOUDFRONT_DISTRIBUTION,
  ProtectedResourceType_ELASTIC_IP_ALLOCATION,
  ProtectedResourceType_GLOBAL_ACCELERATOR,
  ProtectedResourceType_ROUTE_53_HOSTED_ZONE,
  ProtectedResourceType'
  #-}