{-# 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.PidMode
-- 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.PidMode
  ( PidMode
      ( ..,
        PidMode_Host,
        PidMode_Task
      ),
  )
where

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

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

pattern PidMode_Host :: PidMode
pattern $bPidMode_Host :: PidMode
$mPidMode_Host :: forall r. PidMode -> (Void# -> r) -> (Void# -> r) -> r
PidMode_Host = PidMode' "host"

pattern PidMode_Task :: PidMode
pattern $bPidMode_Task :: PidMode
$mPidMode_Task :: forall r. PidMode -> (Void# -> r) -> (Void# -> r) -> r
PidMode_Task = PidMode' "task"

{-# COMPLETE
  PidMode_Host,
  PidMode_Task,
  PidMode'
  #-}