{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AccessAnalyzer.Types.FindingSourceType
  ( FindingSourceType
      ( ..,
        FindingSourceType_BUCKET_ACL,
        FindingSourceType_POLICY,
        FindingSourceType_S3_ACCESS_POINT,
        FindingSourceType_S3_ACCESS_POINT_ACCOUNT
      ),
  )
where

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

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

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

pattern FindingSourceType_POLICY :: FindingSourceType
pattern $bFindingSourceType_POLICY :: FindingSourceType
$mFindingSourceType_POLICY :: forall {r}. FindingSourceType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSourceType_S3_ACCESS_POINT = FindingSourceType' "S3_ACCESS_POINT"

pattern FindingSourceType_S3_ACCESS_POINT_ACCOUNT :: FindingSourceType
pattern $bFindingSourceType_S3_ACCESS_POINT_ACCOUNT :: FindingSourceType
$mFindingSourceType_S3_ACCESS_POINT_ACCOUNT :: forall {r}. FindingSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
FindingSourceType_S3_ACCESS_POINT_ACCOUNT = FindingSourceType' "S3_ACCESS_POINT_ACCOUNT"

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