{-# 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.CodeDeploy.Types.DeploymentType
-- 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.CodeDeploy.Types.DeploymentType
  ( DeploymentType
      ( ..,
        DeploymentType_BLUE_GREEN,
        DeploymentType_IN_PLACE
      ),
  )
where

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

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

pattern DeploymentType_BLUE_GREEN :: DeploymentType
pattern $bDeploymentType_BLUE_GREEN :: DeploymentType
$mDeploymentType_BLUE_GREEN :: forall r. DeploymentType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentType_BLUE_GREEN = DeploymentType' "BLUE_GREEN"

pattern DeploymentType_IN_PLACE :: DeploymentType
pattern $bDeploymentType_IN_PLACE :: DeploymentType
$mDeploymentType_IN_PLACE :: forall r. DeploymentType -> (Void# -> r) -> (Void# -> r) -> r
DeploymentType_IN_PLACE = DeploymentType' "IN_PLACE"

{-# COMPLETE
  DeploymentType_BLUE_GREEN,
  DeploymentType_IN_PLACE,
  DeploymentType'
  #-}