{-# 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.AuditManager.ValidateAssessmentReportIntegrity
(
ValidateAssessmentReportIntegrity (..),
newValidateAssessmentReportIntegrity,
validateAssessmentReportIntegrity_s3RelativePath,
ValidateAssessmentReportIntegrityResponse (..),
newValidateAssessmentReportIntegrityResponse,
validateAssessmentReportIntegrityResponse_signatureValid,
validateAssessmentReportIntegrityResponse_validationErrors,
validateAssessmentReportIntegrityResponse_signatureDateTime,
validateAssessmentReportIntegrityResponse_signatureAlgorithm,
validateAssessmentReportIntegrityResponse_signatureKeyId,
validateAssessmentReportIntegrityResponse_httpStatus,
)
where
import Amazonka.AuditManager.Types
import qualified Amazonka.Core as Core
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 ValidateAssessmentReportIntegrity = ValidateAssessmentReportIntegrity'
{
ValidateAssessmentReportIntegrity -> Text
s3RelativePath :: Prelude.Text
}
deriving (ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool
(ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool)
-> (ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool)
-> Eq ValidateAssessmentReportIntegrity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool
$c/= :: ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool
== :: ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool
$c== :: ValidateAssessmentReportIntegrity
-> ValidateAssessmentReportIntegrity -> Bool
Prelude.Eq, ReadPrec [ValidateAssessmentReportIntegrity]
ReadPrec ValidateAssessmentReportIntegrity
Int -> ReadS ValidateAssessmentReportIntegrity
ReadS [ValidateAssessmentReportIntegrity]
(Int -> ReadS ValidateAssessmentReportIntegrity)
-> ReadS [ValidateAssessmentReportIntegrity]
-> ReadPrec ValidateAssessmentReportIntegrity
-> ReadPrec [ValidateAssessmentReportIntegrity]
-> Read ValidateAssessmentReportIntegrity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ValidateAssessmentReportIntegrity]
$creadListPrec :: ReadPrec [ValidateAssessmentReportIntegrity]
readPrec :: ReadPrec ValidateAssessmentReportIntegrity
$creadPrec :: ReadPrec ValidateAssessmentReportIntegrity
readList :: ReadS [ValidateAssessmentReportIntegrity]
$creadList :: ReadS [ValidateAssessmentReportIntegrity]
readsPrec :: Int -> ReadS ValidateAssessmentReportIntegrity
$creadsPrec :: Int -> ReadS ValidateAssessmentReportIntegrity
Prelude.Read, Int -> ValidateAssessmentReportIntegrity -> ShowS
[ValidateAssessmentReportIntegrity] -> ShowS
ValidateAssessmentReportIntegrity -> String
(Int -> ValidateAssessmentReportIntegrity -> ShowS)
-> (ValidateAssessmentReportIntegrity -> String)
-> ([ValidateAssessmentReportIntegrity] -> ShowS)
-> Show ValidateAssessmentReportIntegrity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ValidateAssessmentReportIntegrity] -> ShowS
$cshowList :: [ValidateAssessmentReportIntegrity] -> ShowS
show :: ValidateAssessmentReportIntegrity -> String
$cshow :: ValidateAssessmentReportIntegrity -> String
showsPrec :: Int -> ValidateAssessmentReportIntegrity -> ShowS
$cshowsPrec :: Int -> ValidateAssessmentReportIntegrity -> ShowS
Prelude.Show, (forall x.
ValidateAssessmentReportIntegrity
-> Rep ValidateAssessmentReportIntegrity x)
-> (forall x.
Rep ValidateAssessmentReportIntegrity x
-> ValidateAssessmentReportIntegrity)
-> Generic ValidateAssessmentReportIntegrity
forall x.
Rep ValidateAssessmentReportIntegrity x
-> ValidateAssessmentReportIntegrity
forall x.
ValidateAssessmentReportIntegrity
-> Rep ValidateAssessmentReportIntegrity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ValidateAssessmentReportIntegrity x
-> ValidateAssessmentReportIntegrity
$cfrom :: forall x.
ValidateAssessmentReportIntegrity
-> Rep ValidateAssessmentReportIntegrity x
Prelude.Generic)
newValidateAssessmentReportIntegrity ::
Prelude.Text ->
ValidateAssessmentReportIntegrity
newValidateAssessmentReportIntegrity :: Text -> ValidateAssessmentReportIntegrity
newValidateAssessmentReportIntegrity Text
pS3RelativePath_ =
ValidateAssessmentReportIntegrity' :: Text -> ValidateAssessmentReportIntegrity
ValidateAssessmentReportIntegrity'
{ $sel:s3RelativePath:ValidateAssessmentReportIntegrity' :: Text
s3RelativePath =
Text
pS3RelativePath_
}
validateAssessmentReportIntegrity_s3RelativePath :: Lens.Lens' ValidateAssessmentReportIntegrity Prelude.Text
validateAssessmentReportIntegrity_s3RelativePath :: (Text -> f Text)
-> ValidateAssessmentReportIntegrity
-> f ValidateAssessmentReportIntegrity
validateAssessmentReportIntegrity_s3RelativePath = (ValidateAssessmentReportIntegrity -> Text)
-> (ValidateAssessmentReportIntegrity
-> Text -> ValidateAssessmentReportIntegrity)
-> Lens
ValidateAssessmentReportIntegrity
ValidateAssessmentReportIntegrity
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrity' {Text
s3RelativePath :: Text
$sel:s3RelativePath:ValidateAssessmentReportIntegrity' :: ValidateAssessmentReportIntegrity -> Text
s3RelativePath} -> Text
s3RelativePath) (\s :: ValidateAssessmentReportIntegrity
s@ValidateAssessmentReportIntegrity' {} Text
a -> ValidateAssessmentReportIntegrity
s {$sel:s3RelativePath:ValidateAssessmentReportIntegrity' :: Text
s3RelativePath = Text
a} :: ValidateAssessmentReportIntegrity)
instance
Core.AWSRequest
ValidateAssessmentReportIntegrity
where
type
AWSResponse ValidateAssessmentReportIntegrity =
ValidateAssessmentReportIntegrityResponse
request :: ValidateAssessmentReportIntegrity
-> Request ValidateAssessmentReportIntegrity
request = Service
-> ValidateAssessmentReportIntegrity
-> Request ValidateAssessmentReportIntegrity
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ValidateAssessmentReportIntegrity
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ValidateAssessmentReportIntegrity)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ValidateAssessmentReportIntegrity))
-> Logger
-> Service
-> Proxy ValidateAssessmentReportIntegrity
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ValidateAssessmentReportIntegrity)))
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 Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse'
(Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse)
forall (f :: * -> *) a b. Functor 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]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"validationErrors"
Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Int -> ValidateAssessmentReportIntegrityResponse)
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
"signatureDateTime")
Either
String
(Maybe Text
-> Maybe Text -> Int -> ValidateAssessmentReportIntegrityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Int -> ValidateAssessmentReportIntegrityResponse)
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
"signatureAlgorithm")
Either
String
(Maybe Text -> Int -> ValidateAssessmentReportIntegrityResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ValidateAssessmentReportIntegrityResponse)
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
"signatureKeyId")
Either String (Int -> ValidateAssessmentReportIntegrityResponse)
-> Either String Int
-> Either String ValidateAssessmentReportIntegrityResponse
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
ValidateAssessmentReportIntegrity
instance
Prelude.NFData
ValidateAssessmentReportIntegrity
instance
Core.ToHeaders
ValidateAssessmentReportIntegrity
where
toHeaders :: ValidateAssessmentReportIntegrity -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ValidateAssessmentReportIntegrity -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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
ValidateAssessmentReportIntegrity
where
toJSON :: ValidateAssessmentReportIntegrity -> Value
toJSON ValidateAssessmentReportIntegrity' {Text
s3RelativePath :: Text
$sel:s3RelativePath:ValidateAssessmentReportIntegrity' :: ValidateAssessmentReportIntegrity -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"s3RelativePath" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
s3RelativePath)
]
)
instance
Core.ToPath
ValidateAssessmentReportIntegrity
where
toPath :: ValidateAssessmentReportIntegrity -> ByteString
toPath = ByteString -> ValidateAssessmentReportIntegrity -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/assessmentReports/integrity"
instance
Core.ToQuery
ValidateAssessmentReportIntegrity
where
toQuery :: ValidateAssessmentReportIntegrity -> QueryString
toQuery = QueryString -> ValidateAssessmentReportIntegrity -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ValidateAssessmentReportIntegrityResponse = ValidateAssessmentReportIntegrityResponse'
{
ValidateAssessmentReportIntegrityResponse -> Maybe Bool
signatureValid :: Prelude.Maybe Prelude.Bool,
ValidateAssessmentReportIntegrityResponse -> Maybe [Text]
validationErrors :: Prelude.Maybe [Prelude.Text],
ValidateAssessmentReportIntegrityResponse -> Maybe Text
signatureDateTime :: Prelude.Maybe Prelude.Text,
ValidateAssessmentReportIntegrityResponse -> Maybe Text
signatureAlgorithm :: Prelude.Maybe Prelude.Text,
ValidateAssessmentReportIntegrityResponse -> Maybe Text
signatureKeyId :: Prelude.Maybe Prelude.Text,
ValidateAssessmentReportIntegrityResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool
(ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool)
-> (ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool)
-> Eq ValidateAssessmentReportIntegrityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool
$c/= :: ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool
== :: ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool
$c== :: ValidateAssessmentReportIntegrityResponse
-> ValidateAssessmentReportIntegrityResponse -> Bool
Prelude.Eq, ReadPrec [ValidateAssessmentReportIntegrityResponse]
ReadPrec ValidateAssessmentReportIntegrityResponse
Int -> ReadS ValidateAssessmentReportIntegrityResponse
ReadS [ValidateAssessmentReportIntegrityResponse]
(Int -> ReadS ValidateAssessmentReportIntegrityResponse)
-> ReadS [ValidateAssessmentReportIntegrityResponse]
-> ReadPrec ValidateAssessmentReportIntegrityResponse
-> ReadPrec [ValidateAssessmentReportIntegrityResponse]
-> Read ValidateAssessmentReportIntegrityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ValidateAssessmentReportIntegrityResponse]
$creadListPrec :: ReadPrec [ValidateAssessmentReportIntegrityResponse]
readPrec :: ReadPrec ValidateAssessmentReportIntegrityResponse
$creadPrec :: ReadPrec ValidateAssessmentReportIntegrityResponse
readList :: ReadS [ValidateAssessmentReportIntegrityResponse]
$creadList :: ReadS [ValidateAssessmentReportIntegrityResponse]
readsPrec :: Int -> ReadS ValidateAssessmentReportIntegrityResponse
$creadsPrec :: Int -> ReadS ValidateAssessmentReportIntegrityResponse
Prelude.Read, Int -> ValidateAssessmentReportIntegrityResponse -> ShowS
[ValidateAssessmentReportIntegrityResponse] -> ShowS
ValidateAssessmentReportIntegrityResponse -> String
(Int -> ValidateAssessmentReportIntegrityResponse -> ShowS)
-> (ValidateAssessmentReportIntegrityResponse -> String)
-> ([ValidateAssessmentReportIntegrityResponse] -> ShowS)
-> Show ValidateAssessmentReportIntegrityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ValidateAssessmentReportIntegrityResponse] -> ShowS
$cshowList :: [ValidateAssessmentReportIntegrityResponse] -> ShowS
show :: ValidateAssessmentReportIntegrityResponse -> String
$cshow :: ValidateAssessmentReportIntegrityResponse -> String
showsPrec :: Int -> ValidateAssessmentReportIntegrityResponse -> ShowS
$cshowsPrec :: Int -> ValidateAssessmentReportIntegrityResponse -> ShowS
Prelude.Show, (forall x.
ValidateAssessmentReportIntegrityResponse
-> Rep ValidateAssessmentReportIntegrityResponse x)
-> (forall x.
Rep ValidateAssessmentReportIntegrityResponse x
-> ValidateAssessmentReportIntegrityResponse)
-> Generic ValidateAssessmentReportIntegrityResponse
forall x.
Rep ValidateAssessmentReportIntegrityResponse x
-> ValidateAssessmentReportIntegrityResponse
forall x.
ValidateAssessmentReportIntegrityResponse
-> Rep ValidateAssessmentReportIntegrityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ValidateAssessmentReportIntegrityResponse x
-> ValidateAssessmentReportIntegrityResponse
$cfrom :: forall x.
ValidateAssessmentReportIntegrityResponse
-> Rep ValidateAssessmentReportIntegrityResponse x
Prelude.Generic)
newValidateAssessmentReportIntegrityResponse ::
Prelude.Int ->
ValidateAssessmentReportIntegrityResponse
newValidateAssessmentReportIntegrityResponse :: Int -> ValidateAssessmentReportIntegrityResponse
newValidateAssessmentReportIntegrityResponse
Int
pHttpStatus_ =
ValidateAssessmentReportIntegrityResponse' :: Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse'
{ $sel:signatureValid:ValidateAssessmentReportIntegrityResponse' :: Maybe Bool
signatureValid =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:validationErrors:ValidateAssessmentReportIntegrityResponse' :: Maybe [Text]
validationErrors =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:signatureDateTime:ValidateAssessmentReportIntegrityResponse' :: Maybe Text
signatureDateTime =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:signatureAlgorithm:ValidateAssessmentReportIntegrityResponse' :: Maybe Text
signatureAlgorithm =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:signatureKeyId:ValidateAssessmentReportIntegrityResponse' :: Maybe Text
signatureKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ValidateAssessmentReportIntegrityResponse' :: Int
httpStatus = Int
pHttpStatus_
}
validateAssessmentReportIntegrityResponse_signatureValid :: Lens.Lens' ValidateAssessmentReportIntegrityResponse (Prelude.Maybe Prelude.Bool)
validateAssessmentReportIntegrityResponse_signatureValid :: (Maybe Bool -> f (Maybe Bool))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
validateAssessmentReportIntegrityResponse_signatureValid = (ValidateAssessmentReportIntegrityResponse -> Maybe Bool)
-> (ValidateAssessmentReportIntegrityResponse
-> Maybe Bool -> ValidateAssessmentReportIntegrityResponse)
-> Lens
ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrityResponse' {Maybe Bool
signatureValid :: Maybe Bool
$sel:signatureValid:ValidateAssessmentReportIntegrityResponse' :: ValidateAssessmentReportIntegrityResponse -> Maybe Bool
signatureValid} -> Maybe Bool
signatureValid) (\s :: ValidateAssessmentReportIntegrityResponse
s@ValidateAssessmentReportIntegrityResponse' {} Maybe Bool
a -> ValidateAssessmentReportIntegrityResponse
s {$sel:signatureValid:ValidateAssessmentReportIntegrityResponse' :: Maybe Bool
signatureValid = Maybe Bool
a} :: ValidateAssessmentReportIntegrityResponse)
validateAssessmentReportIntegrityResponse_validationErrors :: Lens.Lens' ValidateAssessmentReportIntegrityResponse (Prelude.Maybe [Prelude.Text])
validateAssessmentReportIntegrityResponse_validationErrors :: (Maybe [Text] -> f (Maybe [Text]))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
validateAssessmentReportIntegrityResponse_validationErrors = (ValidateAssessmentReportIntegrityResponse -> Maybe [Text])
-> (ValidateAssessmentReportIntegrityResponse
-> Maybe [Text] -> ValidateAssessmentReportIntegrityResponse)
-> Lens
ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrityResponse' {Maybe [Text]
validationErrors :: Maybe [Text]
$sel:validationErrors:ValidateAssessmentReportIntegrityResponse' :: ValidateAssessmentReportIntegrityResponse -> Maybe [Text]
validationErrors} -> Maybe [Text]
validationErrors) (\s :: ValidateAssessmentReportIntegrityResponse
s@ValidateAssessmentReportIntegrityResponse' {} Maybe [Text]
a -> ValidateAssessmentReportIntegrityResponse
s {$sel:validationErrors:ValidateAssessmentReportIntegrityResponse' :: Maybe [Text]
validationErrors = Maybe [Text]
a} :: ValidateAssessmentReportIntegrityResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
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
validateAssessmentReportIntegrityResponse_signatureDateTime :: Lens.Lens' ValidateAssessmentReportIntegrityResponse (Prelude.Maybe Prelude.Text)
validateAssessmentReportIntegrityResponse_signatureDateTime :: (Maybe Text -> f (Maybe Text))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
validateAssessmentReportIntegrityResponse_signatureDateTime = (ValidateAssessmentReportIntegrityResponse -> Maybe Text)
-> (ValidateAssessmentReportIntegrityResponse
-> Maybe Text -> ValidateAssessmentReportIntegrityResponse)
-> Lens
ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrityResponse' {Maybe Text
signatureDateTime :: Maybe Text
$sel:signatureDateTime:ValidateAssessmentReportIntegrityResponse' :: ValidateAssessmentReportIntegrityResponse -> Maybe Text
signatureDateTime} -> Maybe Text
signatureDateTime) (\s :: ValidateAssessmentReportIntegrityResponse
s@ValidateAssessmentReportIntegrityResponse' {} Maybe Text
a -> ValidateAssessmentReportIntegrityResponse
s {$sel:signatureDateTime:ValidateAssessmentReportIntegrityResponse' :: Maybe Text
signatureDateTime = Maybe Text
a} :: ValidateAssessmentReportIntegrityResponse)
validateAssessmentReportIntegrityResponse_signatureAlgorithm :: Lens.Lens' ValidateAssessmentReportIntegrityResponse (Prelude.Maybe Prelude.Text)
validateAssessmentReportIntegrityResponse_signatureAlgorithm :: (Maybe Text -> f (Maybe Text))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
validateAssessmentReportIntegrityResponse_signatureAlgorithm = (ValidateAssessmentReportIntegrityResponse -> Maybe Text)
-> (ValidateAssessmentReportIntegrityResponse
-> Maybe Text -> ValidateAssessmentReportIntegrityResponse)
-> Lens
ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrityResponse' {Maybe Text
signatureAlgorithm :: Maybe Text
$sel:signatureAlgorithm:ValidateAssessmentReportIntegrityResponse' :: ValidateAssessmentReportIntegrityResponse -> Maybe Text
signatureAlgorithm} -> Maybe Text
signatureAlgorithm) (\s :: ValidateAssessmentReportIntegrityResponse
s@ValidateAssessmentReportIntegrityResponse' {} Maybe Text
a -> ValidateAssessmentReportIntegrityResponse
s {$sel:signatureAlgorithm:ValidateAssessmentReportIntegrityResponse' :: Maybe Text
signatureAlgorithm = Maybe Text
a} :: ValidateAssessmentReportIntegrityResponse)
validateAssessmentReportIntegrityResponse_signatureKeyId :: Lens.Lens' ValidateAssessmentReportIntegrityResponse (Prelude.Maybe Prelude.Text)
validateAssessmentReportIntegrityResponse_signatureKeyId :: (Maybe Text -> f (Maybe Text))
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
validateAssessmentReportIntegrityResponse_signatureKeyId = (ValidateAssessmentReportIntegrityResponse -> Maybe Text)
-> (ValidateAssessmentReportIntegrityResponse
-> Maybe Text -> ValidateAssessmentReportIntegrityResponse)
-> Lens
ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrityResponse' {Maybe Text
signatureKeyId :: Maybe Text
$sel:signatureKeyId:ValidateAssessmentReportIntegrityResponse' :: ValidateAssessmentReportIntegrityResponse -> Maybe Text
signatureKeyId} -> Maybe Text
signatureKeyId) (\s :: ValidateAssessmentReportIntegrityResponse
s@ValidateAssessmentReportIntegrityResponse' {} Maybe Text
a -> ValidateAssessmentReportIntegrityResponse
s {$sel:signatureKeyId:ValidateAssessmentReportIntegrityResponse' :: Maybe Text
signatureKeyId = Maybe Text
a} :: ValidateAssessmentReportIntegrityResponse)
validateAssessmentReportIntegrityResponse_httpStatus :: Lens.Lens' ValidateAssessmentReportIntegrityResponse Prelude.Int
validateAssessmentReportIntegrityResponse_httpStatus :: (Int -> f Int)
-> ValidateAssessmentReportIntegrityResponse
-> f ValidateAssessmentReportIntegrityResponse
validateAssessmentReportIntegrityResponse_httpStatus = (ValidateAssessmentReportIntegrityResponse -> Int)
-> (ValidateAssessmentReportIntegrityResponse
-> Int -> ValidateAssessmentReportIntegrityResponse)
-> Lens
ValidateAssessmentReportIntegrityResponse
ValidateAssessmentReportIntegrityResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ValidateAssessmentReportIntegrityResponse' {Int
httpStatus :: Int
$sel:httpStatus:ValidateAssessmentReportIntegrityResponse' :: ValidateAssessmentReportIntegrityResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ValidateAssessmentReportIntegrityResponse
s@ValidateAssessmentReportIntegrityResponse' {} Int
a -> ValidateAssessmentReportIntegrityResponse
s {$sel:httpStatus:ValidateAssessmentReportIntegrityResponse' :: Int
httpStatus = Int
a} :: ValidateAssessmentReportIntegrityResponse)
instance
Prelude.NFData
ValidateAssessmentReportIntegrityResponse