{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CodeDeploy.Types.OutdatedInstancesStrategy
( OutdatedInstancesStrategy
( ..,
OutdatedInstancesStrategy_IGNORE,
OutdatedInstancesStrategy_UPDATE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OutdatedInstancesStrategy = OutdatedInstancesStrategy'
{ OutdatedInstancesStrategy -> Text
fromOutdatedInstancesStrategy ::
Core.Text
}
deriving stock
( Int -> OutdatedInstancesStrategy -> ShowS
[OutdatedInstancesStrategy] -> ShowS
OutdatedInstancesStrategy -> String
(Int -> OutdatedInstancesStrategy -> ShowS)
-> (OutdatedInstancesStrategy -> String)
-> ([OutdatedInstancesStrategy] -> ShowS)
-> Show OutdatedInstancesStrategy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OutdatedInstancesStrategy] -> ShowS
$cshowList :: [OutdatedInstancesStrategy] -> ShowS
show :: OutdatedInstancesStrategy -> String
$cshow :: OutdatedInstancesStrategy -> String
showsPrec :: Int -> OutdatedInstancesStrategy -> ShowS
$cshowsPrec :: Int -> OutdatedInstancesStrategy -> ShowS
Prelude.Show,
ReadPrec [OutdatedInstancesStrategy]
ReadPrec OutdatedInstancesStrategy
Int -> ReadS OutdatedInstancesStrategy
ReadS [OutdatedInstancesStrategy]
(Int -> ReadS OutdatedInstancesStrategy)
-> ReadS [OutdatedInstancesStrategy]
-> ReadPrec OutdatedInstancesStrategy
-> ReadPrec [OutdatedInstancesStrategy]
-> Read OutdatedInstancesStrategy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OutdatedInstancesStrategy]
$creadListPrec :: ReadPrec [OutdatedInstancesStrategy]
readPrec :: ReadPrec OutdatedInstancesStrategy
$creadPrec :: ReadPrec OutdatedInstancesStrategy
readList :: ReadS [OutdatedInstancesStrategy]
$creadList :: ReadS [OutdatedInstancesStrategy]
readsPrec :: Int -> ReadS OutdatedInstancesStrategy
$creadsPrec :: Int -> ReadS OutdatedInstancesStrategy
Prelude.Read,
OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
(OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool)
-> (OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool)
-> Eq OutdatedInstancesStrategy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
$c/= :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
== :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
$c== :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
Prelude.Eq,
Eq OutdatedInstancesStrategy
Eq OutdatedInstancesStrategy
-> (OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> Ordering)
-> (OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool)
-> (OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool)
-> (OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool)
-> (OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool)
-> (OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy)
-> (OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy)
-> Ord OutdatedInstancesStrategy
OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Ordering
OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy
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 :: OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy
$cmin :: OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy
max :: OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy
$cmax :: OutdatedInstancesStrategy
-> OutdatedInstancesStrategy -> OutdatedInstancesStrategy
>= :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
$c>= :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
> :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
$c> :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
<= :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
$c<= :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
< :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
$c< :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Bool
compare :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Ordering
$ccompare :: OutdatedInstancesStrategy -> OutdatedInstancesStrategy -> Ordering
$cp1Ord :: Eq OutdatedInstancesStrategy
Prelude.Ord,
(forall x.
OutdatedInstancesStrategy -> Rep OutdatedInstancesStrategy x)
-> (forall x.
Rep OutdatedInstancesStrategy x -> OutdatedInstancesStrategy)
-> Generic OutdatedInstancesStrategy
forall x.
Rep OutdatedInstancesStrategy x -> OutdatedInstancesStrategy
forall x.
OutdatedInstancesStrategy -> Rep OutdatedInstancesStrategy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OutdatedInstancesStrategy x -> OutdatedInstancesStrategy
$cfrom :: forall x.
OutdatedInstancesStrategy -> Rep OutdatedInstancesStrategy x
Prelude.Generic
)
deriving newtype
( Int -> OutdatedInstancesStrategy -> Int
OutdatedInstancesStrategy -> Int
(Int -> OutdatedInstancesStrategy -> Int)
-> (OutdatedInstancesStrategy -> Int)
-> Hashable OutdatedInstancesStrategy
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OutdatedInstancesStrategy -> Int
$chash :: OutdatedInstancesStrategy -> Int
hashWithSalt :: Int -> OutdatedInstancesStrategy -> Int
$chashWithSalt :: Int -> OutdatedInstancesStrategy -> Int
Prelude.Hashable,
OutdatedInstancesStrategy -> ()
(OutdatedInstancesStrategy -> ())
-> NFData OutdatedInstancesStrategy
forall a. (a -> ()) -> NFData a
rnf :: OutdatedInstancesStrategy -> ()
$crnf :: OutdatedInstancesStrategy -> ()
Prelude.NFData,
Text -> Either String OutdatedInstancesStrategy
(Text -> Either String OutdatedInstancesStrategy)
-> FromText OutdatedInstancesStrategy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OutdatedInstancesStrategy
$cfromText :: Text -> Either String OutdatedInstancesStrategy
Core.FromText,
OutdatedInstancesStrategy -> Text
(OutdatedInstancesStrategy -> Text)
-> ToText OutdatedInstancesStrategy
forall a. (a -> Text) -> ToText a
toText :: OutdatedInstancesStrategy -> Text
$ctoText :: OutdatedInstancesStrategy -> Text
Core.ToText,
OutdatedInstancesStrategy -> ByteString
(OutdatedInstancesStrategy -> ByteString)
-> ToByteString OutdatedInstancesStrategy
forall a. (a -> ByteString) -> ToByteString a
toBS :: OutdatedInstancesStrategy -> ByteString
$ctoBS :: OutdatedInstancesStrategy -> ByteString
Core.ToByteString,
OutdatedInstancesStrategy -> ByteStringBuilder
(OutdatedInstancesStrategy -> ByteStringBuilder)
-> ToLog OutdatedInstancesStrategy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OutdatedInstancesStrategy -> ByteStringBuilder
$cbuild :: OutdatedInstancesStrategy -> ByteStringBuilder
Core.ToLog,
HeaderName -> OutdatedInstancesStrategy -> [Header]
(HeaderName -> OutdatedInstancesStrategy -> [Header])
-> ToHeader OutdatedInstancesStrategy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OutdatedInstancesStrategy -> [Header]
$ctoHeader :: HeaderName -> OutdatedInstancesStrategy -> [Header]
Core.ToHeader,
OutdatedInstancesStrategy -> QueryString
(OutdatedInstancesStrategy -> QueryString)
-> ToQuery OutdatedInstancesStrategy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OutdatedInstancesStrategy -> QueryString
$ctoQuery :: OutdatedInstancesStrategy -> QueryString
Core.ToQuery,
Value -> Parser [OutdatedInstancesStrategy]
Value -> Parser OutdatedInstancesStrategy
(Value -> Parser OutdatedInstancesStrategy)
-> (Value -> Parser [OutdatedInstancesStrategy])
-> FromJSON OutdatedInstancesStrategy
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OutdatedInstancesStrategy]
$cparseJSONList :: Value -> Parser [OutdatedInstancesStrategy]
parseJSON :: Value -> Parser OutdatedInstancesStrategy
$cparseJSON :: Value -> Parser OutdatedInstancesStrategy
Core.FromJSON,
FromJSONKeyFunction [OutdatedInstancesStrategy]
FromJSONKeyFunction OutdatedInstancesStrategy
FromJSONKeyFunction OutdatedInstancesStrategy
-> FromJSONKeyFunction [OutdatedInstancesStrategy]
-> FromJSONKey OutdatedInstancesStrategy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OutdatedInstancesStrategy]
$cfromJSONKeyList :: FromJSONKeyFunction [OutdatedInstancesStrategy]
fromJSONKey :: FromJSONKeyFunction OutdatedInstancesStrategy
$cfromJSONKey :: FromJSONKeyFunction OutdatedInstancesStrategy
Core.FromJSONKey,
[OutdatedInstancesStrategy] -> Encoding
[OutdatedInstancesStrategy] -> Value
OutdatedInstancesStrategy -> Encoding
OutdatedInstancesStrategy -> Value
(OutdatedInstancesStrategy -> Value)
-> (OutdatedInstancesStrategy -> Encoding)
-> ([OutdatedInstancesStrategy] -> Value)
-> ([OutdatedInstancesStrategy] -> Encoding)
-> ToJSON OutdatedInstancesStrategy
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OutdatedInstancesStrategy] -> Encoding
$ctoEncodingList :: [OutdatedInstancesStrategy] -> Encoding
toJSONList :: [OutdatedInstancesStrategy] -> Value
$ctoJSONList :: [OutdatedInstancesStrategy] -> Value
toEncoding :: OutdatedInstancesStrategy -> Encoding
$ctoEncoding :: OutdatedInstancesStrategy -> Encoding
toJSON :: OutdatedInstancesStrategy -> Value
$ctoJSON :: OutdatedInstancesStrategy -> Value
Core.ToJSON,
ToJSONKeyFunction [OutdatedInstancesStrategy]
ToJSONKeyFunction OutdatedInstancesStrategy
ToJSONKeyFunction OutdatedInstancesStrategy
-> ToJSONKeyFunction [OutdatedInstancesStrategy]
-> ToJSONKey OutdatedInstancesStrategy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OutdatedInstancesStrategy]
$ctoJSONKeyList :: ToJSONKeyFunction [OutdatedInstancesStrategy]
toJSONKey :: ToJSONKeyFunction OutdatedInstancesStrategy
$ctoJSONKey :: ToJSONKeyFunction OutdatedInstancesStrategy
Core.ToJSONKey,
[Node] -> Either String OutdatedInstancesStrategy
([Node] -> Either String OutdatedInstancesStrategy)
-> FromXML OutdatedInstancesStrategy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OutdatedInstancesStrategy
$cparseXML :: [Node] -> Either String OutdatedInstancesStrategy
Core.FromXML,
OutdatedInstancesStrategy -> XML
(OutdatedInstancesStrategy -> XML)
-> ToXML OutdatedInstancesStrategy
forall a. (a -> XML) -> ToXML a
toXML :: OutdatedInstancesStrategy -> XML
$ctoXML :: OutdatedInstancesStrategy -> XML
Core.ToXML
)
pattern OutdatedInstancesStrategy_IGNORE :: OutdatedInstancesStrategy
pattern $bOutdatedInstancesStrategy_IGNORE :: OutdatedInstancesStrategy
$mOutdatedInstancesStrategy_IGNORE :: forall r.
OutdatedInstancesStrategy -> (Void# -> r) -> (Void# -> r) -> r
OutdatedInstancesStrategy_IGNORE = OutdatedInstancesStrategy' "IGNORE"
pattern OutdatedInstancesStrategy_UPDATE :: OutdatedInstancesStrategy
pattern $bOutdatedInstancesStrategy_UPDATE :: OutdatedInstancesStrategy
$mOutdatedInstancesStrategy_UPDATE :: forall r.
OutdatedInstancesStrategy -> (Void# -> r) -> (Void# -> r) -> r
OutdatedInstancesStrategy_UPDATE = OutdatedInstancesStrategy' "UPDATE"
{-# COMPLETE
OutdatedInstancesStrategy_IGNORE,
OutdatedInstancesStrategy_UPDATE,
OutdatedInstancesStrategy'
#-}