{-# 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.AppConfig.Types.ActionPoint
-- 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.AppConfig.Types.ActionPoint
  ( ActionPoint
      ( ..,
        ActionPoint_ON_DEPLOYMENT_BAKING,
        ActionPoint_ON_DEPLOYMENT_COMPLETE,
        ActionPoint_ON_DEPLOYMENT_ROLLED_BACK,
        ActionPoint_ON_DEPLOYMENT_START,
        ActionPoint_ON_DEPLOYMENT_STEP,
        ActionPoint_PRE_CREATE_HOSTED_CONFIGURATION_VERSION,
        ActionPoint_PRE_START_DEPLOYMENT
      ),
  )
where

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

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

pattern ActionPoint_ON_DEPLOYMENT_BAKING :: ActionPoint
pattern $bActionPoint_ON_DEPLOYMENT_BAKING :: ActionPoint
$mActionPoint_ON_DEPLOYMENT_BAKING :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_ON_DEPLOYMENT_BAKING = ActionPoint' "ON_DEPLOYMENT_BAKING"

pattern ActionPoint_ON_DEPLOYMENT_COMPLETE :: ActionPoint
pattern $bActionPoint_ON_DEPLOYMENT_COMPLETE :: ActionPoint
$mActionPoint_ON_DEPLOYMENT_COMPLETE :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_ON_DEPLOYMENT_COMPLETE = ActionPoint' "ON_DEPLOYMENT_COMPLETE"

pattern ActionPoint_ON_DEPLOYMENT_ROLLED_BACK :: ActionPoint
pattern $bActionPoint_ON_DEPLOYMENT_ROLLED_BACK :: ActionPoint
$mActionPoint_ON_DEPLOYMENT_ROLLED_BACK :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_ON_DEPLOYMENT_ROLLED_BACK = ActionPoint' "ON_DEPLOYMENT_ROLLED_BACK"

pattern ActionPoint_ON_DEPLOYMENT_START :: ActionPoint
pattern $bActionPoint_ON_DEPLOYMENT_START :: ActionPoint
$mActionPoint_ON_DEPLOYMENT_START :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_ON_DEPLOYMENT_START = ActionPoint' "ON_DEPLOYMENT_START"

pattern ActionPoint_ON_DEPLOYMENT_STEP :: ActionPoint
pattern $bActionPoint_ON_DEPLOYMENT_STEP :: ActionPoint
$mActionPoint_ON_DEPLOYMENT_STEP :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_ON_DEPLOYMENT_STEP = ActionPoint' "ON_DEPLOYMENT_STEP"

pattern ActionPoint_PRE_CREATE_HOSTED_CONFIGURATION_VERSION :: ActionPoint
pattern $bActionPoint_PRE_CREATE_HOSTED_CONFIGURATION_VERSION :: ActionPoint
$mActionPoint_PRE_CREATE_HOSTED_CONFIGURATION_VERSION :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_PRE_CREATE_HOSTED_CONFIGURATION_VERSION = ActionPoint' "PRE_CREATE_HOSTED_CONFIGURATION_VERSION"

pattern ActionPoint_PRE_START_DEPLOYMENT :: ActionPoint
pattern $bActionPoint_PRE_START_DEPLOYMENT :: ActionPoint
$mActionPoint_PRE_START_DEPLOYMENT :: forall {r}. ActionPoint -> ((# #) -> r) -> ((# #) -> r) -> r
ActionPoint_PRE_START_DEPLOYMENT = ActionPoint' "PRE_START_DEPLOYMENT"

{-# COMPLETE
  ActionPoint_ON_DEPLOYMENT_BAKING,
  ActionPoint_ON_DEPLOYMENT_COMPLETE,
  ActionPoint_ON_DEPLOYMENT_ROLLED_BACK,
  ActionPoint_ON_DEPLOYMENT_START,
  ActionPoint_ON_DEPLOYMENT_STEP,
  ActionPoint_PRE_CREATE_HOSTED_CONFIGURATION_VERSION,
  ActionPoint_PRE_START_DEPLOYMENT,
  ActionPoint'
  #-}