{-# 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.VerifyMac
(
VerifyMac (..),
newVerifyMac,
verifyMac_grantTokens,
verifyMac_message,
verifyMac_keyId,
verifyMac_macAlgorithm,
verifyMac_mac,
VerifyMacResponse (..),
newVerifyMacResponse,
verifyMacResponse_keyId,
verifyMacResponse_macAlgorithm,
verifyMacResponse_macValid,
verifyMacResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.KMS.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data VerifyMac = VerifyMac'
{
VerifyMac -> Maybe [Text]
grantTokens :: Prelude.Maybe [Prelude.Text],
VerifyMac -> Sensitive Base64
message :: Data.Sensitive Data.Base64,
VerifyMac -> Text
keyId :: Prelude.Text,
VerifyMac -> MacAlgorithmSpec
macAlgorithm :: MacAlgorithmSpec,
VerifyMac -> Base64
mac :: Data.Base64
}
deriving (VerifyMac -> VerifyMac -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VerifyMac -> VerifyMac -> Bool
$c/= :: VerifyMac -> VerifyMac -> Bool
== :: VerifyMac -> VerifyMac -> Bool
$c== :: VerifyMac -> VerifyMac -> Bool
Prelude.Eq, Int -> VerifyMac -> ShowS
[VerifyMac] -> ShowS
VerifyMac -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VerifyMac] -> ShowS
$cshowList :: [VerifyMac] -> ShowS
show :: VerifyMac -> String
$cshow :: VerifyMac -> String
showsPrec :: Int -> VerifyMac -> ShowS
$cshowsPrec :: Int -> VerifyMac -> ShowS
Prelude.Show, forall x. Rep VerifyMac x -> VerifyMac
forall x. VerifyMac -> Rep VerifyMac x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VerifyMac x -> VerifyMac
$cfrom :: forall x. VerifyMac -> Rep VerifyMac x
Prelude.Generic)
newVerifyMac ::
Prelude.ByteString ->
Prelude.Text ->
MacAlgorithmSpec ->
Prelude.ByteString ->
VerifyMac
newVerifyMac :: ByteString -> Text -> MacAlgorithmSpec -> ByteString -> VerifyMac
newVerifyMac ByteString
pMessage_ Text
pKeyId_ MacAlgorithmSpec
pMacAlgorithm_ ByteString
pMac_ =
VerifyMac'
{ $sel:grantTokens:VerifyMac' :: Maybe [Text]
grantTokens = forall a. Maybe a
Prelude.Nothing,
$sel:message:VerifyMac' :: Sensitive Base64
message =
forall a. Iso' (Sensitive a) a
Data._Sensitive
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Iso' Base64 ByteString
Data._Base64
forall t b. AReview t b -> b -> t
Lens.# ByteString
pMessage_,
$sel:keyId:VerifyMac' :: Text
keyId = Text
pKeyId_,
$sel:macAlgorithm:VerifyMac' :: MacAlgorithmSpec
macAlgorithm = MacAlgorithmSpec
pMacAlgorithm_,
$sel:mac:VerifyMac' :: Base64
mac = Iso' Base64 ByteString
Data._Base64 forall t b. AReview t b -> b -> t
Lens.# ByteString
pMac_
}
verifyMac_grantTokens :: Lens.Lens' VerifyMac (Prelude.Maybe [Prelude.Text])
verifyMac_grantTokens :: Lens' VerifyMac (Maybe [Text])
verifyMac_grantTokens = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMac' {Maybe [Text]
grantTokens :: Maybe [Text]
$sel:grantTokens:VerifyMac' :: VerifyMac -> Maybe [Text]
grantTokens} -> Maybe [Text]
grantTokens) (\s :: VerifyMac
s@VerifyMac' {} Maybe [Text]
a -> VerifyMac
s {$sel:grantTokens:VerifyMac' :: Maybe [Text]
grantTokens = Maybe [Text]
a} :: VerifyMac) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
verifyMac_message :: Lens.Lens' VerifyMac Prelude.ByteString
verifyMac_message :: Lens' VerifyMac ByteString
verifyMac_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMac' {Sensitive Base64
message :: Sensitive Base64
$sel:message:VerifyMac' :: VerifyMac -> Sensitive Base64
message} -> Sensitive Base64
message) (\s :: VerifyMac
s@VerifyMac' {} Sensitive Base64
a -> VerifyMac
s {$sel:message:VerifyMac' :: Sensitive Base64
message = Sensitive Base64
a} :: VerifyMac) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Iso' Base64 ByteString
Data._Base64
verifyMac_keyId :: Lens.Lens' VerifyMac Prelude.Text
verifyMac_keyId :: Lens' VerifyMac Text
verifyMac_keyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMac' {Text
keyId :: Text
$sel:keyId:VerifyMac' :: VerifyMac -> Text
keyId} -> Text
keyId) (\s :: VerifyMac
s@VerifyMac' {} Text
a -> VerifyMac
s {$sel:keyId:VerifyMac' :: Text
keyId = Text
a} :: VerifyMac)
verifyMac_macAlgorithm :: Lens.Lens' VerifyMac MacAlgorithmSpec
verifyMac_macAlgorithm :: Lens' VerifyMac MacAlgorithmSpec
verifyMac_macAlgorithm = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMac' {MacAlgorithmSpec
macAlgorithm :: MacAlgorithmSpec
$sel:macAlgorithm:VerifyMac' :: VerifyMac -> MacAlgorithmSpec
macAlgorithm} -> MacAlgorithmSpec
macAlgorithm) (\s :: VerifyMac
s@VerifyMac' {} MacAlgorithmSpec
a -> VerifyMac
s {$sel:macAlgorithm:VerifyMac' :: MacAlgorithmSpec
macAlgorithm = MacAlgorithmSpec
a} :: VerifyMac)
verifyMac_mac :: Lens.Lens' VerifyMac Prelude.ByteString
verifyMac_mac :: Lens' VerifyMac ByteString
verifyMac_mac = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMac' {Base64
mac :: Base64
$sel:mac:VerifyMac' :: VerifyMac -> Base64
mac} -> Base64
mac) (\s :: VerifyMac
s@VerifyMac' {} Base64
a -> VerifyMac
s {$sel:mac:VerifyMac' :: Base64
mac = Base64
a} :: VerifyMac) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Iso' Base64 ByteString
Data._Base64
instance Core.AWSRequest VerifyMac where
type AWSResponse VerifyMac = VerifyMacResponse
request :: (Service -> Service) -> VerifyMac -> Request VerifyMac
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy VerifyMac
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse VerifyMac)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe MacAlgorithmSpec -> Maybe Bool -> Int -> VerifyMacResponse
VerifyMacResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"KeyId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MacAlgorithm")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MacValid")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable VerifyMac where
hashWithSalt :: Int -> VerifyMac -> Int
hashWithSalt Int
_salt VerifyMac' {Maybe [Text]
Text
Base64
Sensitive Base64
MacAlgorithmSpec
mac :: Base64
macAlgorithm :: MacAlgorithmSpec
keyId :: Text
message :: Sensitive Base64
grantTokens :: Maybe [Text]
$sel:mac:VerifyMac' :: VerifyMac -> Base64
$sel:macAlgorithm:VerifyMac' :: VerifyMac -> MacAlgorithmSpec
$sel:keyId:VerifyMac' :: VerifyMac -> Text
$sel:message:VerifyMac' :: VerifyMac -> Sensitive Base64
$sel:grantTokens:VerifyMac' :: VerifyMac -> Maybe [Text]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
grantTokens
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive Base64
message
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
keyId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` MacAlgorithmSpec
macAlgorithm
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Base64
mac
instance Prelude.NFData VerifyMac where
rnf :: VerifyMac -> ()
rnf VerifyMac' {Maybe [Text]
Text
Base64
Sensitive Base64
MacAlgorithmSpec
mac :: Base64
macAlgorithm :: MacAlgorithmSpec
keyId :: Text
message :: Sensitive Base64
grantTokens :: Maybe [Text]
$sel:mac:VerifyMac' :: VerifyMac -> Base64
$sel:macAlgorithm:VerifyMac' :: VerifyMac -> MacAlgorithmSpec
$sel:keyId:VerifyMac' :: VerifyMac -> Text
$sel:message:VerifyMac' :: VerifyMac -> Sensitive Base64
$sel:grantTokens:VerifyMac' :: VerifyMac -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
grantTokens
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive Base64
message
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
keyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf MacAlgorithmSpec
macAlgorithm
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Base64
mac
instance Data.ToHeaders VerifyMac where
toHeaders :: VerifyMac -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# (ByteString
"TrentService.VerifyMac" :: Prelude.ByteString),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON VerifyMac where
toJSON :: VerifyMac -> Value
toJSON VerifyMac' {Maybe [Text]
Text
Base64
Sensitive Base64
MacAlgorithmSpec
mac :: Base64
macAlgorithm :: MacAlgorithmSpec
keyId :: Text
message :: Sensitive Base64
grantTokens :: Maybe [Text]
$sel:mac:VerifyMac' :: VerifyMac -> Base64
$sel:macAlgorithm:VerifyMac' :: VerifyMac -> MacAlgorithmSpec
$sel:keyId:VerifyMac' :: VerifyMac -> Text
$sel:message:VerifyMac' :: VerifyMac -> Sensitive Base64
$sel:grantTokens:VerifyMac' :: VerifyMac -> Maybe [Text]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"GrantTokens" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
grantTokens,
forall a. a -> Maybe a
Prelude.Just (Key
"Message" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Sensitive Base64
message),
forall a. a -> Maybe a
Prelude.Just (Key
"KeyId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
keyId),
forall a. a -> Maybe a
Prelude.Just (Key
"MacAlgorithm" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= MacAlgorithmSpec
macAlgorithm),
forall a. a -> Maybe a
Prelude.Just (Key
"Mac" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Base64
mac)
]
)
instance Data.ToPath VerifyMac where
toPath :: VerifyMac -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery VerifyMac where
toQuery :: VerifyMac -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data VerifyMacResponse = VerifyMacResponse'
{
VerifyMacResponse -> Maybe Text
keyId :: Prelude.Maybe Prelude.Text,
VerifyMacResponse -> Maybe MacAlgorithmSpec
macAlgorithm :: Prelude.Maybe MacAlgorithmSpec,
VerifyMacResponse -> Maybe Bool
macValid :: Prelude.Maybe Prelude.Bool,
VerifyMacResponse -> Int
httpStatus :: Prelude.Int
}
deriving (VerifyMacResponse -> VerifyMacResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VerifyMacResponse -> VerifyMacResponse -> Bool
$c/= :: VerifyMacResponse -> VerifyMacResponse -> Bool
== :: VerifyMacResponse -> VerifyMacResponse -> Bool
$c== :: VerifyMacResponse -> VerifyMacResponse -> Bool
Prelude.Eq, ReadPrec [VerifyMacResponse]
ReadPrec VerifyMacResponse
Int -> ReadS VerifyMacResponse
ReadS [VerifyMacResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VerifyMacResponse]
$creadListPrec :: ReadPrec [VerifyMacResponse]
readPrec :: ReadPrec VerifyMacResponse
$creadPrec :: ReadPrec VerifyMacResponse
readList :: ReadS [VerifyMacResponse]
$creadList :: ReadS [VerifyMacResponse]
readsPrec :: Int -> ReadS VerifyMacResponse
$creadsPrec :: Int -> ReadS VerifyMacResponse
Prelude.Read, Int -> VerifyMacResponse -> ShowS
[VerifyMacResponse] -> ShowS
VerifyMacResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VerifyMacResponse] -> ShowS
$cshowList :: [VerifyMacResponse] -> ShowS
show :: VerifyMacResponse -> String
$cshow :: VerifyMacResponse -> String
showsPrec :: Int -> VerifyMacResponse -> ShowS
$cshowsPrec :: Int -> VerifyMacResponse -> ShowS
Prelude.Show, forall x. Rep VerifyMacResponse x -> VerifyMacResponse
forall x. VerifyMacResponse -> Rep VerifyMacResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VerifyMacResponse x -> VerifyMacResponse
$cfrom :: forall x. VerifyMacResponse -> Rep VerifyMacResponse x
Prelude.Generic)
newVerifyMacResponse ::
Prelude.Int ->
VerifyMacResponse
newVerifyMacResponse :: Int -> VerifyMacResponse
newVerifyMacResponse Int
pHttpStatus_ =
VerifyMacResponse'
{ $sel:keyId:VerifyMacResponse' :: Maybe Text
keyId = forall a. Maybe a
Prelude.Nothing,
$sel:macAlgorithm:VerifyMacResponse' :: Maybe MacAlgorithmSpec
macAlgorithm = forall a. Maybe a
Prelude.Nothing,
$sel:macValid:VerifyMacResponse' :: Maybe Bool
macValid = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:VerifyMacResponse' :: Int
httpStatus = Int
pHttpStatus_
}
verifyMacResponse_keyId :: Lens.Lens' VerifyMacResponse (Prelude.Maybe Prelude.Text)
verifyMacResponse_keyId :: Lens' VerifyMacResponse (Maybe Text)
verifyMacResponse_keyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMacResponse' {Maybe Text
keyId :: Maybe Text
$sel:keyId:VerifyMacResponse' :: VerifyMacResponse -> Maybe Text
keyId} -> Maybe Text
keyId) (\s :: VerifyMacResponse
s@VerifyMacResponse' {} Maybe Text
a -> VerifyMacResponse
s {$sel:keyId:VerifyMacResponse' :: Maybe Text
keyId = Maybe Text
a} :: VerifyMacResponse)
verifyMacResponse_macAlgorithm :: Lens.Lens' VerifyMacResponse (Prelude.Maybe MacAlgorithmSpec)
verifyMacResponse_macAlgorithm :: Lens' VerifyMacResponse (Maybe MacAlgorithmSpec)
verifyMacResponse_macAlgorithm = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMacResponse' {Maybe MacAlgorithmSpec
macAlgorithm :: Maybe MacAlgorithmSpec
$sel:macAlgorithm:VerifyMacResponse' :: VerifyMacResponse -> Maybe MacAlgorithmSpec
macAlgorithm} -> Maybe MacAlgorithmSpec
macAlgorithm) (\s :: VerifyMacResponse
s@VerifyMacResponse' {} Maybe MacAlgorithmSpec
a -> VerifyMacResponse
s {$sel:macAlgorithm:VerifyMacResponse' :: Maybe MacAlgorithmSpec
macAlgorithm = Maybe MacAlgorithmSpec
a} :: VerifyMacResponse)
verifyMacResponse_macValid :: Lens.Lens' VerifyMacResponse (Prelude.Maybe Prelude.Bool)
verifyMacResponse_macValid :: Lens' VerifyMacResponse (Maybe Bool)
verifyMacResponse_macValid = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMacResponse' {Maybe Bool
macValid :: Maybe Bool
$sel:macValid:VerifyMacResponse' :: VerifyMacResponse -> Maybe Bool
macValid} -> Maybe Bool
macValid) (\s :: VerifyMacResponse
s@VerifyMacResponse' {} Maybe Bool
a -> VerifyMacResponse
s {$sel:macValid:VerifyMacResponse' :: Maybe Bool
macValid = Maybe Bool
a} :: VerifyMacResponse)
verifyMacResponse_httpStatus :: Lens.Lens' VerifyMacResponse Prelude.Int
verifyMacResponse_httpStatus :: Lens' VerifyMacResponse Int
verifyMacResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyMacResponse' {Int
httpStatus :: Int
$sel:httpStatus:VerifyMacResponse' :: VerifyMacResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: VerifyMacResponse
s@VerifyMacResponse' {} Int
a -> VerifyMacResponse
s {$sel:httpStatus:VerifyMacResponse' :: Int
httpStatus = Int
a} :: VerifyMacResponse)
instance Prelude.NFData VerifyMacResponse where
rnf :: VerifyMacResponse -> ()
rnf VerifyMacResponse' {Int
Maybe Bool
Maybe Text
Maybe MacAlgorithmSpec
httpStatus :: Int
macValid :: Maybe Bool
macAlgorithm :: Maybe MacAlgorithmSpec
keyId :: Maybe Text
$sel:httpStatus:VerifyMacResponse' :: VerifyMacResponse -> Int
$sel:macValid:VerifyMacResponse' :: VerifyMacResponse -> Maybe Bool
$sel:macAlgorithm:VerifyMacResponse' :: VerifyMacResponse -> Maybe MacAlgorithmSpec
$sel:keyId:VerifyMacResponse' :: VerifyMacResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
keyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MacAlgorithmSpec
macAlgorithm
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
macValid
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus