{-# 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.ECS.Types.ProxyConfigurationType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ECS.Types.ProxyConfigurationType
  ( ProxyConfigurationType
      ( ..,
        ProxyConfigurationType_APPMESH
      ),
  )
where

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

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

pattern ProxyConfigurationType_APPMESH :: ProxyConfigurationType
pattern $bProxyConfigurationType_APPMESH :: ProxyConfigurationType
$mProxyConfigurationType_APPMESH :: forall r.
ProxyConfigurationType -> (Void# -> r) -> (Void# -> r) -> r
ProxyConfigurationType_APPMESH = ProxyConfigurationType' "APPMESH"

{-# COMPLETE
  ProxyConfigurationType_APPMESH,
  ProxyConfigurationType'
  #-}