{-# 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.LayerType
-- 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.OpsWorks.Types.LayerType
  ( LayerType
      ( ..,
        LayerType_Aws_flow_ruby,
        LayerType_Custom,
        LayerType_Db_master,
        LayerType_Ecs_cluster,
        LayerType_Java_app,
        LayerType_Lb,
        LayerType_Memcached,
        LayerType_Monitoring_master,
        LayerType_Nodejs_app,
        LayerType_Php_app,
        LayerType_Rails_app,
        LayerType_Web
      ),
  )
where

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

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

pattern LayerType_Aws_flow_ruby :: LayerType
pattern $bLayerType_Aws_flow_ruby :: LayerType
$mLayerType_Aws_flow_ruby :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Aws_flow_ruby = LayerType' "aws-flow-ruby"

pattern LayerType_Custom :: LayerType
pattern $bLayerType_Custom :: LayerType
$mLayerType_Custom :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Custom = LayerType' "custom"

pattern LayerType_Db_master :: LayerType
pattern $bLayerType_Db_master :: LayerType
$mLayerType_Db_master :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Db_master = LayerType' "db-master"

pattern LayerType_Ecs_cluster :: LayerType
pattern $bLayerType_Ecs_cluster :: LayerType
$mLayerType_Ecs_cluster :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Ecs_cluster = LayerType' "ecs-cluster"

pattern LayerType_Java_app :: LayerType
pattern $bLayerType_Java_app :: LayerType
$mLayerType_Java_app :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Java_app = LayerType' "java-app"

pattern LayerType_Lb :: LayerType
pattern $bLayerType_Lb :: LayerType
$mLayerType_Lb :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Lb = LayerType' "lb"

pattern LayerType_Memcached :: LayerType
pattern $bLayerType_Memcached :: LayerType
$mLayerType_Memcached :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Memcached = LayerType' "memcached"

pattern LayerType_Monitoring_master :: LayerType
pattern $bLayerType_Monitoring_master :: LayerType
$mLayerType_Monitoring_master :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Monitoring_master = LayerType' "monitoring-master"

pattern LayerType_Nodejs_app :: LayerType
pattern $bLayerType_Nodejs_app :: LayerType
$mLayerType_Nodejs_app :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Nodejs_app = LayerType' "nodejs-app"

pattern LayerType_Php_app :: LayerType
pattern $bLayerType_Php_app :: LayerType
$mLayerType_Php_app :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Php_app = LayerType' "php-app"

pattern LayerType_Rails_app :: LayerType
pattern $bLayerType_Rails_app :: LayerType
$mLayerType_Rails_app :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Rails_app = LayerType' "rails-app"

pattern LayerType_Web :: LayerType
pattern $bLayerType_Web :: LayerType
$mLayerType_Web :: forall {r}. LayerType -> ((# #) -> r) -> ((# #) -> r) -> r
LayerType_Web = LayerType' "web"

{-# COMPLETE
  LayerType_Aws_flow_ruby,
  LayerType_Custom,
  LayerType_Db_master,
  LayerType_Ecs_cluster,
  LayerType_Java_app,
  LayerType_Lb,
  LayerType_Memcached,
  LayerType_Monitoring_master,
  LayerType_Nodejs_app,
  LayerType_Php_app,
  LayerType_Rails_app,
  LayerType_Web,
  LayerType'
  #-}