{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.OpsWorksCM.Types.MaintenanceStatus
( MaintenanceStatus
( ..,
MaintenanceStatus_FAILED,
MaintenanceStatus_SUCCESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MaintenanceStatus = MaintenanceStatus'
{ MaintenanceStatus -> Text
fromMaintenanceStatus ::
Core.Text
}
deriving stock
( Int -> MaintenanceStatus -> ShowS
[MaintenanceStatus] -> ShowS
MaintenanceStatus -> String
(Int -> MaintenanceStatus -> ShowS)
-> (MaintenanceStatus -> String)
-> ([MaintenanceStatus] -> ShowS)
-> Show MaintenanceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MaintenanceStatus] -> ShowS
$cshowList :: [MaintenanceStatus] -> ShowS
show :: MaintenanceStatus -> String
$cshow :: MaintenanceStatus -> String
showsPrec :: Int -> MaintenanceStatus -> ShowS
$cshowsPrec :: Int -> MaintenanceStatus -> ShowS
Prelude.Show,
ReadPrec [MaintenanceStatus]
ReadPrec MaintenanceStatus
Int -> ReadS MaintenanceStatus
ReadS [MaintenanceStatus]
(Int -> ReadS MaintenanceStatus)
-> ReadS [MaintenanceStatus]
-> ReadPrec MaintenanceStatus
-> ReadPrec [MaintenanceStatus]
-> Read MaintenanceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MaintenanceStatus]
$creadListPrec :: ReadPrec [MaintenanceStatus]
readPrec :: ReadPrec MaintenanceStatus
$creadPrec :: ReadPrec MaintenanceStatus
readList :: ReadS [MaintenanceStatus]
$creadList :: ReadS [MaintenanceStatus]
readsPrec :: Int -> ReadS MaintenanceStatus
$creadsPrec :: Int -> ReadS MaintenanceStatus
Prelude.Read,
MaintenanceStatus -> MaintenanceStatus -> Bool
(MaintenanceStatus -> MaintenanceStatus -> Bool)
-> (MaintenanceStatus -> MaintenanceStatus -> Bool)
-> Eq MaintenanceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MaintenanceStatus -> MaintenanceStatus -> Bool
$c/= :: MaintenanceStatus -> MaintenanceStatus -> Bool
== :: MaintenanceStatus -> MaintenanceStatus -> Bool
$c== :: MaintenanceStatus -> MaintenanceStatus -> Bool
Prelude.Eq,
Eq MaintenanceStatus
Eq MaintenanceStatus
-> (MaintenanceStatus -> MaintenanceStatus -> Ordering)
-> (MaintenanceStatus -> MaintenanceStatus -> Bool)
-> (MaintenanceStatus -> MaintenanceStatus -> Bool)
-> (MaintenanceStatus -> MaintenanceStatus -> Bool)
-> (MaintenanceStatus -> MaintenanceStatus -> Bool)
-> (MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus)
-> (MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus)
-> Ord MaintenanceStatus
MaintenanceStatus -> MaintenanceStatus -> Bool
MaintenanceStatus -> MaintenanceStatus -> Ordering
MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus
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 :: MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus
$cmin :: MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus
max :: MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus
$cmax :: MaintenanceStatus -> MaintenanceStatus -> MaintenanceStatus
>= :: MaintenanceStatus -> MaintenanceStatus -> Bool
$c>= :: MaintenanceStatus -> MaintenanceStatus -> Bool
> :: MaintenanceStatus -> MaintenanceStatus -> Bool
$c> :: MaintenanceStatus -> MaintenanceStatus -> Bool
<= :: MaintenanceStatus -> MaintenanceStatus -> Bool
$c<= :: MaintenanceStatus -> MaintenanceStatus -> Bool
< :: MaintenanceStatus -> MaintenanceStatus -> Bool
$c< :: MaintenanceStatus -> MaintenanceStatus -> Bool
compare :: MaintenanceStatus -> MaintenanceStatus -> Ordering
$ccompare :: MaintenanceStatus -> MaintenanceStatus -> Ordering
$cp1Ord :: Eq MaintenanceStatus
Prelude.Ord,
(forall x. MaintenanceStatus -> Rep MaintenanceStatus x)
-> (forall x. Rep MaintenanceStatus x -> MaintenanceStatus)
-> Generic MaintenanceStatus
forall x. Rep MaintenanceStatus x -> MaintenanceStatus
forall x. MaintenanceStatus -> Rep MaintenanceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MaintenanceStatus x -> MaintenanceStatus
$cfrom :: forall x. MaintenanceStatus -> Rep MaintenanceStatus x
Prelude.Generic
)
deriving newtype
( Int -> MaintenanceStatus -> Int
MaintenanceStatus -> Int
(Int -> MaintenanceStatus -> Int)
-> (MaintenanceStatus -> Int) -> Hashable MaintenanceStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MaintenanceStatus -> Int
$chash :: MaintenanceStatus -> Int
hashWithSalt :: Int -> MaintenanceStatus -> Int
$chashWithSalt :: Int -> MaintenanceStatus -> Int
Prelude.Hashable,
MaintenanceStatus -> ()
(MaintenanceStatus -> ()) -> NFData MaintenanceStatus
forall a. (a -> ()) -> NFData a
rnf :: MaintenanceStatus -> ()
$crnf :: MaintenanceStatus -> ()
Prelude.NFData,
Text -> Either String MaintenanceStatus
(Text -> Either String MaintenanceStatus)
-> FromText MaintenanceStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MaintenanceStatus
$cfromText :: Text -> Either String MaintenanceStatus
Core.FromText,
MaintenanceStatus -> Text
(MaintenanceStatus -> Text) -> ToText MaintenanceStatus
forall a. (a -> Text) -> ToText a
toText :: MaintenanceStatus -> Text
$ctoText :: MaintenanceStatus -> Text
Core.ToText,
MaintenanceStatus -> ByteString
(MaintenanceStatus -> ByteString) -> ToByteString MaintenanceStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: MaintenanceStatus -> ByteString
$ctoBS :: MaintenanceStatus -> ByteString
Core.ToByteString,
MaintenanceStatus -> ByteStringBuilder
(MaintenanceStatus -> ByteStringBuilder) -> ToLog MaintenanceStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MaintenanceStatus -> ByteStringBuilder
$cbuild :: MaintenanceStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> MaintenanceStatus -> [Header]
(HeaderName -> MaintenanceStatus -> [Header])
-> ToHeader MaintenanceStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MaintenanceStatus -> [Header]
$ctoHeader :: HeaderName -> MaintenanceStatus -> [Header]
Core.ToHeader,
MaintenanceStatus -> QueryString
(MaintenanceStatus -> QueryString) -> ToQuery MaintenanceStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MaintenanceStatus -> QueryString
$ctoQuery :: MaintenanceStatus -> QueryString
Core.ToQuery,
Value -> Parser [MaintenanceStatus]
Value -> Parser MaintenanceStatus
(Value -> Parser MaintenanceStatus)
-> (Value -> Parser [MaintenanceStatus])
-> FromJSON MaintenanceStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MaintenanceStatus]
$cparseJSONList :: Value -> Parser [MaintenanceStatus]
parseJSON :: Value -> Parser MaintenanceStatus
$cparseJSON :: Value -> Parser MaintenanceStatus
Core.FromJSON,
FromJSONKeyFunction [MaintenanceStatus]
FromJSONKeyFunction MaintenanceStatus
FromJSONKeyFunction MaintenanceStatus
-> FromJSONKeyFunction [MaintenanceStatus]
-> FromJSONKey MaintenanceStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MaintenanceStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [MaintenanceStatus]
fromJSONKey :: FromJSONKeyFunction MaintenanceStatus
$cfromJSONKey :: FromJSONKeyFunction MaintenanceStatus
Core.FromJSONKey,
[MaintenanceStatus] -> Encoding
[MaintenanceStatus] -> Value
MaintenanceStatus -> Encoding
MaintenanceStatus -> Value
(MaintenanceStatus -> Value)
-> (MaintenanceStatus -> Encoding)
-> ([MaintenanceStatus] -> Value)
-> ([MaintenanceStatus] -> Encoding)
-> ToJSON MaintenanceStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MaintenanceStatus] -> Encoding
$ctoEncodingList :: [MaintenanceStatus] -> Encoding
toJSONList :: [MaintenanceStatus] -> Value
$ctoJSONList :: [MaintenanceStatus] -> Value
toEncoding :: MaintenanceStatus -> Encoding
$ctoEncoding :: MaintenanceStatus -> Encoding
toJSON :: MaintenanceStatus -> Value
$ctoJSON :: MaintenanceStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [MaintenanceStatus]
ToJSONKeyFunction MaintenanceStatus
ToJSONKeyFunction MaintenanceStatus
-> ToJSONKeyFunction [MaintenanceStatus]
-> ToJSONKey MaintenanceStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MaintenanceStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [MaintenanceStatus]
toJSONKey :: ToJSONKeyFunction MaintenanceStatus
$ctoJSONKey :: ToJSONKeyFunction MaintenanceStatus
Core.ToJSONKey,
[Node] -> Either String MaintenanceStatus
([Node] -> Either String MaintenanceStatus)
-> FromXML MaintenanceStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MaintenanceStatus
$cparseXML :: [Node] -> Either String MaintenanceStatus
Core.FromXML,
MaintenanceStatus -> XML
(MaintenanceStatus -> XML) -> ToXML MaintenanceStatus
forall a. (a -> XML) -> ToXML a
toXML :: MaintenanceStatus -> XML
$ctoXML :: MaintenanceStatus -> XML
Core.ToXML
)
pattern MaintenanceStatus_FAILED :: MaintenanceStatus
pattern $bMaintenanceStatus_FAILED :: MaintenanceStatus
$mMaintenanceStatus_FAILED :: forall r. MaintenanceStatus -> (Void# -> r) -> (Void# -> r) -> r
MaintenanceStatus_FAILED = MaintenanceStatus' "FAILED"
pattern MaintenanceStatus_SUCCESS :: MaintenanceStatus
pattern $bMaintenanceStatus_SUCCESS :: MaintenanceStatus
$mMaintenanceStatus_SUCCESS :: forall r. MaintenanceStatus -> (Void# -> r) -> (Void# -> r) -> r
MaintenanceStatus_SUCCESS = MaintenanceStatus' "SUCCESS"
{-# COMPLETE
MaintenanceStatus_FAILED,
MaintenanceStatus_SUCCESS,
MaintenanceStatus'
#-}