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