{-# 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.M2.Types.EnvironmentLifecycle
-- 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.M2.Types.EnvironmentLifecycle
  ( EnvironmentLifecycle
      ( ..,
        EnvironmentLifecycle_Available,
        EnvironmentLifecycle_Creating,
        EnvironmentLifecycle_Deleting,
        EnvironmentLifecycle_Failed,
        EnvironmentLifecycle_Updating
      ),
  )
where

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

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

pattern EnvironmentLifecycle_Available :: EnvironmentLifecycle
pattern $bEnvironmentLifecycle_Available :: EnvironmentLifecycle
$mEnvironmentLifecycle_Available :: forall {r}.
EnvironmentLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentLifecycle_Available = EnvironmentLifecycle' "Available"

pattern EnvironmentLifecycle_Creating :: EnvironmentLifecycle
pattern $bEnvironmentLifecycle_Creating :: EnvironmentLifecycle
$mEnvironmentLifecycle_Creating :: forall {r}.
EnvironmentLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentLifecycle_Creating = EnvironmentLifecycle' "Creating"

pattern EnvironmentLifecycle_Deleting :: EnvironmentLifecycle
pattern $bEnvironmentLifecycle_Deleting :: EnvironmentLifecycle
$mEnvironmentLifecycle_Deleting :: forall {r}.
EnvironmentLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentLifecycle_Deleting = EnvironmentLifecycle' "Deleting"

pattern EnvironmentLifecycle_Failed :: EnvironmentLifecycle
pattern $bEnvironmentLifecycle_Failed :: EnvironmentLifecycle
$mEnvironmentLifecycle_Failed :: forall {r}.
EnvironmentLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentLifecycle_Failed = EnvironmentLifecycle' "Failed"

pattern EnvironmentLifecycle_Updating :: EnvironmentLifecycle
pattern $bEnvironmentLifecycle_Updating :: EnvironmentLifecycle
$mEnvironmentLifecycle_Updating :: forall {r}.
EnvironmentLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentLifecycle_Updating = EnvironmentLifecycle' "Updating"

{-# COMPLETE
  EnvironmentLifecycle_Available,
  EnvironmentLifecycle_Creating,
  EnvironmentLifecycle_Deleting,
  EnvironmentLifecycle_Failed,
  EnvironmentLifecycle_Updating,
  EnvironmentLifecycle'
  #-}