{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MQ.Types.SanitizationWarningReason
( SanitizationWarningReason
( ..,
SanitizationWarningReason_DISALLOWED_ATTRIBUTE_REMOVED,
SanitizationWarningReason_DISALLOWED_ELEMENT_REMOVED,
SanitizationWarningReason_INVALID_ATTRIBUTE_VALUE_REMOVED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SanitizationWarningReason = SanitizationWarningReason'
{ SanitizationWarningReason -> Text
fromSanitizationWarningReason ::
Core.Text
}
deriving stock
( Int -> SanitizationWarningReason -> ShowS
[SanitizationWarningReason] -> ShowS
SanitizationWarningReason -> String
(Int -> SanitizationWarningReason -> ShowS)
-> (SanitizationWarningReason -> String)
-> ([SanitizationWarningReason] -> ShowS)
-> Show SanitizationWarningReason
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SanitizationWarningReason] -> ShowS
$cshowList :: [SanitizationWarningReason] -> ShowS
show :: SanitizationWarningReason -> String
$cshow :: SanitizationWarningReason -> String
showsPrec :: Int -> SanitizationWarningReason -> ShowS
$cshowsPrec :: Int -> SanitizationWarningReason -> ShowS
Prelude.Show,
ReadPrec [SanitizationWarningReason]
ReadPrec SanitizationWarningReason
Int -> ReadS SanitizationWarningReason
ReadS [SanitizationWarningReason]
(Int -> ReadS SanitizationWarningReason)
-> ReadS [SanitizationWarningReason]
-> ReadPrec SanitizationWarningReason
-> ReadPrec [SanitizationWarningReason]
-> Read SanitizationWarningReason
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SanitizationWarningReason]
$creadListPrec :: ReadPrec [SanitizationWarningReason]
readPrec :: ReadPrec SanitizationWarningReason
$creadPrec :: ReadPrec SanitizationWarningReason
readList :: ReadS [SanitizationWarningReason]
$creadList :: ReadS [SanitizationWarningReason]
readsPrec :: Int -> ReadS SanitizationWarningReason
$creadsPrec :: Int -> ReadS SanitizationWarningReason
Prelude.Read,
SanitizationWarningReason -> SanitizationWarningReason -> Bool
(SanitizationWarningReason -> SanitizationWarningReason -> Bool)
-> (SanitizationWarningReason -> SanitizationWarningReason -> Bool)
-> Eq SanitizationWarningReason
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
$c/= :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
== :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
$c== :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
Prelude.Eq,
Eq SanitizationWarningReason
Eq SanitizationWarningReason
-> (SanitizationWarningReason
-> SanitizationWarningReason -> Ordering)
-> (SanitizationWarningReason -> SanitizationWarningReason -> Bool)
-> (SanitizationWarningReason -> SanitizationWarningReason -> Bool)
-> (SanitizationWarningReason -> SanitizationWarningReason -> Bool)
-> (SanitizationWarningReason -> SanitizationWarningReason -> Bool)
-> (SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason)
-> (SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason)
-> Ord SanitizationWarningReason
SanitizationWarningReason -> SanitizationWarningReason -> Bool
SanitizationWarningReason -> SanitizationWarningReason -> Ordering
SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason
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 :: SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason
$cmin :: SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason
max :: SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason
$cmax :: SanitizationWarningReason
-> SanitizationWarningReason -> SanitizationWarningReason
>= :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
$c>= :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
> :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
$c> :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
<= :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
$c<= :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
< :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
$c< :: SanitizationWarningReason -> SanitizationWarningReason -> Bool
compare :: SanitizationWarningReason -> SanitizationWarningReason -> Ordering
$ccompare :: SanitizationWarningReason -> SanitizationWarningReason -> Ordering
$cp1Ord :: Eq SanitizationWarningReason
Prelude.Ord,
(forall x.
SanitizationWarningReason -> Rep SanitizationWarningReason x)
-> (forall x.
Rep SanitizationWarningReason x -> SanitizationWarningReason)
-> Generic SanitizationWarningReason
forall x.
Rep SanitizationWarningReason x -> SanitizationWarningReason
forall x.
SanitizationWarningReason -> Rep SanitizationWarningReason x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SanitizationWarningReason x -> SanitizationWarningReason
$cfrom :: forall x.
SanitizationWarningReason -> Rep SanitizationWarningReason x
Prelude.Generic
)
deriving newtype
( Int -> SanitizationWarningReason -> Int
SanitizationWarningReason -> Int
(Int -> SanitizationWarningReason -> Int)
-> (SanitizationWarningReason -> Int)
-> Hashable SanitizationWarningReason
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SanitizationWarningReason -> Int
$chash :: SanitizationWarningReason -> Int
hashWithSalt :: Int -> SanitizationWarningReason -> Int
$chashWithSalt :: Int -> SanitizationWarningReason -> Int
Prelude.Hashable,
SanitizationWarningReason -> ()
(SanitizationWarningReason -> ())
-> NFData SanitizationWarningReason
forall a. (a -> ()) -> NFData a
rnf :: SanitizationWarningReason -> ()
$crnf :: SanitizationWarningReason -> ()
Prelude.NFData,
Text -> Either String SanitizationWarningReason
(Text -> Either String SanitizationWarningReason)
-> FromText SanitizationWarningReason
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SanitizationWarningReason
$cfromText :: Text -> Either String SanitizationWarningReason
Core.FromText,
SanitizationWarningReason -> Text
(SanitizationWarningReason -> Text)
-> ToText SanitizationWarningReason
forall a. (a -> Text) -> ToText a
toText :: SanitizationWarningReason -> Text
$ctoText :: SanitizationWarningReason -> Text
Core.ToText,
SanitizationWarningReason -> ByteString
(SanitizationWarningReason -> ByteString)
-> ToByteString SanitizationWarningReason
forall a. (a -> ByteString) -> ToByteString a
toBS :: SanitizationWarningReason -> ByteString
$ctoBS :: SanitizationWarningReason -> ByteString
Core.ToByteString,
SanitizationWarningReason -> ByteStringBuilder
(SanitizationWarningReason -> ByteStringBuilder)
-> ToLog SanitizationWarningReason
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SanitizationWarningReason -> ByteStringBuilder
$cbuild :: SanitizationWarningReason -> ByteStringBuilder
Core.ToLog,
HeaderName -> SanitizationWarningReason -> [Header]
(HeaderName -> SanitizationWarningReason -> [Header])
-> ToHeader SanitizationWarningReason
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SanitizationWarningReason -> [Header]
$ctoHeader :: HeaderName -> SanitizationWarningReason -> [Header]
Core.ToHeader,
SanitizationWarningReason -> QueryString
(SanitizationWarningReason -> QueryString)
-> ToQuery SanitizationWarningReason
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SanitizationWarningReason -> QueryString
$ctoQuery :: SanitizationWarningReason -> QueryString
Core.ToQuery,
Value -> Parser [SanitizationWarningReason]
Value -> Parser SanitizationWarningReason
(Value -> Parser SanitizationWarningReason)
-> (Value -> Parser [SanitizationWarningReason])
-> FromJSON SanitizationWarningReason
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SanitizationWarningReason]
$cparseJSONList :: Value -> Parser [SanitizationWarningReason]
parseJSON :: Value -> Parser SanitizationWarningReason
$cparseJSON :: Value -> Parser SanitizationWarningReason
Core.FromJSON,
FromJSONKeyFunction [SanitizationWarningReason]
FromJSONKeyFunction SanitizationWarningReason
FromJSONKeyFunction SanitizationWarningReason
-> FromJSONKeyFunction [SanitizationWarningReason]
-> FromJSONKey SanitizationWarningReason
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SanitizationWarningReason]
$cfromJSONKeyList :: FromJSONKeyFunction [SanitizationWarningReason]
fromJSONKey :: FromJSONKeyFunction SanitizationWarningReason
$cfromJSONKey :: FromJSONKeyFunction SanitizationWarningReason
Core.FromJSONKey,
[SanitizationWarningReason] -> Encoding
[SanitizationWarningReason] -> Value
SanitizationWarningReason -> Encoding
SanitizationWarningReason -> Value
(SanitizationWarningReason -> Value)
-> (SanitizationWarningReason -> Encoding)
-> ([SanitizationWarningReason] -> Value)
-> ([SanitizationWarningReason] -> Encoding)
-> ToJSON SanitizationWarningReason
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SanitizationWarningReason] -> Encoding
$ctoEncodingList :: [SanitizationWarningReason] -> Encoding
toJSONList :: [SanitizationWarningReason] -> Value
$ctoJSONList :: [SanitizationWarningReason] -> Value
toEncoding :: SanitizationWarningReason -> Encoding
$ctoEncoding :: SanitizationWarningReason -> Encoding
toJSON :: SanitizationWarningReason -> Value
$ctoJSON :: SanitizationWarningReason -> Value
Core.ToJSON,
ToJSONKeyFunction [SanitizationWarningReason]
ToJSONKeyFunction SanitizationWarningReason
ToJSONKeyFunction SanitizationWarningReason
-> ToJSONKeyFunction [SanitizationWarningReason]
-> ToJSONKey SanitizationWarningReason
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SanitizationWarningReason]
$ctoJSONKeyList :: ToJSONKeyFunction [SanitizationWarningReason]
toJSONKey :: ToJSONKeyFunction SanitizationWarningReason
$ctoJSONKey :: ToJSONKeyFunction SanitizationWarningReason
Core.ToJSONKey,
[Node] -> Either String SanitizationWarningReason
([Node] -> Either String SanitizationWarningReason)
-> FromXML SanitizationWarningReason
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SanitizationWarningReason
$cparseXML :: [Node] -> Either String SanitizationWarningReason
Core.FromXML,
SanitizationWarningReason -> XML
(SanitizationWarningReason -> XML)
-> ToXML SanitizationWarningReason
forall a. (a -> XML) -> ToXML a
toXML :: SanitizationWarningReason -> XML
$ctoXML :: SanitizationWarningReason -> XML
Core.ToXML
)
pattern SanitizationWarningReason_DISALLOWED_ATTRIBUTE_REMOVED :: SanitizationWarningReason
pattern $bSanitizationWarningReason_DISALLOWED_ATTRIBUTE_REMOVED :: SanitizationWarningReason
$mSanitizationWarningReason_DISALLOWED_ATTRIBUTE_REMOVED :: forall r.
SanitizationWarningReason -> (Void# -> r) -> (Void# -> r) -> r
SanitizationWarningReason_DISALLOWED_ATTRIBUTE_REMOVED = SanitizationWarningReason' "DISALLOWED_ATTRIBUTE_REMOVED"
pattern SanitizationWarningReason_DISALLOWED_ELEMENT_REMOVED :: SanitizationWarningReason
pattern $bSanitizationWarningReason_DISALLOWED_ELEMENT_REMOVED :: SanitizationWarningReason
$mSanitizationWarningReason_DISALLOWED_ELEMENT_REMOVED :: forall r.
SanitizationWarningReason -> (Void# -> r) -> (Void# -> r) -> r
SanitizationWarningReason_DISALLOWED_ELEMENT_REMOVED = SanitizationWarningReason' "DISALLOWED_ELEMENT_REMOVED"
pattern SanitizationWarningReason_INVALID_ATTRIBUTE_VALUE_REMOVED :: SanitizationWarningReason
pattern $bSanitizationWarningReason_INVALID_ATTRIBUTE_VALUE_REMOVED :: SanitizationWarningReason
$mSanitizationWarningReason_INVALID_ATTRIBUTE_VALUE_REMOVED :: forall r.
SanitizationWarningReason -> (Void# -> r) -> (Void# -> r) -> r
SanitizationWarningReason_INVALID_ATTRIBUTE_VALUE_REMOVED = SanitizationWarningReason' "INVALID_ATTRIBUTE_VALUE_REMOVED"
{-# COMPLETE
SanitizationWarningReason_DISALLOWED_ATTRIBUTE_REMOVED,
SanitizationWarningReason_DISALLOWED_ELEMENT_REMOVED,
SanitizationWarningReason_INVALID_ATTRIBUTE_VALUE_REMOVED,
SanitizationWarningReason'
#-}