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