{-# 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.ElasticBeanstalk.Types.EnvironmentStatus
-- 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.ElasticBeanstalk.Types.EnvironmentStatus
  ( EnvironmentStatus
      ( ..,
        EnvironmentStatus_Aborting,
        EnvironmentStatus_Launching,
        EnvironmentStatus_LinkingFrom,
        EnvironmentStatus_LinkingTo,
        EnvironmentStatus_Ready,
        EnvironmentStatus_Terminated,
        EnvironmentStatus_Terminating,
        EnvironmentStatus_Updating
      ),
  )
where

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

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

pattern EnvironmentStatus_Aborting :: EnvironmentStatus
pattern $bEnvironmentStatus_Aborting :: EnvironmentStatus
$mEnvironmentStatus_Aborting :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Aborting = EnvironmentStatus' "Aborting"

pattern EnvironmentStatus_Launching :: EnvironmentStatus
pattern $bEnvironmentStatus_Launching :: EnvironmentStatus
$mEnvironmentStatus_Launching :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Launching = EnvironmentStatus' "Launching"

pattern EnvironmentStatus_LinkingFrom :: EnvironmentStatus
pattern $bEnvironmentStatus_LinkingFrom :: EnvironmentStatus
$mEnvironmentStatus_LinkingFrom :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_LinkingFrom = EnvironmentStatus' "LinkingFrom"

pattern EnvironmentStatus_LinkingTo :: EnvironmentStatus
pattern $bEnvironmentStatus_LinkingTo :: EnvironmentStatus
$mEnvironmentStatus_LinkingTo :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_LinkingTo = EnvironmentStatus' "LinkingTo"

pattern EnvironmentStatus_Ready :: EnvironmentStatus
pattern $bEnvironmentStatus_Ready :: EnvironmentStatus
$mEnvironmentStatus_Ready :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Ready = EnvironmentStatus' "Ready"

pattern EnvironmentStatus_Terminated :: EnvironmentStatus
pattern $bEnvironmentStatus_Terminated :: EnvironmentStatus
$mEnvironmentStatus_Terminated :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Terminated = EnvironmentStatus' "Terminated"

pattern EnvironmentStatus_Terminating :: EnvironmentStatus
pattern $bEnvironmentStatus_Terminating :: EnvironmentStatus
$mEnvironmentStatus_Terminating :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Terminating = EnvironmentStatus' "Terminating"

pattern EnvironmentStatus_Updating :: EnvironmentStatus
pattern $bEnvironmentStatus_Updating :: EnvironmentStatus
$mEnvironmentStatus_Updating :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Updating = EnvironmentStatus' "Updating"

{-# COMPLETE
  EnvironmentStatus_Aborting,
  EnvironmentStatus_Launching,
  EnvironmentStatus_LinkingFrom,
  EnvironmentStatus_LinkingTo,
  EnvironmentStatus_Ready,
  EnvironmentStatus_Terminated,
  EnvironmentStatus_Terminating,
  EnvironmentStatus_Updating,
  EnvironmentStatus'
  #-}