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