{-# 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.DeploymentControllerType
-- 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.DeploymentControllerType
  ( DeploymentControllerType
      ( ..,
        DeploymentControllerType_CODE_DEPLOY,
        DeploymentControllerType_ECS,
        DeploymentControllerType_EXTERNAL
      ),
  )
where

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

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

pattern DeploymentControllerType_CODE_DEPLOY :: DeploymentControllerType
pattern $bDeploymentControllerType_CODE_DEPLOY :: DeploymentControllerType
$mDeploymentControllerType_CODE_DEPLOY :: forall r.
DeploymentControllerType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentControllerType_CODE_DEPLOY = DeploymentControllerType' "CODE_DEPLOY"

pattern DeploymentControllerType_ECS :: DeploymentControllerType
pattern $bDeploymentControllerType_ECS :: DeploymentControllerType
$mDeploymentControllerType_ECS :: forall r.
DeploymentControllerType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentControllerType_ECS = DeploymentControllerType' "ECS"

pattern DeploymentControllerType_EXTERNAL :: DeploymentControllerType
pattern $bDeploymentControllerType_EXTERNAL :: DeploymentControllerType
$mDeploymentControllerType_EXTERNAL :: forall r.
DeploymentControllerType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentControllerType_EXTERNAL = DeploymentControllerType' "EXTERNAL"

{-# COMPLETE
  DeploymentControllerType_CODE_DEPLOY,
  DeploymentControllerType_ECS,
  DeploymentControllerType_EXTERNAL,
  DeploymentControllerType'
  #-}