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