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