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