{-# 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.SageMaker.Types.StudioLifecycleConfigAppType
-- 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.SageMaker.Types.StudioLifecycleConfigAppType
  ( StudioLifecycleConfigAppType
      ( ..,
        StudioLifecycleConfigAppType_JupyterServer,
        StudioLifecycleConfigAppType_KernelGateway
      ),
  )
where

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

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

pattern StudioLifecycleConfigAppType_JupyterServer :: StudioLifecycleConfigAppType
pattern $bStudioLifecycleConfigAppType_JupyterServer :: StudioLifecycleConfigAppType
$mStudioLifecycleConfigAppType_JupyterServer :: forall r.
StudioLifecycleConfigAppType -> (Void# -> r) -> (Void# -> r) -> r
StudioLifecycleConfigAppType_JupyterServer = StudioLifecycleConfigAppType' "JupyterServer"

pattern StudioLifecycleConfigAppType_KernelGateway :: StudioLifecycleConfigAppType
pattern $bStudioLifecycleConfigAppType_KernelGateway :: StudioLifecycleConfigAppType
$mStudioLifecycleConfigAppType_KernelGateway :: forall r.
StudioLifecycleConfigAppType -> (Void# -> r) -> (Void# -> r) -> r
StudioLifecycleConfigAppType_KernelGateway = StudioLifecycleConfigAppType' "KernelGateway"

{-# COMPLETE
  StudioLifecycleConfigAppType_JupyterServer,
  StudioLifecycleConfigAppType_KernelGateway,
  StudioLifecycleConfigAppType'
  #-}