{-# 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.AppRunner.Types.ConfigurationSource
-- 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.AppRunner.Types.ConfigurationSource
  ( ConfigurationSource
      ( ..,
        ConfigurationSource_API,
        ConfigurationSource_REPOSITORY
      ),
  )
where

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

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

pattern ConfigurationSource_API :: ConfigurationSource
pattern $bConfigurationSource_API :: ConfigurationSource
$mConfigurationSource_API :: forall {r}.
ConfigurationSource -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigurationSource_API = ConfigurationSource' "API"

pattern ConfigurationSource_REPOSITORY :: ConfigurationSource
pattern $bConfigurationSource_REPOSITORY :: ConfigurationSource
$mConfigurationSource_REPOSITORY :: forall {r}.
ConfigurationSource -> ((# #) -> r) -> ((# #) -> r) -> r
ConfigurationSource_REPOSITORY = ConfigurationSource' "REPOSITORY"

{-# COMPLETE
  ConfigurationSource_API,
  ConfigurationSource_REPOSITORY,
  ConfigurationSource'
  #-}