{-# 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_MacOS,
PlatformType_Windows
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype PlatformType = PlatformType'
{ PlatformType -> Text
fromPlatformType ::
Data.Text
}
deriving stock
( Int -> PlatformType -> ShowS
[PlatformType] -> ShowS
PlatformType -> String
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]
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
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
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
Prelude.Ord,
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
( Eq PlatformType
Int -> PlatformType -> Int
PlatformType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: PlatformType -> ()
$crnf :: PlatformType -> ()
Prelude.NFData,
Text -> Either String PlatformType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PlatformType
$cfromText :: Text -> Either String PlatformType
Data.FromText,
PlatformType -> Text
forall a. (a -> Text) -> ToText a
toText :: PlatformType -> Text
$ctoText :: PlatformType -> Text
Data.ToText,
PlatformType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PlatformType -> ByteString
$ctoBS :: PlatformType -> ByteString
Data.ToByteString,
PlatformType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PlatformType -> ByteStringBuilder
$cbuild :: PlatformType -> ByteStringBuilder
Data.ToLog,
HeaderName -> PlatformType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PlatformType -> [Header]
$ctoHeader :: HeaderName -> PlatformType -> [Header]
Data.ToHeader,
PlatformType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PlatformType -> QueryString
$ctoQuery :: PlatformType -> QueryString
Data.ToQuery,
Value -> Parser [PlatformType]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [PlatformType]
FromJSONKeyFunction PlatformType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PlatformType]
$cfromJSONKeyList :: FromJSONKeyFunction [PlatformType]
fromJSONKey :: FromJSONKeyFunction PlatformType
$cfromJSONKey :: FromJSONKeyFunction PlatformType
Data.FromJSONKey,
[PlatformType] -> Encoding
[PlatformType] -> Value
PlatformType -> Encoding
PlatformType -> Value
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
Data.ToJSON,
ToJSONKeyFunction [PlatformType]
ToJSONKeyFunction PlatformType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PlatformType]
$ctoJSONKeyList :: ToJSONKeyFunction [PlatformType]
toJSONKey :: ToJSONKeyFunction PlatformType
$ctoJSONKey :: ToJSONKeyFunction PlatformType
Data.ToJSONKey,
[Node] -> Either String PlatformType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PlatformType
$cparseXML :: [Node] -> Either String PlatformType
Data.FromXML,
PlatformType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PlatformType -> XML
$ctoXML :: PlatformType -> XML
Data.ToXML
)
pattern PlatformType_Linux :: PlatformType
pattern $bPlatformType_Linux :: PlatformType
$mPlatformType_Linux :: forall {r}. PlatformType -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformType_Linux = PlatformType' "Linux"
pattern PlatformType_MacOS :: PlatformType
pattern $bPlatformType_MacOS :: PlatformType
$mPlatformType_MacOS :: forall {r}. PlatformType -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformType_MacOS = PlatformType' "MacOS"
pattern PlatformType_Windows :: PlatformType
pattern $bPlatformType_Windows :: PlatformType
$mPlatformType_Windows :: forall {r}. PlatformType -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformType_Windows = PlatformType' "Windows"
{-# COMPLETE
PlatformType_Linux,
PlatformType_MacOS,
PlatformType_Windows,
PlatformType'
#-}