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