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