{-# 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.Greengrass.Types.LoggerType
-- 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.Greengrass.Types.LoggerType
  ( LoggerType
      ( ..,
        LoggerType_AWSCloudWatch,
        LoggerType_FileSystem
      ),
  )
where

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

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

pattern LoggerType_AWSCloudWatch :: LoggerType
pattern $bLoggerType_AWSCloudWatch :: LoggerType
$mLoggerType_AWSCloudWatch :: forall {r}. LoggerType -> ((# #) -> r) -> ((# #) -> r) -> r
LoggerType_AWSCloudWatch = LoggerType' "AWSCloudWatch"

pattern LoggerType_FileSystem :: LoggerType
pattern $bLoggerType_FileSystem :: LoggerType
$mLoggerType_FileSystem :: forall {r}. LoggerType -> ((# #) -> r) -> ((# #) -> r) -> r
LoggerType_FileSystem = LoggerType' "FileSystem"

{-# COMPLETE
  LoggerType_AWSCloudWatch,
  LoggerType_FileSystem,
  LoggerType'
  #-}