{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoT.Types.LogTargetType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoT.Types.LogTargetType
  ( LogTargetType
      ( ..,
        LogTargetType_CLIENT_ID,
        LogTargetType_DEFAULT,
        LogTargetType_PRINCIPAL_ID,
        LogTargetType_SOURCE_IP,
        LogTargetType_THING_GROUP
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype LogTargetType = LogTargetType'
  { LogTargetType -> Text
fromLogTargetType ::
      Data.Text
  }
  deriving stock
    ( Int -> LogTargetType -> ShowS
[LogTargetType] -> ShowS
LogTargetType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq LogTargetType
Int -> LogTargetType -> Int
LogTargetType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: LogTargetType -> ()
$crnf :: LogTargetType -> ()
Prelude.NFData,
      Text -> Either String LogTargetType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LogTargetType
$cfromText :: Text -> Either String LogTargetType
Data.FromText,
      LogTargetType -> Text
forall a. (a -> Text) -> ToText a
toText :: LogTargetType -> Text
$ctoText :: LogTargetType -> Text
Data.ToText,
      LogTargetType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: LogTargetType -> ByteString
$ctoBS :: LogTargetType -> ByteString
Data.ToByteString,
      LogTargetType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LogTargetType -> ByteStringBuilder
$cbuild :: LogTargetType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> LogTargetType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LogTargetType -> [Header]
$ctoHeader :: HeaderName -> LogTargetType -> [Header]
Data.ToHeader,
      LogTargetType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LogTargetType -> QueryString
$ctoQuery :: LogTargetType -> QueryString
Data.ToQuery,
      Value -> Parser [LogTargetType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [LogTargetType]
FromJSONKeyFunction LogTargetType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LogTargetType]
$cfromJSONKeyList :: FromJSONKeyFunction [LogTargetType]
fromJSONKey :: FromJSONKeyFunction LogTargetType
$cfromJSONKey :: FromJSONKeyFunction LogTargetType
Data.FromJSONKey,
      [LogTargetType] -> Encoding
[LogTargetType] -> Value
LogTargetType -> Encoding
LogTargetType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [LogTargetType]
ToJSONKeyFunction LogTargetType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LogTargetType]
$ctoJSONKeyList :: ToJSONKeyFunction [LogTargetType]
toJSONKey :: ToJSONKeyFunction LogTargetType
$ctoJSONKey :: ToJSONKeyFunction LogTargetType
Data.ToJSONKey,
      [Node] -> Either String LogTargetType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LogTargetType
$cparseXML :: [Node] -> Either String LogTargetType
Data.FromXML,
      LogTargetType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: LogTargetType -> XML
$ctoXML :: LogTargetType -> XML
Data.ToXML
    )

pattern LogTargetType_CLIENT_ID :: LogTargetType
pattern $bLogTargetType_CLIENT_ID :: LogTargetType
$mLogTargetType_CLIENT_ID :: forall {r}. LogTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
LogTargetType_CLIENT_ID = LogTargetType' "CLIENT_ID"

pattern LogTargetType_DEFAULT :: LogTargetType
pattern $bLogTargetType_DEFAULT :: LogTargetType
$mLogTargetType_DEFAULT :: forall {r}. LogTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
LogTargetType_DEFAULT = LogTargetType' "DEFAULT"

pattern LogTargetType_PRINCIPAL_ID :: LogTargetType
pattern $bLogTargetType_PRINCIPAL_ID :: LogTargetType
$mLogTargetType_PRINCIPAL_ID :: forall {r}. LogTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
LogTargetType_PRINCIPAL_ID = LogTargetType' "PRINCIPAL_ID"

pattern LogTargetType_SOURCE_IP :: LogTargetType
pattern $bLogTargetType_SOURCE_IP :: LogTargetType
$mLogTargetType_SOURCE_IP :: forall {r}. LogTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
LogTargetType_SOURCE_IP = LogTargetType' "SOURCE_IP"

pattern LogTargetType_THING_GROUP :: LogTargetType
pattern $bLogTargetType_THING_GROUP :: LogTargetType
$mLogTargetType_THING_GROUP :: forall {r}. LogTargetType -> ((# #) -> r) -> ((# #) -> r) -> r
LogTargetType_THING_GROUP = LogTargetType' "THING_GROUP"

{-# COMPLETE
  LogTargetType_CLIENT_ID,
  LogTargetType_DEFAULT,
  LogTargetType_PRINCIPAL_ID,
  LogTargetType_SOURCE_IP,
  LogTargetType_THING_GROUP,
  LogTargetType'
  #-}