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