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