{-# 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.Compatibility
( Compatibility
( ..,
Compatibility_EC2,
Compatibility_EXTERNAL,
Compatibility_FARGATE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype Compatibility = Compatibility'
{ Compatibility -> Text
fromCompatibility ::
Core.Text
}
deriving stock
( Int -> Compatibility -> ShowS
[Compatibility] -> ShowS
Compatibility -> String
(Int -> Compatibility -> ShowS)
-> (Compatibility -> String)
-> ([Compatibility] -> ShowS)
-> Show Compatibility
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Compatibility] -> ShowS
$cshowList :: [Compatibility] -> ShowS
show :: Compatibility -> String
$cshow :: Compatibility -> String
showsPrec :: Int -> Compatibility -> ShowS
$cshowsPrec :: Int -> Compatibility -> ShowS
Prelude.Show,
ReadPrec [Compatibility]
ReadPrec Compatibility
Int -> ReadS Compatibility
ReadS [Compatibility]
(Int -> ReadS Compatibility)
-> ReadS [Compatibility]
-> ReadPrec Compatibility
-> ReadPrec [Compatibility]
-> Read Compatibility
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Compatibility]
$creadListPrec :: ReadPrec [Compatibility]
readPrec :: ReadPrec Compatibility
$creadPrec :: ReadPrec Compatibility
readList :: ReadS [Compatibility]
$creadList :: ReadS [Compatibility]
readsPrec :: Int -> ReadS Compatibility
$creadsPrec :: Int -> ReadS Compatibility
Prelude.Read,
Compatibility -> Compatibility -> Bool
(Compatibility -> Compatibility -> Bool)
-> (Compatibility -> Compatibility -> Bool) -> Eq Compatibility
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Compatibility -> Compatibility -> Bool
$c/= :: Compatibility -> Compatibility -> Bool
== :: Compatibility -> Compatibility -> Bool
$c== :: Compatibility -> Compatibility -> Bool
Prelude.Eq,
Eq Compatibility
Eq Compatibility
-> (Compatibility -> Compatibility -> Ordering)
-> (Compatibility -> Compatibility -> Bool)
-> (Compatibility -> Compatibility -> Bool)
-> (Compatibility -> Compatibility -> Bool)
-> (Compatibility -> Compatibility -> Bool)
-> (Compatibility -> Compatibility -> Compatibility)
-> (Compatibility -> Compatibility -> Compatibility)
-> Ord Compatibility
Compatibility -> Compatibility -> Bool
Compatibility -> Compatibility -> Ordering
Compatibility -> Compatibility -> Compatibility
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 :: Compatibility -> Compatibility -> Compatibility
$cmin :: Compatibility -> Compatibility -> Compatibility
max :: Compatibility -> Compatibility -> Compatibility
$cmax :: Compatibility -> Compatibility -> Compatibility
>= :: Compatibility -> Compatibility -> Bool
$c>= :: Compatibility -> Compatibility -> Bool
> :: Compatibility -> Compatibility -> Bool
$c> :: Compatibility -> Compatibility -> Bool
<= :: Compatibility -> Compatibility -> Bool
$c<= :: Compatibility -> Compatibility -> Bool
< :: Compatibility -> Compatibility -> Bool
$c< :: Compatibility -> Compatibility -> Bool
compare :: Compatibility -> Compatibility -> Ordering
$ccompare :: Compatibility -> Compatibility -> Ordering
$cp1Ord :: Eq Compatibility
Prelude.Ord,
(forall x. Compatibility -> Rep Compatibility x)
-> (forall x. Rep Compatibility x -> Compatibility)
-> Generic Compatibility
forall x. Rep Compatibility x -> Compatibility
forall x. Compatibility -> Rep Compatibility x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Compatibility x -> Compatibility
$cfrom :: forall x. Compatibility -> Rep Compatibility x
Prelude.Generic
)
deriving newtype
( Int -> Compatibility -> Int
Compatibility -> Int
(Int -> Compatibility -> Int)
-> (Compatibility -> Int) -> Hashable Compatibility
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Compatibility -> Int
$chash :: Compatibility -> Int
hashWithSalt :: Int -> Compatibility -> Int
$chashWithSalt :: Int -> Compatibility -> Int
Prelude.Hashable,
Compatibility -> ()
(Compatibility -> ()) -> NFData Compatibility
forall a. (a -> ()) -> NFData a
rnf :: Compatibility -> ()
$crnf :: Compatibility -> ()
Prelude.NFData,
Text -> Either String Compatibility
(Text -> Either String Compatibility) -> FromText Compatibility
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Compatibility
$cfromText :: Text -> Either String Compatibility
Core.FromText,
Compatibility -> Text
(Compatibility -> Text) -> ToText Compatibility
forall a. (a -> Text) -> ToText a
toText :: Compatibility -> Text
$ctoText :: Compatibility -> Text
Core.ToText,
Compatibility -> ByteString
(Compatibility -> ByteString) -> ToByteString Compatibility
forall a. (a -> ByteString) -> ToByteString a
toBS :: Compatibility -> ByteString
$ctoBS :: Compatibility -> ByteString
Core.ToByteString,
Compatibility -> ByteStringBuilder
(Compatibility -> ByteStringBuilder) -> ToLog Compatibility
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Compatibility -> ByteStringBuilder
$cbuild :: Compatibility -> ByteStringBuilder
Core.ToLog,
HeaderName -> Compatibility -> [Header]
(HeaderName -> Compatibility -> [Header]) -> ToHeader Compatibility
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Compatibility -> [Header]
$ctoHeader :: HeaderName -> Compatibility -> [Header]
Core.ToHeader,
Compatibility -> QueryString
(Compatibility -> QueryString) -> ToQuery Compatibility
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Compatibility -> QueryString
$ctoQuery :: Compatibility -> QueryString
Core.ToQuery,
Value -> Parser [Compatibility]
Value -> Parser Compatibility
(Value -> Parser Compatibility)
-> (Value -> Parser [Compatibility]) -> FromJSON Compatibility
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Compatibility]
$cparseJSONList :: Value -> Parser [Compatibility]
parseJSON :: Value -> Parser Compatibility
$cparseJSON :: Value -> Parser Compatibility
Core.FromJSON,
FromJSONKeyFunction [Compatibility]
FromJSONKeyFunction Compatibility
FromJSONKeyFunction Compatibility
-> FromJSONKeyFunction [Compatibility] -> FromJSONKey Compatibility
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Compatibility]
$cfromJSONKeyList :: FromJSONKeyFunction [Compatibility]
fromJSONKey :: FromJSONKeyFunction Compatibility
$cfromJSONKey :: FromJSONKeyFunction Compatibility
Core.FromJSONKey,
[Compatibility] -> Encoding
[Compatibility] -> Value
Compatibility -> Encoding
Compatibility -> Value
(Compatibility -> Value)
-> (Compatibility -> Encoding)
-> ([Compatibility] -> Value)
-> ([Compatibility] -> Encoding)
-> ToJSON Compatibility
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Compatibility] -> Encoding
$ctoEncodingList :: [Compatibility] -> Encoding
toJSONList :: [Compatibility] -> Value
$ctoJSONList :: [Compatibility] -> Value
toEncoding :: Compatibility -> Encoding
$ctoEncoding :: Compatibility -> Encoding
toJSON :: Compatibility -> Value
$ctoJSON :: Compatibility -> Value
Core.ToJSON,
ToJSONKeyFunction [Compatibility]
ToJSONKeyFunction Compatibility
ToJSONKeyFunction Compatibility
-> ToJSONKeyFunction [Compatibility] -> ToJSONKey Compatibility
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Compatibility]
$ctoJSONKeyList :: ToJSONKeyFunction [Compatibility]
toJSONKey :: ToJSONKeyFunction Compatibility
$ctoJSONKey :: ToJSONKeyFunction Compatibility
Core.ToJSONKey,
[Node] -> Either String Compatibility
([Node] -> Either String Compatibility) -> FromXML Compatibility
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Compatibility
$cparseXML :: [Node] -> Either String Compatibility
Core.FromXML,
Compatibility -> XML
(Compatibility -> XML) -> ToXML Compatibility
forall a. (a -> XML) -> ToXML a
toXML :: Compatibility -> XML
$ctoXML :: Compatibility -> XML
Core.ToXML
)
pattern Compatibility_EC2 :: Compatibility
pattern $bCompatibility_EC2 :: Compatibility
$mCompatibility_EC2 :: forall r. Compatibility -> (Void# -> r) -> (Void# -> r) -> r
Compatibility_EC2 = Compatibility' "EC2"
pattern Compatibility_EXTERNAL :: Compatibility
pattern $bCompatibility_EXTERNAL :: Compatibility
$mCompatibility_EXTERNAL :: forall r. Compatibility -> (Void# -> r) -> (Void# -> r) -> r
Compatibility_EXTERNAL = Compatibility' "EXTERNAL"
pattern Compatibility_FARGATE :: Compatibility
pattern $bCompatibility_FARGATE :: Compatibility
$mCompatibility_FARGATE :: forall r. Compatibility -> (Void# -> r) -> (Void# -> r) -> r
Compatibility_FARGATE = Compatibility' "FARGATE"
{-# COMPLETE
Compatibility_EC2,
Compatibility_EXTERNAL,
Compatibility_FARGATE,
Compatibility'
#-}