{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MwAA.Types.EnvironmentStatus
( EnvironmentStatus
( ..,
EnvironmentStatus_AVAILABLE,
EnvironmentStatus_CREATE_FAILED,
EnvironmentStatus_CREATING,
EnvironmentStatus_DELETED,
EnvironmentStatus_DELETING,
EnvironmentStatus_UNAVAILABLE,
EnvironmentStatus_UPDATE_FAILED,
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_AVAILABLE :: EnvironmentStatus
pattern $bEnvironmentStatus_AVAILABLE :: EnvironmentStatus
$mEnvironmentStatus_AVAILABLE :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_AVAILABLE = EnvironmentStatus' "AVAILABLE"
pattern EnvironmentStatus_CREATE_FAILED :: EnvironmentStatus
pattern $bEnvironmentStatus_CREATE_FAILED :: EnvironmentStatus
$mEnvironmentStatus_CREATE_FAILED :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_CREATE_FAILED = EnvironmentStatus' "CREATE_FAILED"
pattern EnvironmentStatus_CREATING :: EnvironmentStatus
pattern $bEnvironmentStatus_CREATING :: EnvironmentStatus
$mEnvironmentStatus_CREATING :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_CREATING = EnvironmentStatus' "CREATING"
pattern EnvironmentStatus_DELETED :: EnvironmentStatus
pattern $bEnvironmentStatus_DELETED :: EnvironmentStatus
$mEnvironmentStatus_DELETED :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_DELETED = EnvironmentStatus' "DELETED"
pattern EnvironmentStatus_DELETING :: EnvironmentStatus
pattern $bEnvironmentStatus_DELETING :: EnvironmentStatus
$mEnvironmentStatus_DELETING :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_DELETING = EnvironmentStatus' "DELETING"
pattern EnvironmentStatus_UNAVAILABLE :: EnvironmentStatus
pattern $bEnvironmentStatus_UNAVAILABLE :: EnvironmentStatus
$mEnvironmentStatus_UNAVAILABLE :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_UNAVAILABLE = EnvironmentStatus' "UNAVAILABLE"
pattern EnvironmentStatus_UPDATE_FAILED :: EnvironmentStatus
pattern $bEnvironmentStatus_UPDATE_FAILED :: EnvironmentStatus
$mEnvironmentStatus_UPDATE_FAILED :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_UPDATE_FAILED = EnvironmentStatus' "UPDATE_FAILED"
pattern EnvironmentStatus_UPDATING :: EnvironmentStatus
pattern $bEnvironmentStatus_UPDATING :: EnvironmentStatus
$mEnvironmentStatus_UPDATING :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_UPDATING = EnvironmentStatus' "UPDATING"
{-# COMPLETE
EnvironmentStatus_AVAILABLE,
EnvironmentStatus_CREATE_FAILED,
EnvironmentStatus_CREATING,
EnvironmentStatus_DELETED,
EnvironmentStatus_DELETING,
EnvironmentStatus_UNAVAILABLE,
EnvironmentStatus_UPDATE_FAILED,
EnvironmentStatus_UPDATING,
EnvironmentStatus'
#-}