{-# 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.OpsWorks.Types.AppType
-- 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.OpsWorks.Types.AppType
  ( AppType
      ( ..,
        AppType_Aws_flow_ruby,
        AppType_Java,
        AppType_Nodejs,
        AppType_Other,
        AppType_Php,
        AppType_Rails,
        AppType_Static
      ),
  )
where

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

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

pattern AppType_Aws_flow_ruby :: AppType
pattern $bAppType_Aws_flow_ruby :: AppType
$mAppType_Aws_flow_ruby :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Aws_flow_ruby = AppType' "aws-flow-ruby"

pattern AppType_Java :: AppType
pattern $bAppType_Java :: AppType
$mAppType_Java :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Java = AppType' "java"

pattern AppType_Nodejs :: AppType
pattern $bAppType_Nodejs :: AppType
$mAppType_Nodejs :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Nodejs = AppType' "nodejs"

pattern AppType_Other :: AppType
pattern $bAppType_Other :: AppType
$mAppType_Other :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Other = AppType' "other"

pattern AppType_Php :: AppType
pattern $bAppType_Php :: AppType
$mAppType_Php :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Php = AppType' "php"

pattern AppType_Rails :: AppType
pattern $bAppType_Rails :: AppType
$mAppType_Rails :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Rails = AppType' "rails"

pattern AppType_Static :: AppType
pattern $bAppType_Static :: AppType
$mAppType_Static :: forall r. AppType -> (Void# -> r) -> (Void# -> r) -> r
AppType_Static = AppType' "static"

{-# COMPLETE
  AppType_Aws_flow_ruby,
  AppType_Java,
  AppType_Nodejs,
  AppType_Other,
  AppType_Php,
  AppType_Rails,
  AppType_Static,
  AppType'
  #-}