{-# 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.Amplify.Types.Platform
-- 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.Amplify.Types.Platform
  ( Platform
      ( ..,
        Platform_WEB,
        Platform_WEB_COMPUTE,
        Platform_WEB_DYNAMIC
      ),
  )
where

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

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

pattern Platform_WEB :: Platform
pattern $bPlatform_WEB :: Platform
$mPlatform_WEB :: forall {r}. Platform -> ((# #) -> r) -> ((# #) -> r) -> r
Platform_WEB = Platform' "WEB"

pattern Platform_WEB_COMPUTE :: Platform
pattern $bPlatform_WEB_COMPUTE :: Platform
$mPlatform_WEB_COMPUTE :: forall {r}. Platform -> ((# #) -> r) -> ((# #) -> r) -> r
Platform_WEB_COMPUTE = Platform' "WEB_COMPUTE"

pattern Platform_WEB_DYNAMIC :: Platform
pattern $bPlatform_WEB_DYNAMIC :: Platform
$mPlatform_WEB_DYNAMIC :: forall {r}. Platform -> ((# #) -> r) -> ((# #) -> r) -> r
Platform_WEB_DYNAMIC = Platform' "WEB_DYNAMIC"

{-# COMPLETE
  Platform_WEB,
  Platform_WEB_COMPUTE,
  Platform_WEB_DYNAMIC,
  Platform'
  #-}