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