{-# 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.Prelude as Prelude
newtype SubResourceType = SubResourceType'
{ SubResourceType -> Text
fromSubResourceType ::
Core.Text
}
deriving stock
( Int -> SubResourceType -> ShowS
[SubResourceType] -> ShowS
SubResourceType -> String
(Int -> SubResourceType -> ShowS)
-> (SubResourceType -> String)
-> ([SubResourceType] -> ShowS)
-> Show SubResourceType
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]
(Int -> ReadS SubResourceType)
-> ReadS [SubResourceType]
-> ReadPrec SubResourceType
-> ReadPrec [SubResourceType]
-> Read 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
(SubResourceType -> SubResourceType -> Bool)
-> (SubResourceType -> SubResourceType -> Bool)
-> Eq SubResourceType
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
Eq SubResourceType
-> (SubResourceType -> SubResourceType -> Ordering)
-> (SubResourceType -> SubResourceType -> Bool)
-> (SubResourceType -> SubResourceType -> Bool)
-> (SubResourceType -> SubResourceType -> Bool)
-> (SubResourceType -> SubResourceType -> Bool)
-> (SubResourceType -> SubResourceType -> SubResourceType)
-> (SubResourceType -> SubResourceType -> SubResourceType)
-> Ord 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
$cp1Ord :: Eq SubResourceType
Prelude.Ord,
(forall x. SubResourceType -> Rep SubResourceType x)
-> (forall x. Rep SubResourceType x -> SubResourceType)
-> Generic SubResourceType
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
( Int -> SubResourceType -> Int
SubResourceType -> Int
(Int -> SubResourceType -> Int)
-> (SubResourceType -> Int) -> Hashable SubResourceType
forall 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 -> ()
(SubResourceType -> ()) -> NFData SubResourceType
forall a. (a -> ()) -> NFData a
rnf :: SubResourceType -> ()
$crnf :: SubResourceType -> ()
Prelude.NFData,
Text -> Either String SubResourceType
(Text -> Either String SubResourceType) -> FromText SubResourceType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SubResourceType
$cfromText :: Text -> Either String SubResourceType
Core.FromText,
SubResourceType -> Text
(SubResourceType -> Text) -> ToText SubResourceType
forall a. (a -> Text) -> ToText a
toText :: SubResourceType -> Text
$ctoText :: SubResourceType -> Text
Core.ToText,
SubResourceType -> ByteString
(SubResourceType -> ByteString) -> ToByteString SubResourceType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SubResourceType -> ByteString
$ctoBS :: SubResourceType -> ByteString
Core.ToByteString,
SubResourceType -> ByteStringBuilder
(SubResourceType -> ByteStringBuilder) -> ToLog SubResourceType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SubResourceType -> ByteStringBuilder
$cbuild :: SubResourceType -> ByteStringBuilder
Core.ToLog,
HeaderName -> SubResourceType -> [Header]
(HeaderName -> SubResourceType -> [Header])
-> ToHeader SubResourceType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SubResourceType -> [Header]
$ctoHeader :: HeaderName -> SubResourceType -> [Header]
Core.ToHeader,
SubResourceType -> QueryString
(SubResourceType -> QueryString) -> ToQuery SubResourceType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SubResourceType -> QueryString
$ctoQuery :: SubResourceType -> QueryString
Core.ToQuery,
Value -> Parser [SubResourceType]
Value -> Parser SubResourceType
(Value -> Parser SubResourceType)
-> (Value -> Parser [SubResourceType]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [SubResourceType]
FromJSONKeyFunction SubResourceType
FromJSONKeyFunction SubResourceType
-> FromJSONKeyFunction [SubResourceType]
-> FromJSONKey SubResourceType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SubResourceType]
$cfromJSONKeyList :: FromJSONKeyFunction [SubResourceType]
fromJSONKey :: FromJSONKeyFunction SubResourceType
$cfromJSONKey :: FromJSONKeyFunction SubResourceType
Core.FromJSONKey,
[SubResourceType] -> Encoding
[SubResourceType] -> Value
SubResourceType -> Encoding
SubResourceType -> Value
(SubResourceType -> Value)
-> (SubResourceType -> Encoding)
-> ([SubResourceType] -> Value)
-> ([SubResourceType] -> Encoding)
-> ToJSON SubResourceType
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
Core.ToJSON,
ToJSONKeyFunction [SubResourceType]
ToJSONKeyFunction SubResourceType
ToJSONKeyFunction SubResourceType
-> ToJSONKeyFunction [SubResourceType] -> ToJSONKey SubResourceType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SubResourceType]
$ctoJSONKeyList :: ToJSONKeyFunction [SubResourceType]
toJSONKey :: ToJSONKeyFunction SubResourceType
$ctoJSONKey :: ToJSONKeyFunction SubResourceType
Core.ToJSONKey,
[Node] -> Either String SubResourceType
([Node] -> Either String SubResourceType)
-> FromXML SubResourceType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SubResourceType
$cparseXML :: [Node] -> Either String SubResourceType
Core.FromXML,
SubResourceType -> XML
(SubResourceType -> XML) -> ToXML SubResourceType
forall a. (a -> XML) -> ToXML a
toXML :: SubResourceType -> XML
$ctoXML :: SubResourceType -> XML
Core.ToXML
)
pattern SubResourceType_IP :: SubResourceType
pattern $bSubResourceType_IP :: SubResourceType
$mSubResourceType_IP :: forall r. SubResourceType -> (Void# -> r) -> (Void# -> r) -> r
SubResourceType_IP = SubResourceType' "IP"
pattern SubResourceType_URL :: SubResourceType
pattern $bSubResourceType_URL :: SubResourceType
$mSubResourceType_URL :: forall r. SubResourceType -> (Void# -> r) -> (Void# -> r) -> r
SubResourceType_URL = SubResourceType' "URL"
{-# COMPLETE
SubResourceType_IP,
SubResourceType_URL,
SubResourceType'
#-}