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