{-# 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.Glue.Types.SourceControlAuthStrategy
-- 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.Glue.Types.SourceControlAuthStrategy
  ( SourceControlAuthStrategy
      ( ..,
        SourceControlAuthStrategy_AWS_SECRETS_MANAGER,
        SourceControlAuthStrategy_PERSONAL_ACCESS_TOKEN
      ),
  )
where

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

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

pattern SourceControlAuthStrategy_AWS_SECRETS_MANAGER :: SourceControlAuthStrategy
pattern $bSourceControlAuthStrategy_AWS_SECRETS_MANAGER :: SourceControlAuthStrategy
$mSourceControlAuthStrategy_AWS_SECRETS_MANAGER :: forall {r}.
SourceControlAuthStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
SourceControlAuthStrategy_AWS_SECRETS_MANAGER = SourceControlAuthStrategy' "AWS_SECRETS_MANAGER"

pattern SourceControlAuthStrategy_PERSONAL_ACCESS_TOKEN :: SourceControlAuthStrategy
pattern $bSourceControlAuthStrategy_PERSONAL_ACCESS_TOKEN :: SourceControlAuthStrategy
$mSourceControlAuthStrategy_PERSONAL_ACCESS_TOKEN :: forall {r}.
SourceControlAuthStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
SourceControlAuthStrategy_PERSONAL_ACCESS_TOKEN = SourceControlAuthStrategy' "PERSONAL_ACCESS_TOKEN"

{-# COMPLETE
  SourceControlAuthStrategy_AWS_SECRETS_MANAGER,
  SourceControlAuthStrategy_PERSONAL_ACCESS_TOKEN,
  SourceControlAuthStrategy'
  #-}