{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

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

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

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

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