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