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

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

pattern EnvironmentState_DEPLOYING :: EnvironmentState
pattern $bEnvironmentState_DEPLOYING :: EnvironmentState
$mEnvironmentState_DEPLOYING :: forall r. EnvironmentState -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentState_ROLLED_BACK = EnvironmentState' "ROLLED_BACK"

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

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