{-# 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.AccessAnalyzer.Types.FindingSourceType
-- 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.AccessAnalyzer.Types.FindingSourceType
  ( FindingSourceType
      ( ..,
        FindingSourceType_BUCKET_ACL,
        FindingSourceType_POLICY,
        FindingSourceType_S3_ACCESS_POINT
      ),
  )
where

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

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

pattern FindingSourceType_BUCKET_ACL :: FindingSourceType
pattern $bFindingSourceType_BUCKET_ACL :: FindingSourceType
$mFindingSourceType_BUCKET_ACL :: forall r. FindingSourceType -> (Void# -> r) -> (Void# -> r) -> r
FindingSourceType_BUCKET_ACL = FindingSourceType' "BUCKET_ACL"

pattern FindingSourceType_POLICY :: FindingSourceType
pattern $bFindingSourceType_POLICY :: FindingSourceType
$mFindingSourceType_POLICY :: forall r. FindingSourceType -> (Void# -> r) -> (Void# -> r) -> r
FindingSourceType_POLICY = FindingSourceType' "POLICY"

pattern FindingSourceType_S3_ACCESS_POINT :: FindingSourceType
pattern $bFindingSourceType_S3_ACCESS_POINT :: FindingSourceType
$mFindingSourceType_S3_ACCESS_POINT :: forall r. FindingSourceType -> (Void# -> r) -> (Void# -> r) -> r
FindingSourceType_S3_ACCESS_POINT = FindingSourceType' "S3_ACCESS_POINT"

{-# COMPLETE
  FindingSourceType_BUCKET_ACL,
  FindingSourceType_POLICY,
  FindingSourceType_S3_ACCESS_POINT,
  FindingSourceType'
  #-}