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