{-# 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.DeploymentOption
-- 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.DeploymentOption
  ( DeploymentOption
      ( ..,
        DeploymentOption_WITHOUT_TRAFFIC_CONTROL,
        DeploymentOption_WITH_TRAFFIC_CONTROL
      ),
  )
where

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

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

pattern DeploymentOption_WITHOUT_TRAFFIC_CONTROL :: DeploymentOption
pattern $bDeploymentOption_WITHOUT_TRAFFIC_CONTROL :: DeploymentOption
$mDeploymentOption_WITHOUT_TRAFFIC_CONTROL :: forall r. DeploymentOption -> (Void# -> r) -> (Void# -> r) -> r
DeploymentOption_WITHOUT_TRAFFIC_CONTROL = DeploymentOption' "WITHOUT_TRAFFIC_CONTROL"

pattern DeploymentOption_WITH_TRAFFIC_CONTROL :: DeploymentOption
pattern $bDeploymentOption_WITH_TRAFFIC_CONTROL :: DeploymentOption
$mDeploymentOption_WITH_TRAFFIC_CONTROL :: forall r. DeploymentOption -> (Void# -> r) -> (Void# -> r) -> r
DeploymentOption_WITH_TRAFFIC_CONTROL = DeploymentOption' "WITH_TRAFFIC_CONTROL"

{-# COMPLETE
  DeploymentOption_WITHOUT_TRAFFIC_CONTROL,
  DeploymentOption_WITH_TRAFFIC_CONTROL,
  DeploymentOption'
  #-}