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

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

pattern ProtectedResourceType_APPLICATION_LOAD_BALANCER :: ProtectedResourceType
pattern $bProtectedResourceType_APPLICATION_LOAD_BALANCER :: ProtectedResourceType
$mProtectedResourceType_APPLICATION_LOAD_BALANCER :: forall {r}.
ProtectedResourceType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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'
  #-}