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