{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.HealthLake.Types.CmkType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype CmkType = CmkType' {CmkType -> Text
fromCmkType :: Data.Text}
  deriving stock
    ( Int -> CmkType -> ShowS
[CmkType] -> ShowS
CmkType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq CmkType
Int -> CmkType -> Int
CmkType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: CmkType -> ()
$crnf :: CmkType -> ()
Prelude.NFData,
      Text -> Either String CmkType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmkType
$cfromText :: Text -> Either String CmkType
Data.FromText,
      CmkType -> Text
forall a. (a -> Text) -> ToText a
toText :: CmkType -> Text
$ctoText :: CmkType -> Text
Data.ToText,
      CmkType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmkType -> ByteString
$ctoBS :: CmkType -> ByteString
Data.ToByteString,
      CmkType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmkType -> ByteStringBuilder
$cbuild :: CmkType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> CmkType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmkType -> [Header]
$ctoHeader :: HeaderName -> CmkType -> [Header]
Data.ToHeader,
      CmkType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmkType -> QueryString
$ctoQuery :: CmkType -> QueryString
Data.ToQuery,
      Value -> Parser [CmkType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [CmkType]
FromJSONKeyFunction CmkType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmkType]
$cfromJSONKeyList :: FromJSONKeyFunction [CmkType]
fromJSONKey :: FromJSONKeyFunction CmkType
$cfromJSONKey :: FromJSONKeyFunction CmkType
Data.FromJSONKey,
      [CmkType] -> Encoding
[CmkType] -> Value
CmkType -> Encoding
CmkType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [CmkType]
ToJSONKeyFunction CmkType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmkType]
$ctoJSONKeyList :: ToJSONKeyFunction [CmkType]
toJSONKey :: ToJSONKeyFunction CmkType
$ctoJSONKey :: ToJSONKeyFunction CmkType
Data.ToJSONKey,
      [Node] -> Either String CmkType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmkType
$cparseXML :: [Node] -> Either String CmkType
Data.FromXML,
      CmkType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: CmkType -> XML
$ctoXML :: CmkType -> XML
Data.ToXML
    )

pattern CmkType_AWS_OWNED_KMS_KEY :: CmkType
pattern $bCmkType_AWS_OWNED_KMS_KEY :: CmkType
$mCmkType_AWS_OWNED_KMS_KEY :: forall {r}. CmkType -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
CmkType_CUSTOMER_MANAGED_KMS_KEY = CmkType' "CUSTOMER_MANAGED_KMS_KEY"

{-# COMPLETE
  CmkType_AWS_OWNED_KMS_KEY,
  CmkType_CUSTOMER_MANAGED_KMS_KEY,
  CmkType'
  #-}