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