{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.KMS.Verify
(
Verify (..),
newVerify,
verify_messageType,
verify_grantTokens,
verify_keyId,
verify_message,
verify_signature,
verify_signingAlgorithm,
VerifyResponse (..),
newVerifyResponse,
verifyResponse_signingAlgorithm,
verifyResponse_signatureValid,
verifyResponse_keyId,
verifyResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.KMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data Verify = Verify'
{
Verify -> Maybe MessageType
messageType :: Prelude.Maybe MessageType,
Verify -> Maybe [Text]
grantTokens :: Prelude.Maybe [Prelude.Text],
Verify -> Text
keyId :: Prelude.Text,
Verify -> Sensitive Base64
message :: Core.Sensitive Core.Base64,
Verify -> Base64
signature :: Core.Base64,
Verify -> SigningAlgorithmSpec
signingAlgorithm :: SigningAlgorithmSpec
}
deriving (Verify -> Verify -> Bool
(Verify -> Verify -> Bool)
-> (Verify -> Verify -> Bool) -> Eq Verify
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Verify -> Verify -> Bool
$c/= :: Verify -> Verify -> Bool
== :: Verify -> Verify -> Bool
$c== :: Verify -> Verify -> Bool
Prelude.Eq, Int -> Verify -> ShowS
[Verify] -> ShowS
Verify -> String
(Int -> Verify -> ShowS)
-> (Verify -> String) -> ([Verify] -> ShowS) -> Show Verify
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Verify] -> ShowS
$cshowList :: [Verify] -> ShowS
show :: Verify -> String
$cshow :: Verify -> String
showsPrec :: Int -> Verify -> ShowS
$cshowsPrec :: Int -> Verify -> ShowS
Prelude.Show, (forall x. Verify -> Rep Verify x)
-> (forall x. Rep Verify x -> Verify) -> Generic Verify
forall x. Rep Verify x -> Verify
forall x. Verify -> Rep Verify x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Verify x -> Verify
$cfrom :: forall x. Verify -> Rep Verify x
Prelude.Generic)
newVerify ::
Prelude.Text ->
Prelude.ByteString ->
Prelude.ByteString ->
SigningAlgorithmSpec ->
Verify
newVerify :: Text -> ByteString -> ByteString -> SigningAlgorithmSpec -> Verify
newVerify
Text
pKeyId_
ByteString
pMessage_
ByteString
pSignature_
SigningAlgorithmSpec
pSigningAlgorithm_ =
Verify' :: Maybe MessageType
-> Maybe [Text]
-> Text
-> Sensitive Base64
-> Base64
-> SigningAlgorithmSpec
-> Verify
Verify'
{ $sel:messageType:Verify' :: Maybe MessageType
messageType = Maybe MessageType
forall a. Maybe a
Prelude.Nothing,
$sel:grantTokens:Verify' :: Maybe [Text]
grantTokens = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:keyId:Verify' :: Text
keyId = Text
pKeyId_,
$sel:message:Verify' :: Sensitive Base64
message =
Tagged Base64 (Identity Base64)
-> Tagged (Sensitive Base64) (Identity (Sensitive Base64))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Base64 (Identity Base64)
-> Tagged (Sensitive Base64) (Identity (Sensitive Base64)))
-> (Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64))
-> Tagged ByteString (Identity ByteString)
-> Tagged (Sensitive Base64) (Identity (Sensitive Base64))
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64)
Iso' Base64 ByteString
Core._Base64
(Tagged ByteString (Identity ByteString)
-> Tagged (Sensitive Base64) (Identity (Sensitive Base64)))
-> ByteString -> Sensitive Base64
forall t b. AReview t b -> b -> t
Lens.# ByteString
pMessage_,
$sel:signature:Verify' :: Base64
signature = Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64)
Iso' Base64 ByteString
Core._Base64 (Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64))
-> ByteString -> Base64
forall t b. AReview t b -> b -> t
Lens.# ByteString
pSignature_,
$sel:signingAlgorithm:Verify' :: SigningAlgorithmSpec
signingAlgorithm = SigningAlgorithmSpec
pSigningAlgorithm_
}
verify_messageType :: Lens.Lens' Verify (Prelude.Maybe MessageType)
verify_messageType :: (Maybe MessageType -> f (Maybe MessageType)) -> Verify -> f Verify
verify_messageType = (Verify -> Maybe MessageType)
-> (Verify -> Maybe MessageType -> Verify)
-> Lens Verify Verify (Maybe MessageType) (Maybe MessageType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Verify' {Maybe MessageType
messageType :: Maybe MessageType
$sel:messageType:Verify' :: Verify -> Maybe MessageType
messageType} -> Maybe MessageType
messageType) (\s :: Verify
s@Verify' {} Maybe MessageType
a -> Verify
s {$sel:messageType:Verify' :: Maybe MessageType
messageType = Maybe MessageType
a} :: Verify)
verify_grantTokens :: Lens.Lens' Verify (Prelude.Maybe [Prelude.Text])
verify_grantTokens :: (Maybe [Text] -> f (Maybe [Text])) -> Verify -> f Verify
verify_grantTokens = (Verify -> Maybe [Text])
-> (Verify -> Maybe [Text] -> Verify)
-> Lens Verify Verify (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Verify' {Maybe [Text]
grantTokens :: Maybe [Text]
$sel:grantTokens:Verify' :: Verify -> Maybe [Text]
grantTokens} -> Maybe [Text]
grantTokens) (\s :: Verify
s@Verify' {} Maybe [Text]
a -> Verify
s {$sel:grantTokens:Verify' :: Maybe [Text]
grantTokens = Maybe [Text]
a} :: Verify) ((Maybe [Text] -> f (Maybe [Text])) -> Verify -> f Verify)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> Verify
-> f Verify
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
verify_keyId :: Lens.Lens' Verify Prelude.Text
verify_keyId :: (Text -> f Text) -> Verify -> f Verify
verify_keyId = (Verify -> Text)
-> (Verify -> Text -> Verify) -> Lens Verify Verify Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Verify' {Text
keyId :: Text
$sel:keyId:Verify' :: Verify -> Text
keyId} -> Text
keyId) (\s :: Verify
s@Verify' {} Text
a -> Verify
s {$sel:keyId:Verify' :: Text
keyId = Text
a} :: Verify)
verify_message :: Lens.Lens' Verify Prelude.ByteString
verify_message :: (ByteString -> f ByteString) -> Verify -> f Verify
verify_message = (Verify -> Sensitive Base64)
-> (Verify -> Sensitive Base64 -> Verify)
-> Lens Verify Verify (Sensitive Base64) (Sensitive Base64)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Verify' {Sensitive Base64
message :: Sensitive Base64
$sel:message:Verify' :: Verify -> Sensitive Base64
message} -> Sensitive Base64
message) (\s :: Verify
s@Verify' {} Sensitive Base64
a -> Verify
s {$sel:message:Verify' :: Sensitive Base64
message = Sensitive Base64
a} :: Verify) ((Sensitive Base64 -> f (Sensitive Base64)) -> Verify -> f Verify)
-> ((ByteString -> f ByteString)
-> Sensitive Base64 -> f (Sensitive Base64))
-> (ByteString -> f ByteString)
-> Verify
-> f Verify
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Base64 -> f Base64) -> Sensitive Base64 -> f (Sensitive Base64)
forall a. Iso' (Sensitive a) a
Core._Sensitive ((Base64 -> f Base64) -> Sensitive Base64 -> f (Sensitive Base64))
-> ((ByteString -> f ByteString) -> Base64 -> f Base64)
-> (ByteString -> f ByteString)
-> Sensitive Base64
-> f (Sensitive Base64)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (ByteString -> f ByteString) -> Base64 -> f Base64
Iso' Base64 ByteString
Core._Base64
verify_signature :: Lens.Lens' Verify Prelude.ByteString
verify_signature :: (ByteString -> f ByteString) -> Verify -> f Verify
verify_signature = (Verify -> Base64)
-> (Verify -> Base64 -> Verify) -> Lens Verify Verify Base64 Base64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Verify' {Base64
signature :: Base64
$sel:signature:Verify' :: Verify -> Base64
signature} -> Base64
signature) (\s :: Verify
s@Verify' {} Base64
a -> Verify
s {$sel:signature:Verify' :: Base64
signature = Base64
a} :: Verify) ((Base64 -> f Base64) -> Verify -> f Verify)
-> ((ByteString -> f ByteString) -> Base64 -> f Base64)
-> (ByteString -> f ByteString)
-> Verify
-> f Verify
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (ByteString -> f ByteString) -> Base64 -> f Base64
Iso' Base64 ByteString
Core._Base64
verify_signingAlgorithm :: Lens.Lens' Verify SigningAlgorithmSpec
verify_signingAlgorithm :: (SigningAlgorithmSpec -> f SigningAlgorithmSpec)
-> Verify -> f Verify
verify_signingAlgorithm = (Verify -> SigningAlgorithmSpec)
-> (Verify -> SigningAlgorithmSpec -> Verify)
-> Lens Verify Verify SigningAlgorithmSpec SigningAlgorithmSpec
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Verify' {SigningAlgorithmSpec
signingAlgorithm :: SigningAlgorithmSpec
$sel:signingAlgorithm:Verify' :: Verify -> SigningAlgorithmSpec
signingAlgorithm} -> SigningAlgorithmSpec
signingAlgorithm) (\s :: Verify
s@Verify' {} SigningAlgorithmSpec
a -> Verify
s {$sel:signingAlgorithm:Verify' :: SigningAlgorithmSpec
signingAlgorithm = SigningAlgorithmSpec
a} :: Verify)
instance Core.AWSRequest Verify where
type AWSResponse Verify = VerifyResponse
request :: Verify -> Request Verify
request = Service -> Verify -> Request Verify
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy Verify
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse Verify)))
response =
(Int
-> ResponseHeaders -> Object -> Either String (AWSResponse Verify))
-> Logger
-> Service
-> Proxy Verify
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse Verify)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe SigningAlgorithmSpec
-> Maybe Bool -> Maybe Text -> Int -> VerifyResponse
VerifyResponse'
(Maybe SigningAlgorithmSpec
-> Maybe Bool -> Maybe Text -> Int -> VerifyResponse)
-> Either String (Maybe SigningAlgorithmSpec)
-> Either
String (Maybe Bool -> Maybe Text -> Int -> VerifyResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe SigningAlgorithmSpec)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SigningAlgorithm")
Either String (Maybe Bool -> Maybe Text -> Int -> VerifyResponse)
-> Either String (Maybe Bool)
-> Either String (Maybe Text -> Int -> VerifyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SignatureValid")
Either String (Maybe Text -> Int -> VerifyResponse)
-> Either String (Maybe Text)
-> Either String (Int -> VerifyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"KeyId")
Either String (Int -> VerifyResponse)
-> Either String Int -> Either String VerifyResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable Verify
instance Prelude.NFData Verify
instance Core.ToHeaders Verify where
toHeaders :: Verify -> ResponseHeaders
toHeaders =
ResponseHeaders -> Verify -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"TrentService.Verify" :: Prelude.ByteString),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON Verify where
toJSON :: Verify -> Value
toJSON Verify' {Maybe [Text]
Maybe MessageType
Text
Base64
Sensitive Base64
SigningAlgorithmSpec
signingAlgorithm :: SigningAlgorithmSpec
signature :: Base64
message :: Sensitive Base64
keyId :: Text
grantTokens :: Maybe [Text]
messageType :: Maybe MessageType
$sel:signingAlgorithm:Verify' :: Verify -> SigningAlgorithmSpec
$sel:signature:Verify' :: Verify -> Base64
$sel:message:Verify' :: Verify -> Sensitive Base64
$sel:keyId:Verify' :: Verify -> Text
$sel:grantTokens:Verify' :: Verify -> Maybe [Text]
$sel:messageType:Verify' :: Verify -> Maybe MessageType
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"MessageType" Text -> MessageType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MessageType -> Pair) -> Maybe MessageType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MessageType
messageType,
(Text
"GrantTokens" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
grantTokens,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"KeyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
keyId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Message" Text -> Sensitive Base64 -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Base64
message),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Signature" Text -> Base64 -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Base64
signature),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"SigningAlgorithm" Text -> SigningAlgorithmSpec -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= SigningAlgorithmSpec
signingAlgorithm)
]
)
instance Core.ToPath Verify where
toPath :: Verify -> ByteString
toPath = ByteString -> Verify -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery Verify where
toQuery :: Verify -> QueryString
toQuery = QueryString -> Verify -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data VerifyResponse = VerifyResponse'
{
VerifyResponse -> Maybe SigningAlgorithmSpec
signingAlgorithm :: Prelude.Maybe SigningAlgorithmSpec,
VerifyResponse -> Maybe Bool
signatureValid :: Prelude.Maybe Prelude.Bool,
VerifyResponse -> Maybe Text
keyId :: Prelude.Maybe Prelude.Text,
VerifyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (VerifyResponse -> VerifyResponse -> Bool
(VerifyResponse -> VerifyResponse -> Bool)
-> (VerifyResponse -> VerifyResponse -> Bool) -> Eq VerifyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VerifyResponse -> VerifyResponse -> Bool
$c/= :: VerifyResponse -> VerifyResponse -> Bool
== :: VerifyResponse -> VerifyResponse -> Bool
$c== :: VerifyResponse -> VerifyResponse -> Bool
Prelude.Eq, ReadPrec [VerifyResponse]
ReadPrec VerifyResponse
Int -> ReadS VerifyResponse
ReadS [VerifyResponse]
(Int -> ReadS VerifyResponse)
-> ReadS [VerifyResponse]
-> ReadPrec VerifyResponse
-> ReadPrec [VerifyResponse]
-> Read VerifyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VerifyResponse]
$creadListPrec :: ReadPrec [VerifyResponse]
readPrec :: ReadPrec VerifyResponse
$creadPrec :: ReadPrec VerifyResponse
readList :: ReadS [VerifyResponse]
$creadList :: ReadS [VerifyResponse]
readsPrec :: Int -> ReadS VerifyResponse
$creadsPrec :: Int -> ReadS VerifyResponse
Prelude.Read, Int -> VerifyResponse -> ShowS
[VerifyResponse] -> ShowS
VerifyResponse -> String
(Int -> VerifyResponse -> ShowS)
-> (VerifyResponse -> String)
-> ([VerifyResponse] -> ShowS)
-> Show VerifyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VerifyResponse] -> ShowS
$cshowList :: [VerifyResponse] -> ShowS
show :: VerifyResponse -> String
$cshow :: VerifyResponse -> String
showsPrec :: Int -> VerifyResponse -> ShowS
$cshowsPrec :: Int -> VerifyResponse -> ShowS
Prelude.Show, (forall x. VerifyResponse -> Rep VerifyResponse x)
-> (forall x. Rep VerifyResponse x -> VerifyResponse)
-> Generic VerifyResponse
forall x. Rep VerifyResponse x -> VerifyResponse
forall x. VerifyResponse -> Rep VerifyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VerifyResponse x -> VerifyResponse
$cfrom :: forall x. VerifyResponse -> Rep VerifyResponse x
Prelude.Generic)
newVerifyResponse ::
Prelude.Int ->
VerifyResponse
newVerifyResponse :: Int -> VerifyResponse
newVerifyResponse Int
pHttpStatus_ =
VerifyResponse' :: Maybe SigningAlgorithmSpec
-> Maybe Bool -> Maybe Text -> Int -> VerifyResponse
VerifyResponse'
{ $sel:signingAlgorithm:VerifyResponse' :: Maybe SigningAlgorithmSpec
signingAlgorithm = Maybe SigningAlgorithmSpec
forall a. Maybe a
Prelude.Nothing,
$sel:signatureValid:VerifyResponse' :: Maybe Bool
signatureValid = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:keyId:VerifyResponse' :: Maybe Text
keyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:VerifyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
verifyResponse_signingAlgorithm :: Lens.Lens' VerifyResponse (Prelude.Maybe SigningAlgorithmSpec)
verifyResponse_signingAlgorithm :: (Maybe SigningAlgorithmSpec -> f (Maybe SigningAlgorithmSpec))
-> VerifyResponse -> f VerifyResponse
verifyResponse_signingAlgorithm = (VerifyResponse -> Maybe SigningAlgorithmSpec)
-> (VerifyResponse -> Maybe SigningAlgorithmSpec -> VerifyResponse)
-> Lens
VerifyResponse
VerifyResponse
(Maybe SigningAlgorithmSpec)
(Maybe SigningAlgorithmSpec)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyResponse' {Maybe SigningAlgorithmSpec
signingAlgorithm :: Maybe SigningAlgorithmSpec
$sel:signingAlgorithm:VerifyResponse' :: VerifyResponse -> Maybe SigningAlgorithmSpec
signingAlgorithm} -> Maybe SigningAlgorithmSpec
signingAlgorithm) (\s :: VerifyResponse
s@VerifyResponse' {} Maybe SigningAlgorithmSpec
a -> VerifyResponse
s {$sel:signingAlgorithm:VerifyResponse' :: Maybe SigningAlgorithmSpec
signingAlgorithm = Maybe SigningAlgorithmSpec
a} :: VerifyResponse)
verifyResponse_signatureValid :: Lens.Lens' VerifyResponse (Prelude.Maybe Prelude.Bool)
verifyResponse_signatureValid :: (Maybe Bool -> f (Maybe Bool))
-> VerifyResponse -> f VerifyResponse
verifyResponse_signatureValid = (VerifyResponse -> Maybe Bool)
-> (VerifyResponse -> Maybe Bool -> VerifyResponse)
-> Lens VerifyResponse VerifyResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyResponse' {Maybe Bool
signatureValid :: Maybe Bool
$sel:signatureValid:VerifyResponse' :: VerifyResponse -> Maybe Bool
signatureValid} -> Maybe Bool
signatureValid) (\s :: VerifyResponse
s@VerifyResponse' {} Maybe Bool
a -> VerifyResponse
s {$sel:signatureValid:VerifyResponse' :: Maybe Bool
signatureValid = Maybe Bool
a} :: VerifyResponse)
verifyResponse_keyId :: Lens.Lens' VerifyResponse (Prelude.Maybe Prelude.Text)
verifyResponse_keyId :: (Maybe Text -> f (Maybe Text))
-> VerifyResponse -> f VerifyResponse
verifyResponse_keyId = (VerifyResponse -> Maybe Text)
-> (VerifyResponse -> Maybe Text -> VerifyResponse)
-> Lens VerifyResponse VerifyResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyResponse' {Maybe Text
keyId :: Maybe Text
$sel:keyId:VerifyResponse' :: VerifyResponse -> Maybe Text
keyId} -> Maybe Text
keyId) (\s :: VerifyResponse
s@VerifyResponse' {} Maybe Text
a -> VerifyResponse
s {$sel:keyId:VerifyResponse' :: Maybe Text
keyId = Maybe Text
a} :: VerifyResponse)
verifyResponse_httpStatus :: Lens.Lens' VerifyResponse Prelude.Int
verifyResponse_httpStatus :: (Int -> f Int) -> VerifyResponse -> f VerifyResponse
verifyResponse_httpStatus = (VerifyResponse -> Int)
-> (VerifyResponse -> Int -> VerifyResponse)
-> Lens VerifyResponse VerifyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyResponse' {Int
httpStatus :: Int
$sel:httpStatus:VerifyResponse' :: VerifyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: VerifyResponse
s@VerifyResponse' {} Int
a -> VerifyResponse
s {$sel:httpStatus:VerifyResponse' :: Int
httpStatus = Int
a} :: VerifyResponse)
instance Prelude.NFData VerifyResponse