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