{-# 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.SecurityLake.Types.AwsLogSourceType
-- 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.SecurityLake.Types.AwsLogSourceType
  ( AwsLogSourceType
      ( ..,
        AwsLogSourceType_CLOUD_TRAIL,
        AwsLogSourceType_ROUTE53,
        AwsLogSourceType_SH_FINDINGS,
        AwsLogSourceType_VPC_FLOW
      ),
  )
where

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

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

pattern AwsLogSourceType_CLOUD_TRAIL :: AwsLogSourceType
pattern $bAwsLogSourceType_CLOUD_TRAIL :: AwsLogSourceType
$mAwsLogSourceType_CLOUD_TRAIL :: forall {r}. AwsLogSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AwsLogSourceType_CLOUD_TRAIL = AwsLogSourceType' "CLOUD_TRAIL"

pattern AwsLogSourceType_ROUTE53 :: AwsLogSourceType
pattern $bAwsLogSourceType_ROUTE53 :: AwsLogSourceType
$mAwsLogSourceType_ROUTE53 :: forall {r}. AwsLogSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AwsLogSourceType_ROUTE53 = AwsLogSourceType' "ROUTE53"

pattern AwsLogSourceType_SH_FINDINGS :: AwsLogSourceType
pattern $bAwsLogSourceType_SH_FINDINGS :: AwsLogSourceType
$mAwsLogSourceType_SH_FINDINGS :: forall {r}. AwsLogSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AwsLogSourceType_SH_FINDINGS = AwsLogSourceType' "SH_FINDINGS"

pattern AwsLogSourceType_VPC_FLOW :: AwsLogSourceType
pattern $bAwsLogSourceType_VPC_FLOW :: AwsLogSourceType
$mAwsLogSourceType_VPC_FLOW :: forall {r}. AwsLogSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
AwsLogSourceType_VPC_FLOW = AwsLogSourceType' "VPC_FLOW"

{-# COMPLETE
  AwsLogSourceType_CLOUD_TRAIL,
  AwsLogSourceType_ROUTE53,
  AwsLogSourceType_SH_FINDINGS,
  AwsLogSourceType_VPC_FLOW,
  AwsLogSourceType'
  #-}