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

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

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

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

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

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