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