{-# 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.GamesParks.Types.DeploymentAction
-- 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.GamesParks.Types.DeploymentAction
  ( DeploymentAction
      ( ..,
        DeploymentAction_DEPLOY,
        DeploymentAction_UNDEPLOY
      ),
  )
where

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

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

pattern DeploymentAction_DEPLOY :: DeploymentAction
pattern $bDeploymentAction_DEPLOY :: DeploymentAction
$mDeploymentAction_DEPLOY :: forall {r}. DeploymentAction -> ((# #) -> r) -> ((# #) -> r) -> r
DeploymentAction_DEPLOY = DeploymentAction' "DEPLOY"

pattern DeploymentAction_UNDEPLOY :: DeploymentAction
pattern $bDeploymentAction_UNDEPLOY :: DeploymentAction
$mDeploymentAction_UNDEPLOY :: forall {r}. DeploymentAction -> ((# #) -> r) -> ((# #) -> r) -> r
DeploymentAction_UNDEPLOY = DeploymentAction' "UNDEPLOY"

{-# COMPLETE
  DeploymentAction_DEPLOY,
  DeploymentAction_UNDEPLOY,
  DeploymentAction'
  #-}