{-# 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.LoggerComponent
-- 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.LoggerComponent
  ( LoggerComponent
      ( ..,
        LoggerComponent_GreengrassSystem,
        LoggerComponent_Lambda
      ),
  )
where

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

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

pattern LoggerComponent_GreengrassSystem :: LoggerComponent
pattern $bLoggerComponent_GreengrassSystem :: LoggerComponent
$mLoggerComponent_GreengrassSystem :: forall r. LoggerComponent -> (Void# -> r) -> (Void# -> r) -> r
LoggerComponent_GreengrassSystem = LoggerComponent' "GreengrassSystem"

pattern LoggerComponent_Lambda :: LoggerComponent
pattern $bLoggerComponent_Lambda :: LoggerComponent
$mLoggerComponent_Lambda :: forall r. LoggerComponent -> (Void# -> r) -> (Void# -> r) -> r
LoggerComponent_Lambda = LoggerComponent' "Lambda"

{-# COMPLETE
  LoggerComponent_GreengrassSystem,
  LoggerComponent_Lambda,
  LoggerComponent'
  #-}