{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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

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

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

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

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

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

pattern LayerType_Web :: LayerType
pattern $bLayerType_Web :: LayerType
$mLayerType_Web :: forall r. LayerType -> (Void# -> r) -> (Void# -> 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'
  #-}