{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CertificateManager.Types.KeyUsageName
( KeyUsageName
( ..,
KeyUsageName_ANY,
KeyUsageName_CERTIFICATE_SIGNING,
KeyUsageName_CRL_SIGNING,
KeyUsageName_CUSTOM,
KeyUsageName_DATA_ENCIPHERMENT,
KeyUsageName_DECIPHER_ONLY,
KeyUsageName_DIGITAL_SIGNATURE,
KeyUsageName_ENCIPHER_ONLY,
KeyUsageName_KEY_AGREEMENT,
KeyUsageName_KEY_ENCIPHERMENT,
KeyUsageName_NON_REPUDIATION
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype KeyUsageName = KeyUsageName'
{ KeyUsageName -> Text
fromKeyUsageName ::
Core.Text
}
deriving stock
( Int -> KeyUsageName -> ShowS
[KeyUsageName] -> ShowS
KeyUsageName -> String
(Int -> KeyUsageName -> ShowS)
-> (KeyUsageName -> String)
-> ([KeyUsageName] -> ShowS)
-> Show KeyUsageName
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KeyUsageName] -> ShowS
$cshowList :: [KeyUsageName] -> ShowS
show :: KeyUsageName -> String
$cshow :: KeyUsageName -> String
showsPrec :: Int -> KeyUsageName -> ShowS
$cshowsPrec :: Int -> KeyUsageName -> ShowS
Prelude.Show,
ReadPrec [KeyUsageName]
ReadPrec KeyUsageName
Int -> ReadS KeyUsageName
ReadS [KeyUsageName]
(Int -> ReadS KeyUsageName)
-> ReadS [KeyUsageName]
-> ReadPrec KeyUsageName
-> ReadPrec [KeyUsageName]
-> Read KeyUsageName
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KeyUsageName]
$creadListPrec :: ReadPrec [KeyUsageName]
readPrec :: ReadPrec KeyUsageName
$creadPrec :: ReadPrec KeyUsageName
readList :: ReadS [KeyUsageName]
$creadList :: ReadS [KeyUsageName]
readsPrec :: Int -> ReadS KeyUsageName
$creadsPrec :: Int -> ReadS KeyUsageName
Prelude.Read,
KeyUsageName -> KeyUsageName -> Bool
(KeyUsageName -> KeyUsageName -> Bool)
-> (KeyUsageName -> KeyUsageName -> Bool) -> Eq KeyUsageName
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KeyUsageName -> KeyUsageName -> Bool
$c/= :: KeyUsageName -> KeyUsageName -> Bool
== :: KeyUsageName -> KeyUsageName -> Bool
$c== :: KeyUsageName -> KeyUsageName -> Bool
Prelude.Eq,
Eq KeyUsageName
Eq KeyUsageName
-> (KeyUsageName -> KeyUsageName -> Ordering)
-> (KeyUsageName -> KeyUsageName -> Bool)
-> (KeyUsageName -> KeyUsageName -> Bool)
-> (KeyUsageName -> KeyUsageName -> Bool)
-> (KeyUsageName -> KeyUsageName -> Bool)
-> (KeyUsageName -> KeyUsageName -> KeyUsageName)
-> (KeyUsageName -> KeyUsageName -> KeyUsageName)
-> Ord KeyUsageName
KeyUsageName -> KeyUsageName -> Bool
KeyUsageName -> KeyUsageName -> Ordering
KeyUsageName -> KeyUsageName -> KeyUsageName
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 :: KeyUsageName -> KeyUsageName -> KeyUsageName
$cmin :: KeyUsageName -> KeyUsageName -> KeyUsageName
max :: KeyUsageName -> KeyUsageName -> KeyUsageName
$cmax :: KeyUsageName -> KeyUsageName -> KeyUsageName
>= :: KeyUsageName -> KeyUsageName -> Bool
$c>= :: KeyUsageName -> KeyUsageName -> Bool
> :: KeyUsageName -> KeyUsageName -> Bool
$c> :: KeyUsageName -> KeyUsageName -> Bool
<= :: KeyUsageName -> KeyUsageName -> Bool
$c<= :: KeyUsageName -> KeyUsageName -> Bool
< :: KeyUsageName -> KeyUsageName -> Bool
$c< :: KeyUsageName -> KeyUsageName -> Bool
compare :: KeyUsageName -> KeyUsageName -> Ordering
$ccompare :: KeyUsageName -> KeyUsageName -> Ordering
$cp1Ord :: Eq KeyUsageName
Prelude.Ord,
(forall x. KeyUsageName -> Rep KeyUsageName x)
-> (forall x. Rep KeyUsageName x -> KeyUsageName)
-> Generic KeyUsageName
forall x. Rep KeyUsageName x -> KeyUsageName
forall x. KeyUsageName -> Rep KeyUsageName x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep KeyUsageName x -> KeyUsageName
$cfrom :: forall x. KeyUsageName -> Rep KeyUsageName x
Prelude.Generic
)
deriving newtype
( Int -> KeyUsageName -> Int
KeyUsageName -> Int
(Int -> KeyUsageName -> Int)
-> (KeyUsageName -> Int) -> Hashable KeyUsageName
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: KeyUsageName -> Int
$chash :: KeyUsageName -> Int
hashWithSalt :: Int -> KeyUsageName -> Int
$chashWithSalt :: Int -> KeyUsageName -> Int
Prelude.Hashable,
KeyUsageName -> ()
(KeyUsageName -> ()) -> NFData KeyUsageName
forall a. (a -> ()) -> NFData a
rnf :: KeyUsageName -> ()
$crnf :: KeyUsageName -> ()
Prelude.NFData,
Text -> Either String KeyUsageName
(Text -> Either String KeyUsageName) -> FromText KeyUsageName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String KeyUsageName
$cfromText :: Text -> Either String KeyUsageName
Core.FromText,
KeyUsageName -> Text
(KeyUsageName -> Text) -> ToText KeyUsageName
forall a. (a -> Text) -> ToText a
toText :: KeyUsageName -> Text
$ctoText :: KeyUsageName -> Text
Core.ToText,
KeyUsageName -> ByteString
(KeyUsageName -> ByteString) -> ToByteString KeyUsageName
forall a. (a -> ByteString) -> ToByteString a
toBS :: KeyUsageName -> ByteString
$ctoBS :: KeyUsageName -> ByteString
Core.ToByteString,
KeyUsageName -> ByteStringBuilder
(KeyUsageName -> ByteStringBuilder) -> ToLog KeyUsageName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: KeyUsageName -> ByteStringBuilder
$cbuild :: KeyUsageName -> ByteStringBuilder
Core.ToLog,
HeaderName -> KeyUsageName -> [Header]
(HeaderName -> KeyUsageName -> [Header]) -> ToHeader KeyUsageName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> KeyUsageName -> [Header]
$ctoHeader :: HeaderName -> KeyUsageName -> [Header]
Core.ToHeader,
KeyUsageName -> QueryString
(KeyUsageName -> QueryString) -> ToQuery KeyUsageName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: KeyUsageName -> QueryString
$ctoQuery :: KeyUsageName -> QueryString
Core.ToQuery,
Value -> Parser [KeyUsageName]
Value -> Parser KeyUsageName
(Value -> Parser KeyUsageName)
-> (Value -> Parser [KeyUsageName]) -> FromJSON KeyUsageName
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [KeyUsageName]
$cparseJSONList :: Value -> Parser [KeyUsageName]
parseJSON :: Value -> Parser KeyUsageName
$cparseJSON :: Value -> Parser KeyUsageName
Core.FromJSON,
FromJSONKeyFunction [KeyUsageName]
FromJSONKeyFunction KeyUsageName
FromJSONKeyFunction KeyUsageName
-> FromJSONKeyFunction [KeyUsageName] -> FromJSONKey KeyUsageName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [KeyUsageName]
$cfromJSONKeyList :: FromJSONKeyFunction [KeyUsageName]
fromJSONKey :: FromJSONKeyFunction KeyUsageName
$cfromJSONKey :: FromJSONKeyFunction KeyUsageName
Core.FromJSONKey,
[KeyUsageName] -> Encoding
[KeyUsageName] -> Value
KeyUsageName -> Encoding
KeyUsageName -> Value
(KeyUsageName -> Value)
-> (KeyUsageName -> Encoding)
-> ([KeyUsageName] -> Value)
-> ([KeyUsageName] -> Encoding)
-> ToJSON KeyUsageName
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [KeyUsageName] -> Encoding
$ctoEncodingList :: [KeyUsageName] -> Encoding
toJSONList :: [KeyUsageName] -> Value
$ctoJSONList :: [KeyUsageName] -> Value
toEncoding :: KeyUsageName -> Encoding
$ctoEncoding :: KeyUsageName -> Encoding
toJSON :: KeyUsageName -> Value
$ctoJSON :: KeyUsageName -> Value
Core.ToJSON,
ToJSONKeyFunction [KeyUsageName]
ToJSONKeyFunction KeyUsageName
ToJSONKeyFunction KeyUsageName
-> ToJSONKeyFunction [KeyUsageName] -> ToJSONKey KeyUsageName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [KeyUsageName]
$ctoJSONKeyList :: ToJSONKeyFunction [KeyUsageName]
toJSONKey :: ToJSONKeyFunction KeyUsageName
$ctoJSONKey :: ToJSONKeyFunction KeyUsageName
Core.ToJSONKey,
[Node] -> Either String KeyUsageName
([Node] -> Either String KeyUsageName) -> FromXML KeyUsageName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String KeyUsageName
$cparseXML :: [Node] -> Either String KeyUsageName
Core.FromXML,
KeyUsageName -> XML
(KeyUsageName -> XML) -> ToXML KeyUsageName
forall a. (a -> XML) -> ToXML a
toXML :: KeyUsageName -> XML
$ctoXML :: KeyUsageName -> XML
Core.ToXML
)
pattern KeyUsageName_ANY :: KeyUsageName
pattern $bKeyUsageName_ANY :: KeyUsageName
$mKeyUsageName_ANY :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_ANY = KeyUsageName' "ANY"
pattern KeyUsageName_CERTIFICATE_SIGNING :: KeyUsageName
pattern $bKeyUsageName_CERTIFICATE_SIGNING :: KeyUsageName
$mKeyUsageName_CERTIFICATE_SIGNING :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_CERTIFICATE_SIGNING = KeyUsageName' "CERTIFICATE_SIGNING"
pattern KeyUsageName_CRL_SIGNING :: KeyUsageName
pattern $bKeyUsageName_CRL_SIGNING :: KeyUsageName
$mKeyUsageName_CRL_SIGNING :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_CRL_SIGNING = KeyUsageName' "CRL_SIGNING"
pattern KeyUsageName_CUSTOM :: KeyUsageName
pattern $bKeyUsageName_CUSTOM :: KeyUsageName
$mKeyUsageName_CUSTOM :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_CUSTOM = KeyUsageName' "CUSTOM"
pattern KeyUsageName_DATA_ENCIPHERMENT :: KeyUsageName
pattern $bKeyUsageName_DATA_ENCIPHERMENT :: KeyUsageName
$mKeyUsageName_DATA_ENCIPHERMENT :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_DATA_ENCIPHERMENT = KeyUsageName' "DATA_ENCIPHERMENT"
pattern KeyUsageName_DECIPHER_ONLY :: KeyUsageName
pattern $bKeyUsageName_DECIPHER_ONLY :: KeyUsageName
$mKeyUsageName_DECIPHER_ONLY :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_DECIPHER_ONLY = KeyUsageName' "DECIPHER_ONLY"
pattern KeyUsageName_DIGITAL_SIGNATURE :: KeyUsageName
pattern $bKeyUsageName_DIGITAL_SIGNATURE :: KeyUsageName
$mKeyUsageName_DIGITAL_SIGNATURE :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_DIGITAL_SIGNATURE = KeyUsageName' "DIGITAL_SIGNATURE"
pattern KeyUsageName_ENCIPHER_ONLY :: KeyUsageName
pattern $bKeyUsageName_ENCIPHER_ONLY :: KeyUsageName
$mKeyUsageName_ENCIPHER_ONLY :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_ENCIPHER_ONLY = KeyUsageName' "ENCIPHER_ONLY"
pattern KeyUsageName_KEY_AGREEMENT :: KeyUsageName
pattern $bKeyUsageName_KEY_AGREEMENT :: KeyUsageName
$mKeyUsageName_KEY_AGREEMENT :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_KEY_AGREEMENT = KeyUsageName' "KEY_AGREEMENT"
pattern KeyUsageName_KEY_ENCIPHERMENT :: KeyUsageName
pattern $bKeyUsageName_KEY_ENCIPHERMENT :: KeyUsageName
$mKeyUsageName_KEY_ENCIPHERMENT :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_KEY_ENCIPHERMENT = KeyUsageName' "KEY_ENCIPHERMENT"
pattern KeyUsageName_NON_REPUDIATION :: KeyUsageName
pattern $bKeyUsageName_NON_REPUDIATION :: KeyUsageName
$mKeyUsageName_NON_REPUDIATION :: forall r. KeyUsageName -> (Void# -> r) -> (Void# -> r) -> r
KeyUsageName_NON_REPUDIATION = KeyUsageName' "NON_REPUDIATION"
{-# COMPLETE
KeyUsageName_ANY,
KeyUsageName_CERTIFICATE_SIGNING,
KeyUsageName_CRL_SIGNING,
KeyUsageName_CUSTOM,
KeyUsageName_DATA_ENCIPHERMENT,
KeyUsageName_DECIPHER_ONLY,
KeyUsageName_DIGITAL_SIGNATURE,
KeyUsageName_ENCIPHER_ONLY,
KeyUsageName_KEY_AGREEMENT,
KeyUsageName_KEY_ENCIPHERMENT,
KeyUsageName_NON_REPUDIATION,
KeyUsageName'
#-}