{-# 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.AppConfig.Types.EnvironmentState
-- 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.AppConfig.Types.EnvironmentState
  ( EnvironmentState
      ( ..,
        EnvironmentState_DEPLOYING,
        EnvironmentState_READY_FOR_DEPLOYMENT,
        EnvironmentState_ROLLED_BACK,
        EnvironmentState_ROLLING_BACK
      ),
  )
where

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

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

pattern EnvironmentState_DEPLOYING :: EnvironmentState
pattern $bEnvironmentState_DEPLOYING :: EnvironmentState
$mEnvironmentState_DEPLOYING :: forall {r}. EnvironmentState -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentState_DEPLOYING = EnvironmentState' "DEPLOYING"

pattern EnvironmentState_READY_FOR_DEPLOYMENT :: EnvironmentState
pattern $bEnvironmentState_READY_FOR_DEPLOYMENT :: EnvironmentState
$mEnvironmentState_READY_FOR_DEPLOYMENT :: forall {r}. EnvironmentState -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentState_READY_FOR_DEPLOYMENT = EnvironmentState' "READY_FOR_DEPLOYMENT"

pattern EnvironmentState_ROLLED_BACK :: EnvironmentState
pattern $bEnvironmentState_ROLLED_BACK :: EnvironmentState
$mEnvironmentState_ROLLED_BACK :: forall {r}. EnvironmentState -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentState_ROLLED_BACK = EnvironmentState' "ROLLED_BACK"

pattern EnvironmentState_ROLLING_BACK :: EnvironmentState
pattern $bEnvironmentState_ROLLING_BACK :: EnvironmentState
$mEnvironmentState_ROLLING_BACK :: forall {r}. EnvironmentState -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentState_ROLLING_BACK = EnvironmentState' "ROLLING_BACK"

{-# COMPLETE
  EnvironmentState_DEPLOYING,
  EnvironmentState_READY_FOR_DEPLOYMENT,
  EnvironmentState_ROLLED_BACK,
  EnvironmentState_ROLLING_BACK,
  EnvironmentState'
  #-}