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