{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Pipes.Types.EcsEnvironmentFileType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pipes.Types.EcsEnvironmentFileType
  ( EcsEnvironmentFileType
      ( ..,
        EcsEnvironmentFileType_S3
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern EcsEnvironmentFileType_S3 :: EcsEnvironmentFileType
pattern $bEcsEnvironmentFileType_S3 :: EcsEnvironmentFileType
$mEcsEnvironmentFileType_S3 :: forall {r}.
EcsEnvironmentFileType -> ((# #) -> r) -> ((# #) -> r) -> r
EcsEnvironmentFileType_S3 = EcsEnvironmentFileType' "s3"

{-# COMPLETE
  EcsEnvironmentFileType_S3,
  EcsEnvironmentFileType'
  #-}