{-# 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.Cloud9.Types.EnvironmentLifecycleStatus
-- 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.Cloud9.Types.EnvironmentLifecycleStatus
  ( EnvironmentLifecycleStatus
      ( ..,
        EnvironmentLifecycleStatus_CREATED,
        EnvironmentLifecycleStatus_CREATE_FAILED,
        EnvironmentLifecycleStatus_CREATING,
        EnvironmentLifecycleStatus_DELETE_FAILED,
        EnvironmentLifecycleStatus_DELETING
      ),
  )
where

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

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

pattern EnvironmentLifecycleStatus_CREATED :: EnvironmentLifecycleStatus
pattern $bEnvironmentLifecycleStatus_CREATED :: EnvironmentLifecycleStatus
$mEnvironmentLifecycleStatus_CREATED :: forall r.
EnvironmentLifecycleStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentLifecycleStatus_CREATED = EnvironmentLifecycleStatus' "CREATED"

pattern EnvironmentLifecycleStatus_CREATE_FAILED :: EnvironmentLifecycleStatus
pattern $bEnvironmentLifecycleStatus_CREATE_FAILED :: EnvironmentLifecycleStatus
$mEnvironmentLifecycleStatus_CREATE_FAILED :: forall r.
EnvironmentLifecycleStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentLifecycleStatus_CREATE_FAILED = EnvironmentLifecycleStatus' "CREATE_FAILED"

pattern EnvironmentLifecycleStatus_CREATING :: EnvironmentLifecycleStatus
pattern $bEnvironmentLifecycleStatus_CREATING :: EnvironmentLifecycleStatus
$mEnvironmentLifecycleStatus_CREATING :: forall r.
EnvironmentLifecycleStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentLifecycleStatus_CREATING = EnvironmentLifecycleStatus' "CREATING"

pattern EnvironmentLifecycleStatus_DELETE_FAILED :: EnvironmentLifecycleStatus
pattern $bEnvironmentLifecycleStatus_DELETE_FAILED :: EnvironmentLifecycleStatus
$mEnvironmentLifecycleStatus_DELETE_FAILED :: forall r.
EnvironmentLifecycleStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentLifecycleStatus_DELETE_FAILED = EnvironmentLifecycleStatus' "DELETE_FAILED"

pattern EnvironmentLifecycleStatus_DELETING :: EnvironmentLifecycleStatus
pattern $bEnvironmentLifecycleStatus_DELETING :: EnvironmentLifecycleStatus
$mEnvironmentLifecycleStatus_DELETING :: forall r.
EnvironmentLifecycleStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentLifecycleStatus_DELETING = EnvironmentLifecycleStatus' "DELETING"

{-# COMPLETE
  EnvironmentLifecycleStatus_CREATED,
  EnvironmentLifecycleStatus_CREATE_FAILED,
  EnvironmentLifecycleStatus_CREATING,
  EnvironmentLifecycleStatus_DELETE_FAILED,
  EnvironmentLifecycleStatus_DELETING,
  EnvironmentLifecycleStatus'
  #-}