{-# 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.GreenFleetProvisioningAction
-- 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.GreenFleetProvisioningAction
  ( GreenFleetProvisioningAction
      ( ..,
        GreenFleetProvisioningAction_COPY_AUTO_SCALING_GROUP,
        GreenFleetProvisioningAction_DISCOVER_EXISTING
      ),
  )
where

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

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

pattern GreenFleetProvisioningAction_COPY_AUTO_SCALING_GROUP :: GreenFleetProvisioningAction
pattern $bGreenFleetProvisioningAction_COPY_AUTO_SCALING_GROUP :: GreenFleetProvisioningAction
$mGreenFleetProvisioningAction_COPY_AUTO_SCALING_GROUP :: forall r.
GreenFleetProvisioningAction -> (Void# -> r) -> (Void# -> r) -> r
GreenFleetProvisioningAction_COPY_AUTO_SCALING_GROUP = GreenFleetProvisioningAction' "COPY_AUTO_SCALING_GROUP"

pattern GreenFleetProvisioningAction_DISCOVER_EXISTING :: GreenFleetProvisioningAction
pattern $bGreenFleetProvisioningAction_DISCOVER_EXISTING :: GreenFleetProvisioningAction
$mGreenFleetProvisioningAction_DISCOVER_EXISTING :: forall r.
GreenFleetProvisioningAction -> (Void# -> r) -> (Void# -> r) -> r
GreenFleetProvisioningAction_DISCOVER_EXISTING = GreenFleetProvisioningAction' "DISCOVER_EXISTING"

{-# COMPLETE
  GreenFleetProvisioningAction_COPY_AUTO_SCALING_GROUP,
  GreenFleetProvisioningAction_DISCOVER_EXISTING,
  GreenFleetProvisioningAction'
  #-}