{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype DeploymentControllerType = DeploymentControllerType'
  { DeploymentControllerType -> Text
fromDeploymentControllerType ::
      Data.Text
  }
  deriving stock
    ( Int -> DeploymentControllerType -> ShowS
[DeploymentControllerType] -> ShowS
DeploymentControllerType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq DeploymentControllerType
Int -> DeploymentControllerType -> Int
DeploymentControllerType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: DeploymentControllerType -> ()
$crnf :: DeploymentControllerType -> ()
Prelude.NFData,
      Text -> Either String DeploymentControllerType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeploymentControllerType
$cfromText :: Text -> Either String DeploymentControllerType
Data.FromText,
      DeploymentControllerType -> Text
forall a. (a -> Text) -> ToText a
toText :: DeploymentControllerType -> Text
$ctoText :: DeploymentControllerType -> Text
Data.ToText,
      DeploymentControllerType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeploymentControllerType -> ByteString
$ctoBS :: DeploymentControllerType -> ByteString
Data.ToByteString,
      DeploymentControllerType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeploymentControllerType -> ByteStringBuilder
$cbuild :: DeploymentControllerType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DeploymentControllerType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeploymentControllerType -> [Header]
$ctoHeader :: HeaderName -> DeploymentControllerType -> [Header]
Data.ToHeader,
      DeploymentControllerType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeploymentControllerType -> QueryString
$ctoQuery :: DeploymentControllerType -> QueryString
Data.ToQuery,
      Value -> Parser [DeploymentControllerType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [DeploymentControllerType]
FromJSONKeyFunction DeploymentControllerType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeploymentControllerType]
$cfromJSONKeyList :: FromJSONKeyFunction [DeploymentControllerType]
fromJSONKey :: FromJSONKeyFunction DeploymentControllerType
$cfromJSONKey :: FromJSONKeyFunction DeploymentControllerType
Data.FromJSONKey,
      [DeploymentControllerType] -> Encoding
[DeploymentControllerType] -> Value
DeploymentControllerType -> Encoding
DeploymentControllerType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [DeploymentControllerType]
ToJSONKeyFunction DeploymentControllerType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeploymentControllerType]
$ctoJSONKeyList :: ToJSONKeyFunction [DeploymentControllerType]
toJSONKey :: ToJSONKeyFunction DeploymentControllerType
$ctoJSONKey :: ToJSONKeyFunction DeploymentControllerType
Data.ToJSONKey,
      [Node] -> Either String DeploymentControllerType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeploymentControllerType
$cparseXML :: [Node] -> Either String DeploymentControllerType
Data.FromXML,
      DeploymentControllerType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DeploymentControllerType -> XML
$ctoXML :: DeploymentControllerType -> XML
Data.ToXML
    )

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

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

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

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