{-# 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.BatchDisassociateAssessmentReportEvidence
(
BatchDisassociateAssessmentReportEvidence (..),
newBatchDisassociateAssessmentReportEvidence,
batchDisassociateAssessmentReportEvidence_assessmentId,
batchDisassociateAssessmentReportEvidence_evidenceFolderId,
batchDisassociateAssessmentReportEvidence_evidenceIds,
BatchDisassociateAssessmentReportEvidenceResponse (..),
newBatchDisassociateAssessmentReportEvidenceResponse,
batchDisassociateAssessmentReportEvidenceResponse_evidenceIds,
batchDisassociateAssessmentReportEvidenceResponse_errors,
batchDisassociateAssessmentReportEvidenceResponse_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 BatchDisassociateAssessmentReportEvidence = BatchDisassociateAssessmentReportEvidence'
{
BatchDisassociateAssessmentReportEvidence -> Text
assessmentId :: Prelude.Text,
BatchDisassociateAssessmentReportEvidence -> Text
evidenceFolderId :: Prelude.Text,
BatchDisassociateAssessmentReportEvidence -> [Text]
evidenceIds :: [Prelude.Text]
}
deriving (BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool
(BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool)
-> (BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool)
-> Eq BatchDisassociateAssessmentReportEvidence
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool
$c/= :: BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool
== :: BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool
$c== :: BatchDisassociateAssessmentReportEvidence
-> BatchDisassociateAssessmentReportEvidence -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateAssessmentReportEvidence]
ReadPrec BatchDisassociateAssessmentReportEvidence
Int -> ReadS BatchDisassociateAssessmentReportEvidence
ReadS [BatchDisassociateAssessmentReportEvidence]
(Int -> ReadS BatchDisassociateAssessmentReportEvidence)
-> ReadS [BatchDisassociateAssessmentReportEvidence]
-> ReadPrec BatchDisassociateAssessmentReportEvidence
-> ReadPrec [BatchDisassociateAssessmentReportEvidence]
-> Read BatchDisassociateAssessmentReportEvidence
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateAssessmentReportEvidence]
$creadListPrec :: ReadPrec [BatchDisassociateAssessmentReportEvidence]
readPrec :: ReadPrec BatchDisassociateAssessmentReportEvidence
$creadPrec :: ReadPrec BatchDisassociateAssessmentReportEvidence
readList :: ReadS [BatchDisassociateAssessmentReportEvidence]
$creadList :: ReadS [BatchDisassociateAssessmentReportEvidence]
readsPrec :: Int -> ReadS BatchDisassociateAssessmentReportEvidence
$creadsPrec :: Int -> ReadS BatchDisassociateAssessmentReportEvidence
Prelude.Read, Int -> BatchDisassociateAssessmentReportEvidence -> ShowS
[BatchDisassociateAssessmentReportEvidence] -> ShowS
BatchDisassociateAssessmentReportEvidence -> String
(Int -> BatchDisassociateAssessmentReportEvidence -> ShowS)
-> (BatchDisassociateAssessmentReportEvidence -> String)
-> ([BatchDisassociateAssessmentReportEvidence] -> ShowS)
-> Show BatchDisassociateAssessmentReportEvidence
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateAssessmentReportEvidence] -> ShowS
$cshowList :: [BatchDisassociateAssessmentReportEvidence] -> ShowS
show :: BatchDisassociateAssessmentReportEvidence -> String
$cshow :: BatchDisassociateAssessmentReportEvidence -> String
showsPrec :: Int -> BatchDisassociateAssessmentReportEvidence -> ShowS
$cshowsPrec :: Int -> BatchDisassociateAssessmentReportEvidence -> ShowS
Prelude.Show, (forall x.
BatchDisassociateAssessmentReportEvidence
-> Rep BatchDisassociateAssessmentReportEvidence x)
-> (forall x.
Rep BatchDisassociateAssessmentReportEvidence x
-> BatchDisassociateAssessmentReportEvidence)
-> Generic BatchDisassociateAssessmentReportEvidence
forall x.
Rep BatchDisassociateAssessmentReportEvidence x
-> BatchDisassociateAssessmentReportEvidence
forall x.
BatchDisassociateAssessmentReportEvidence
-> Rep BatchDisassociateAssessmentReportEvidence x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateAssessmentReportEvidence x
-> BatchDisassociateAssessmentReportEvidence
$cfrom :: forall x.
BatchDisassociateAssessmentReportEvidence
-> Rep BatchDisassociateAssessmentReportEvidence x
Prelude.Generic)
newBatchDisassociateAssessmentReportEvidence ::
Prelude.Text ->
Prelude.Text ->
BatchDisassociateAssessmentReportEvidence
newBatchDisassociateAssessmentReportEvidence :: Text -> Text -> BatchDisassociateAssessmentReportEvidence
newBatchDisassociateAssessmentReportEvidence
Text
pAssessmentId_
Text
pEvidenceFolderId_ =
BatchDisassociateAssessmentReportEvidence' :: Text -> Text -> [Text] -> BatchDisassociateAssessmentReportEvidence
BatchDisassociateAssessmentReportEvidence'
{ $sel:assessmentId:BatchDisassociateAssessmentReportEvidence' :: Text
assessmentId =
Text
pAssessmentId_,
$sel:evidenceFolderId:BatchDisassociateAssessmentReportEvidence' :: Text
evidenceFolderId =
Text
pEvidenceFolderId_,
$sel:evidenceIds:BatchDisassociateAssessmentReportEvidence' :: [Text]
evidenceIds = [Text]
forall a. Monoid a => a
Prelude.mempty
}
batchDisassociateAssessmentReportEvidence_assessmentId :: Lens.Lens' BatchDisassociateAssessmentReportEvidence Prelude.Text
batchDisassociateAssessmentReportEvidence_assessmentId :: (Text -> f Text)
-> BatchDisassociateAssessmentReportEvidence
-> f BatchDisassociateAssessmentReportEvidence
batchDisassociateAssessmentReportEvidence_assessmentId = (BatchDisassociateAssessmentReportEvidence -> Text)
-> (BatchDisassociateAssessmentReportEvidence
-> Text -> BatchDisassociateAssessmentReportEvidence)
-> Lens
BatchDisassociateAssessmentReportEvidence
BatchDisassociateAssessmentReportEvidence
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateAssessmentReportEvidence' {Text
assessmentId :: Text
$sel:assessmentId:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> Text
assessmentId} -> Text
assessmentId) (\s :: BatchDisassociateAssessmentReportEvidence
s@BatchDisassociateAssessmentReportEvidence' {} Text
a -> BatchDisassociateAssessmentReportEvidence
s {$sel:assessmentId:BatchDisassociateAssessmentReportEvidence' :: Text
assessmentId = Text
a} :: BatchDisassociateAssessmentReportEvidence)
batchDisassociateAssessmentReportEvidence_evidenceFolderId :: Lens.Lens' BatchDisassociateAssessmentReportEvidence Prelude.Text
batchDisassociateAssessmentReportEvidence_evidenceFolderId :: (Text -> f Text)
-> BatchDisassociateAssessmentReportEvidence
-> f BatchDisassociateAssessmentReportEvidence
batchDisassociateAssessmentReportEvidence_evidenceFolderId = (BatchDisassociateAssessmentReportEvidence -> Text)
-> (BatchDisassociateAssessmentReportEvidence
-> Text -> BatchDisassociateAssessmentReportEvidence)
-> Lens
BatchDisassociateAssessmentReportEvidence
BatchDisassociateAssessmentReportEvidence
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateAssessmentReportEvidence' {Text
evidenceFolderId :: Text
$sel:evidenceFolderId:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> Text
evidenceFolderId} -> Text
evidenceFolderId) (\s :: BatchDisassociateAssessmentReportEvidence
s@BatchDisassociateAssessmentReportEvidence' {} Text
a -> BatchDisassociateAssessmentReportEvidence
s {$sel:evidenceFolderId:BatchDisassociateAssessmentReportEvidence' :: Text
evidenceFolderId = Text
a} :: BatchDisassociateAssessmentReportEvidence)
batchDisassociateAssessmentReportEvidence_evidenceIds :: Lens.Lens' BatchDisassociateAssessmentReportEvidence [Prelude.Text]
batchDisassociateAssessmentReportEvidence_evidenceIds :: ([Text] -> f [Text])
-> BatchDisassociateAssessmentReportEvidence
-> f BatchDisassociateAssessmentReportEvidence
batchDisassociateAssessmentReportEvidence_evidenceIds = (BatchDisassociateAssessmentReportEvidence -> [Text])
-> (BatchDisassociateAssessmentReportEvidence
-> [Text] -> BatchDisassociateAssessmentReportEvidence)
-> Lens
BatchDisassociateAssessmentReportEvidence
BatchDisassociateAssessmentReportEvidence
[Text]
[Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateAssessmentReportEvidence' {[Text]
evidenceIds :: [Text]
$sel:evidenceIds:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> [Text]
evidenceIds} -> [Text]
evidenceIds) (\s :: BatchDisassociateAssessmentReportEvidence
s@BatchDisassociateAssessmentReportEvidence' {} [Text]
a -> BatchDisassociateAssessmentReportEvidence
s {$sel:evidenceIds:BatchDisassociateAssessmentReportEvidence' :: [Text]
evidenceIds = [Text]
a} :: BatchDisassociateAssessmentReportEvidence) (([Text] -> f [Text])
-> BatchDisassociateAssessmentReportEvidence
-> f BatchDisassociateAssessmentReportEvidence)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchDisassociateAssessmentReportEvidence
-> f BatchDisassociateAssessmentReportEvidence
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
BatchDisassociateAssessmentReportEvidence
where
type
AWSResponse
BatchDisassociateAssessmentReportEvidence =
BatchDisassociateAssessmentReportEvidenceResponse
request :: BatchDisassociateAssessmentReportEvidence
-> Request BatchDisassociateAssessmentReportEvidence
request = Service
-> BatchDisassociateAssessmentReportEvidence
-> Request BatchDisassociateAssessmentReportEvidence
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchDisassociateAssessmentReportEvidence
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchDisassociateAssessmentReportEvidence)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse BatchDisassociateAssessmentReportEvidence))
-> Logger
-> Service
-> Proxy BatchDisassociateAssessmentReportEvidence
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse BatchDisassociateAssessmentReportEvidence)))
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 [Text]
-> Maybe [AssessmentReportEvidenceError]
-> Int
-> BatchDisassociateAssessmentReportEvidenceResponse
BatchDisassociateAssessmentReportEvidenceResponse'
(Maybe [Text]
-> Maybe [AssessmentReportEvidenceError]
-> Int
-> BatchDisassociateAssessmentReportEvidenceResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe [AssessmentReportEvidenceError]
-> Int -> BatchDisassociateAssessmentReportEvidenceResponse)
forall (f :: * -> *) a b. Functor 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
"evidenceIds" 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 [AssessmentReportEvidenceError]
-> Int -> BatchDisassociateAssessmentReportEvidenceResponse)
-> Either String (Maybe [AssessmentReportEvidenceError])
-> Either
String (Int -> BatchDisassociateAssessmentReportEvidenceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [AssessmentReportEvidenceError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"errors" Either String (Maybe (Maybe [AssessmentReportEvidenceError]))
-> Maybe [AssessmentReportEvidenceError]
-> Either String (Maybe [AssessmentReportEvidenceError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AssessmentReportEvidenceError]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Int -> BatchDisassociateAssessmentReportEvidenceResponse)
-> Either String Int
-> Either String BatchDisassociateAssessmentReportEvidenceResponse
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
BatchDisassociateAssessmentReportEvidence
instance
Prelude.NFData
BatchDisassociateAssessmentReportEvidence
instance
Core.ToHeaders
BatchDisassociateAssessmentReportEvidence
where
toHeaders :: BatchDisassociateAssessmentReportEvidence -> ResponseHeaders
toHeaders =
ResponseHeaders
-> BatchDisassociateAssessmentReportEvidence -> 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
BatchDisassociateAssessmentReportEvidence
where
toJSON :: BatchDisassociateAssessmentReportEvidence -> Value
toJSON BatchDisassociateAssessmentReportEvidence' {[Text]
Text
evidenceIds :: [Text]
evidenceFolderId :: Text
assessmentId :: Text
$sel:evidenceIds:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> [Text]
$sel:evidenceFolderId:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> Text
$sel:assessmentId:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> 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
"evidenceFolderId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
evidenceFolderId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"evidenceIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
evidenceIds)
]
)
instance
Core.ToPath
BatchDisassociateAssessmentReportEvidence
where
toPath :: BatchDisassociateAssessmentReportEvidence -> ByteString
toPath BatchDisassociateAssessmentReportEvidence' {[Text]
Text
evidenceIds :: [Text]
evidenceFolderId :: Text
assessmentId :: Text
$sel:evidenceIds:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> [Text]
$sel:evidenceFolderId:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> Text
$sel:assessmentId:BatchDisassociateAssessmentReportEvidence' :: BatchDisassociateAssessmentReportEvidence -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/assessments/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assessmentId,
ByteString
"/batchDisassociateFromAssessmentReport"
]
instance
Core.ToQuery
BatchDisassociateAssessmentReportEvidence
where
toQuery :: BatchDisassociateAssessmentReportEvidence -> QueryString
toQuery = QueryString
-> BatchDisassociateAssessmentReportEvidence -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchDisassociateAssessmentReportEvidenceResponse = BatchDisassociateAssessmentReportEvidenceResponse'
{
BatchDisassociateAssessmentReportEvidenceResponse -> Maybe [Text]
evidenceIds :: Prelude.Maybe [Prelude.Text],
BatchDisassociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError]
errors :: Prelude.Maybe [AssessmentReportEvidenceError],
BatchDisassociateAssessmentReportEvidenceResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool
(BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool)
-> (BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool)
-> Eq BatchDisassociateAssessmentReportEvidenceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool
$c/= :: BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool
== :: BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool
$c== :: BatchDisassociateAssessmentReportEvidenceResponse
-> BatchDisassociateAssessmentReportEvidenceResponse -> Bool
Prelude.Eq, ReadPrec [BatchDisassociateAssessmentReportEvidenceResponse]
ReadPrec BatchDisassociateAssessmentReportEvidenceResponse
Int -> ReadS BatchDisassociateAssessmentReportEvidenceResponse
ReadS [BatchDisassociateAssessmentReportEvidenceResponse]
(Int -> ReadS BatchDisassociateAssessmentReportEvidenceResponse)
-> ReadS [BatchDisassociateAssessmentReportEvidenceResponse]
-> ReadPrec BatchDisassociateAssessmentReportEvidenceResponse
-> ReadPrec [BatchDisassociateAssessmentReportEvidenceResponse]
-> Read BatchDisassociateAssessmentReportEvidenceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDisassociateAssessmentReportEvidenceResponse]
$creadListPrec :: ReadPrec [BatchDisassociateAssessmentReportEvidenceResponse]
readPrec :: ReadPrec BatchDisassociateAssessmentReportEvidenceResponse
$creadPrec :: ReadPrec BatchDisassociateAssessmentReportEvidenceResponse
readList :: ReadS [BatchDisassociateAssessmentReportEvidenceResponse]
$creadList :: ReadS [BatchDisassociateAssessmentReportEvidenceResponse]
readsPrec :: Int -> ReadS BatchDisassociateAssessmentReportEvidenceResponse
$creadsPrec :: Int -> ReadS BatchDisassociateAssessmentReportEvidenceResponse
Prelude.Read, Int -> BatchDisassociateAssessmentReportEvidenceResponse -> ShowS
[BatchDisassociateAssessmentReportEvidenceResponse] -> ShowS
BatchDisassociateAssessmentReportEvidenceResponse -> String
(Int -> BatchDisassociateAssessmentReportEvidenceResponse -> ShowS)
-> (BatchDisassociateAssessmentReportEvidenceResponse -> String)
-> ([BatchDisassociateAssessmentReportEvidenceResponse] -> ShowS)
-> Show BatchDisassociateAssessmentReportEvidenceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDisassociateAssessmentReportEvidenceResponse] -> ShowS
$cshowList :: [BatchDisassociateAssessmentReportEvidenceResponse] -> ShowS
show :: BatchDisassociateAssessmentReportEvidenceResponse -> String
$cshow :: BatchDisassociateAssessmentReportEvidenceResponse -> String
showsPrec :: Int -> BatchDisassociateAssessmentReportEvidenceResponse -> ShowS
$cshowsPrec :: Int -> BatchDisassociateAssessmentReportEvidenceResponse -> ShowS
Prelude.Show, (forall x.
BatchDisassociateAssessmentReportEvidenceResponse
-> Rep BatchDisassociateAssessmentReportEvidenceResponse x)
-> (forall x.
Rep BatchDisassociateAssessmentReportEvidenceResponse x
-> BatchDisassociateAssessmentReportEvidenceResponse)
-> Generic BatchDisassociateAssessmentReportEvidenceResponse
forall x.
Rep BatchDisassociateAssessmentReportEvidenceResponse x
-> BatchDisassociateAssessmentReportEvidenceResponse
forall x.
BatchDisassociateAssessmentReportEvidenceResponse
-> Rep BatchDisassociateAssessmentReportEvidenceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDisassociateAssessmentReportEvidenceResponse x
-> BatchDisassociateAssessmentReportEvidenceResponse
$cfrom :: forall x.
BatchDisassociateAssessmentReportEvidenceResponse
-> Rep BatchDisassociateAssessmentReportEvidenceResponse x
Prelude.Generic)
newBatchDisassociateAssessmentReportEvidenceResponse ::
Prelude.Int ->
BatchDisassociateAssessmentReportEvidenceResponse
newBatchDisassociateAssessmentReportEvidenceResponse :: Int -> BatchDisassociateAssessmentReportEvidenceResponse
newBatchDisassociateAssessmentReportEvidenceResponse
Int
pHttpStatus_ =
BatchDisassociateAssessmentReportEvidenceResponse' :: Maybe [Text]
-> Maybe [AssessmentReportEvidenceError]
-> Int
-> BatchDisassociateAssessmentReportEvidenceResponse
BatchDisassociateAssessmentReportEvidenceResponse'
{ $sel:evidenceIds:BatchDisassociateAssessmentReportEvidenceResponse' :: Maybe [Text]
evidenceIds =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:errors:BatchDisassociateAssessmentReportEvidenceResponse' :: Maybe [AssessmentReportEvidenceError]
errors = Maybe [AssessmentReportEvidenceError]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDisassociateAssessmentReportEvidenceResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
batchDisassociateAssessmentReportEvidenceResponse_evidenceIds :: Lens.Lens' BatchDisassociateAssessmentReportEvidenceResponse (Prelude.Maybe [Prelude.Text])
batchDisassociateAssessmentReportEvidenceResponse_evidenceIds :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse
batchDisassociateAssessmentReportEvidenceResponse_evidenceIds = (BatchDisassociateAssessmentReportEvidenceResponse -> Maybe [Text])
-> (BatchDisassociateAssessmentReportEvidenceResponse
-> Maybe [Text]
-> BatchDisassociateAssessmentReportEvidenceResponse)
-> Lens
BatchDisassociateAssessmentReportEvidenceResponse
BatchDisassociateAssessmentReportEvidenceResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateAssessmentReportEvidenceResponse' {Maybe [Text]
evidenceIds :: Maybe [Text]
$sel:evidenceIds:BatchDisassociateAssessmentReportEvidenceResponse' :: BatchDisassociateAssessmentReportEvidenceResponse -> Maybe [Text]
evidenceIds} -> Maybe [Text]
evidenceIds) (\s :: BatchDisassociateAssessmentReportEvidenceResponse
s@BatchDisassociateAssessmentReportEvidenceResponse' {} Maybe [Text]
a -> BatchDisassociateAssessmentReportEvidenceResponse
s {$sel:evidenceIds:BatchDisassociateAssessmentReportEvidenceResponse' :: Maybe [Text]
evidenceIds = Maybe [Text]
a} :: BatchDisassociateAssessmentReportEvidenceResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse
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
batchDisassociateAssessmentReportEvidenceResponse_errors :: Lens.Lens' BatchDisassociateAssessmentReportEvidenceResponse (Prelude.Maybe [AssessmentReportEvidenceError])
batchDisassociateAssessmentReportEvidenceResponse_errors :: (Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse
batchDisassociateAssessmentReportEvidenceResponse_errors = (BatchDisassociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError])
-> (BatchDisassociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError]
-> BatchDisassociateAssessmentReportEvidenceResponse)
-> Lens
BatchDisassociateAssessmentReportEvidenceResponse
BatchDisassociateAssessmentReportEvidenceResponse
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateAssessmentReportEvidenceResponse' {Maybe [AssessmentReportEvidenceError]
errors :: Maybe [AssessmentReportEvidenceError]
$sel:errors:BatchDisassociateAssessmentReportEvidenceResponse' :: BatchDisassociateAssessmentReportEvidenceResponse
-> Maybe [AssessmentReportEvidenceError]
errors} -> Maybe [AssessmentReportEvidenceError]
errors) (\s :: BatchDisassociateAssessmentReportEvidenceResponse
s@BatchDisassociateAssessmentReportEvidenceResponse' {} Maybe [AssessmentReportEvidenceError]
a -> BatchDisassociateAssessmentReportEvidenceResponse
s {$sel:errors:BatchDisassociateAssessmentReportEvidenceResponse' :: Maybe [AssessmentReportEvidenceError]
errors = Maybe [AssessmentReportEvidenceError]
a} :: BatchDisassociateAssessmentReportEvidenceResponse) ((Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse)
-> ((Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> (Maybe [AssessmentReportEvidenceError]
-> f (Maybe [AssessmentReportEvidenceError]))
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
-> Iso
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
(Maybe [AssessmentReportEvidenceError])
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
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
[AssessmentReportEvidenceError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDisassociateAssessmentReportEvidenceResponse_httpStatus :: Lens.Lens' BatchDisassociateAssessmentReportEvidenceResponse Prelude.Int
batchDisassociateAssessmentReportEvidenceResponse_httpStatus :: (Int -> f Int)
-> BatchDisassociateAssessmentReportEvidenceResponse
-> f BatchDisassociateAssessmentReportEvidenceResponse
batchDisassociateAssessmentReportEvidenceResponse_httpStatus = (BatchDisassociateAssessmentReportEvidenceResponse -> Int)
-> (BatchDisassociateAssessmentReportEvidenceResponse
-> Int -> BatchDisassociateAssessmentReportEvidenceResponse)
-> Lens
BatchDisassociateAssessmentReportEvidenceResponse
BatchDisassociateAssessmentReportEvidenceResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDisassociateAssessmentReportEvidenceResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDisassociateAssessmentReportEvidenceResponse' :: BatchDisassociateAssessmentReportEvidenceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDisassociateAssessmentReportEvidenceResponse
s@BatchDisassociateAssessmentReportEvidenceResponse' {} Int
a -> BatchDisassociateAssessmentReportEvidenceResponse
s {$sel:httpStatus:BatchDisassociateAssessmentReportEvidenceResponse' :: Int
httpStatus = Int
a} :: BatchDisassociateAssessmentReportEvidenceResponse)
instance
Prelude.NFData
BatchDisassociateAssessmentReportEvidenceResponse