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