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