{-# 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.MGN.Types.PostLaunchActionsDeploymentType
-- 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.MGN.Types.PostLaunchActionsDeploymentType
  ( PostLaunchActionsDeploymentType
      ( ..,
        PostLaunchActionsDeploymentType_CUTOVER_ONLY,
        PostLaunchActionsDeploymentType_TEST_AND_CUTOVER,
        PostLaunchActionsDeploymentType_TEST_ONLY
      ),
  )
where

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

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

pattern PostLaunchActionsDeploymentType_CUTOVER_ONLY :: PostLaunchActionsDeploymentType
pattern $bPostLaunchActionsDeploymentType_CUTOVER_ONLY :: PostLaunchActionsDeploymentType
$mPostLaunchActionsDeploymentType_CUTOVER_ONLY :: forall {r}.
PostLaunchActionsDeploymentType
-> ((# #) -> r) -> ((# #) -> r) -> r
PostLaunchActionsDeploymentType_CUTOVER_ONLY = PostLaunchActionsDeploymentType' "CUTOVER_ONLY"

pattern PostLaunchActionsDeploymentType_TEST_AND_CUTOVER :: PostLaunchActionsDeploymentType
pattern $bPostLaunchActionsDeploymentType_TEST_AND_CUTOVER :: PostLaunchActionsDeploymentType
$mPostLaunchActionsDeploymentType_TEST_AND_CUTOVER :: forall {r}.
PostLaunchActionsDeploymentType
-> ((# #) -> r) -> ((# #) -> r) -> r
PostLaunchActionsDeploymentType_TEST_AND_CUTOVER = PostLaunchActionsDeploymentType' "TEST_AND_CUTOVER"

pattern PostLaunchActionsDeploymentType_TEST_ONLY :: PostLaunchActionsDeploymentType
pattern $bPostLaunchActionsDeploymentType_TEST_ONLY :: PostLaunchActionsDeploymentType
$mPostLaunchActionsDeploymentType_TEST_ONLY :: forall {r}.
PostLaunchActionsDeploymentType
-> ((# #) -> r) -> ((# #) -> r) -> r
PostLaunchActionsDeploymentType_TEST_ONLY = PostLaunchActionsDeploymentType' "TEST_ONLY"

{-# COMPLETE
  PostLaunchActionsDeploymentType_CUTOVER_ONLY,
  PostLaunchActionsDeploymentType_TEST_AND_CUTOVER,
  PostLaunchActionsDeploymentType_TEST_ONLY,
  PostLaunchActionsDeploymentType'
  #-}