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