{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoT.DescribeAuditMitigationActionsTask
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets information about an audit mitigation task that is used to apply
-- mitigation actions to a set of audit findings. Properties include the
-- actions being applied, the audit checks to which they\'re being applied,
-- the task status, and aggregated task statistics.
module Amazonka.IoT.DescribeAuditMitigationActionsTask
  ( -- * Creating a Request
    DescribeAuditMitigationActionsTask (..),
    newDescribeAuditMitigationActionsTask,

    -- * Request Lenses
    describeAuditMitigationActionsTask_taskId,

    -- * Destructuring the Response
    DescribeAuditMitigationActionsTaskResponse (..),
    newDescribeAuditMitigationActionsTaskResponse,

    -- * Response Lenses
    describeAuditMitigationActionsTaskResponse_startTime,
    describeAuditMitigationActionsTaskResponse_taskStatistics,
    describeAuditMitigationActionsTaskResponse_actionsDefinition,
    describeAuditMitigationActionsTaskResponse_auditCheckToActionsMapping,
    describeAuditMitigationActionsTaskResponse_endTime,
    describeAuditMitigationActionsTaskResponse_target,
    describeAuditMitigationActionsTaskResponse_taskStatus,
    describeAuditMitigationActionsTaskResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoT.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

-- | /See:/ 'newDescribeAuditMitigationActionsTask' smart constructor.
data DescribeAuditMitigationActionsTask = DescribeAuditMitigationActionsTask'
  { -- | The unique identifier for the audit mitigation task.
    DescribeAuditMitigationActionsTask -> Text
taskId :: Prelude.Text
  }
  deriving (DescribeAuditMitigationActionsTask
-> DescribeAuditMitigationActionsTask -> Bool
(DescribeAuditMitigationActionsTask
 -> DescribeAuditMitigationActionsTask -> Bool)
-> (DescribeAuditMitigationActionsTask
    -> DescribeAuditMitigationActionsTask -> Bool)
-> Eq DescribeAuditMitigationActionsTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAuditMitigationActionsTask
-> DescribeAuditMitigationActionsTask -> Bool
$c/= :: DescribeAuditMitigationActionsTask
-> DescribeAuditMitigationActionsTask -> Bool
== :: DescribeAuditMitigationActionsTask
-> DescribeAuditMitigationActionsTask -> Bool
$c== :: DescribeAuditMitigationActionsTask
-> DescribeAuditMitigationActionsTask -> Bool
Prelude.Eq, ReadPrec [DescribeAuditMitigationActionsTask]
ReadPrec DescribeAuditMitigationActionsTask
Int -> ReadS DescribeAuditMitigationActionsTask
ReadS [DescribeAuditMitigationActionsTask]
(Int -> ReadS DescribeAuditMitigationActionsTask)
-> ReadS [DescribeAuditMitigationActionsTask]
-> ReadPrec DescribeAuditMitigationActionsTask
-> ReadPrec [DescribeAuditMitigationActionsTask]
-> Read DescribeAuditMitigationActionsTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAuditMitigationActionsTask]
$creadListPrec :: ReadPrec [DescribeAuditMitigationActionsTask]
readPrec :: ReadPrec DescribeAuditMitigationActionsTask
$creadPrec :: ReadPrec DescribeAuditMitigationActionsTask
readList :: ReadS [DescribeAuditMitigationActionsTask]
$creadList :: ReadS [DescribeAuditMitigationActionsTask]
readsPrec :: Int -> ReadS DescribeAuditMitigationActionsTask
$creadsPrec :: Int -> ReadS DescribeAuditMitigationActionsTask
Prelude.Read, Int -> DescribeAuditMitigationActionsTask -> ShowS
[DescribeAuditMitigationActionsTask] -> ShowS
DescribeAuditMitigationActionsTask -> String
(Int -> DescribeAuditMitigationActionsTask -> ShowS)
-> (DescribeAuditMitigationActionsTask -> String)
-> ([DescribeAuditMitigationActionsTask] -> ShowS)
-> Show DescribeAuditMitigationActionsTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAuditMitigationActionsTask] -> ShowS
$cshowList :: [DescribeAuditMitigationActionsTask] -> ShowS
show :: DescribeAuditMitigationActionsTask -> String
$cshow :: DescribeAuditMitigationActionsTask -> String
showsPrec :: Int -> DescribeAuditMitigationActionsTask -> ShowS
$cshowsPrec :: Int -> DescribeAuditMitigationActionsTask -> ShowS
Prelude.Show, (forall x.
 DescribeAuditMitigationActionsTask
 -> Rep DescribeAuditMitigationActionsTask x)
-> (forall x.
    Rep DescribeAuditMitigationActionsTask x
    -> DescribeAuditMitigationActionsTask)
-> Generic DescribeAuditMitigationActionsTask
forall x.
Rep DescribeAuditMitigationActionsTask x
-> DescribeAuditMitigationActionsTask
forall x.
DescribeAuditMitigationActionsTask
-> Rep DescribeAuditMitigationActionsTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAuditMitigationActionsTask x
-> DescribeAuditMitigationActionsTask
$cfrom :: forall x.
DescribeAuditMitigationActionsTask
-> Rep DescribeAuditMitigationActionsTask x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAuditMitigationActionsTask' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'taskId', 'describeAuditMitigationActionsTask_taskId' - The unique identifier for the audit mitigation task.
newDescribeAuditMitigationActionsTask ::
  -- | 'taskId'
  Prelude.Text ->
  DescribeAuditMitigationActionsTask
newDescribeAuditMitigationActionsTask :: Text -> DescribeAuditMitigationActionsTask
newDescribeAuditMitigationActionsTask Text
pTaskId_ =
  DescribeAuditMitigationActionsTask' :: Text -> DescribeAuditMitigationActionsTask
DescribeAuditMitigationActionsTask'
    { $sel:taskId:DescribeAuditMitigationActionsTask' :: Text
taskId =
        Text
pTaskId_
    }

-- | The unique identifier for the audit mitigation task.
describeAuditMitigationActionsTask_taskId :: Lens.Lens' DescribeAuditMitigationActionsTask Prelude.Text
describeAuditMitigationActionsTask_taskId :: (Text -> f Text)
-> DescribeAuditMitigationActionsTask
-> f DescribeAuditMitigationActionsTask
describeAuditMitigationActionsTask_taskId = (DescribeAuditMitigationActionsTask -> Text)
-> (DescribeAuditMitigationActionsTask
    -> Text -> DescribeAuditMitigationActionsTask)
-> Lens
     DescribeAuditMitigationActionsTask
     DescribeAuditMitigationActionsTask
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTask' {Text
taskId :: Text
$sel:taskId:DescribeAuditMitigationActionsTask' :: DescribeAuditMitigationActionsTask -> Text
taskId} -> Text
taskId) (\s :: DescribeAuditMitigationActionsTask
s@DescribeAuditMitigationActionsTask' {} Text
a -> DescribeAuditMitigationActionsTask
s {$sel:taskId:DescribeAuditMitigationActionsTask' :: Text
taskId = Text
a} :: DescribeAuditMitigationActionsTask)

instance
  Core.AWSRequest
    DescribeAuditMitigationActionsTask
  where
  type
    AWSResponse DescribeAuditMitigationActionsTask =
      DescribeAuditMitigationActionsTaskResponse
  request :: DescribeAuditMitigationActionsTask
-> Request DescribeAuditMitigationActionsTask
request = Service
-> DescribeAuditMitigationActionsTask
-> Request DescribeAuditMitigationActionsTask
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeAuditMitigationActionsTask
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeAuditMitigationActionsTask)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeAuditMitigationActionsTask))
-> Logger
-> Service
-> Proxy DescribeAuditMitigationActionsTask
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeAuditMitigationActionsTask)))
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 POSIX
-> Maybe (HashMap Text TaskStatisticsForAuditCheck)
-> Maybe [MitigationAction]
-> Maybe (HashMap Text (NonEmpty Text))
-> Maybe POSIX
-> Maybe AuditMitigationActionsTaskTarget
-> Maybe AuditMitigationActionsTaskStatus
-> Int
-> DescribeAuditMitigationActionsTaskResponse
DescribeAuditMitigationActionsTaskResponse'
            (Maybe POSIX
 -> Maybe (HashMap Text TaskStatisticsForAuditCheck)
 -> Maybe [MitigationAction]
 -> Maybe (HashMap Text (NonEmpty Text))
 -> Maybe POSIX
 -> Maybe AuditMitigationActionsTaskTarget
 -> Maybe AuditMitigationActionsTaskStatus
 -> Int
 -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe (HashMap Text TaskStatisticsForAuditCheck)
      -> Maybe [MitigationAction]
      -> Maybe (HashMap Text (NonEmpty Text))
      -> Maybe POSIX
      -> Maybe AuditMitigationActionsTaskTarget
      -> Maybe AuditMitigationActionsTaskStatus
      -> Int
      -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"startTime")
              Either
  String
  (Maybe (HashMap Text TaskStatisticsForAuditCheck)
   -> Maybe [MitigationAction]
   -> Maybe (HashMap Text (NonEmpty Text))
   -> Maybe POSIX
   -> Maybe AuditMitigationActionsTaskTarget
   -> Maybe AuditMitigationActionsTaskStatus
   -> Int
   -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe (HashMap Text TaskStatisticsForAuditCheck))
-> Either
     String
     (Maybe [MitigationAction]
      -> Maybe (HashMap Text (NonEmpty Text))
      -> Maybe POSIX
      -> Maybe AuditMitigationActionsTaskTarget
      -> Maybe AuditMitigationActionsTaskStatus
      -> Int
      -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either
     String (Maybe (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"taskStatistics" Either
  String (Maybe (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
-> Maybe (HashMap Text TaskStatisticsForAuditCheck)
-> Either String (Maybe (HashMap Text TaskStatisticsForAuditCheck))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text TaskStatisticsForAuditCheck)
forall a. Monoid a => a
Prelude.mempty)
              Either
  String
  (Maybe [MitigationAction]
   -> Maybe (HashMap Text (NonEmpty Text))
   -> Maybe POSIX
   -> Maybe AuditMitigationActionsTaskTarget
   -> Maybe AuditMitigationActionsTaskStatus
   -> Int
   -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe [MitigationAction])
-> Either
     String
     (Maybe (HashMap Text (NonEmpty Text))
      -> Maybe POSIX
      -> Maybe AuditMitigationActionsTaskTarget
      -> Maybe AuditMitigationActionsTaskStatus
      -> Int
      -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [MitigationAction]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"actionsDefinition"
                              Either String (Maybe (Maybe [MitigationAction]))
-> Maybe [MitigationAction]
-> Either String (Maybe [MitigationAction])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [MitigationAction]
forall a. Monoid a => a
Prelude.mempty
                          )
              Either
  String
  (Maybe (HashMap Text (NonEmpty Text))
   -> Maybe POSIX
   -> Maybe AuditMitigationActionsTaskTarget
   -> Maybe AuditMitigationActionsTaskStatus
   -> Int
   -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe (HashMap Text (NonEmpty Text)))
-> Either
     String
     (Maybe POSIX
      -> Maybe AuditMitigationActionsTaskTarget
      -> Maybe AuditMitigationActionsTaskStatus
      -> Int
      -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe (HashMap Text (NonEmpty Text))))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"auditCheckToActionsMapping"
                              Either String (Maybe (Maybe (HashMap Text (NonEmpty Text))))
-> Maybe (HashMap Text (NonEmpty Text))
-> Either String (Maybe (HashMap Text (NonEmpty Text)))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text (NonEmpty Text))
forall a. Monoid a => a
Prelude.mempty
                          )
              Either
  String
  (Maybe POSIX
   -> Maybe AuditMitigationActionsTaskTarget
   -> Maybe AuditMitigationActionsTaskStatus
   -> Int
   -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe AuditMitigationActionsTaskTarget
      -> Maybe AuditMitigationActionsTaskStatus
      -> Int
      -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"endTime")
              Either
  String
  (Maybe AuditMitigationActionsTaskTarget
   -> Maybe AuditMitigationActionsTaskStatus
   -> Int
   -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe AuditMitigationActionsTaskTarget)
-> Either
     String
     (Maybe AuditMitigationActionsTaskStatus
      -> Int -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe AuditMitigationActionsTaskTarget)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"target")
              Either
  String
  (Maybe AuditMitigationActionsTaskStatus
   -> Int -> DescribeAuditMitigationActionsTaskResponse)
-> Either String (Maybe AuditMitigationActionsTaskStatus)
-> Either
     String (Int -> DescribeAuditMitigationActionsTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe AuditMitigationActionsTaskStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"taskStatus")
              Either String (Int -> DescribeAuditMitigationActionsTaskResponse)
-> Either String Int
-> Either String DescribeAuditMitigationActionsTaskResponse
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
    DescribeAuditMitigationActionsTask

instance
  Prelude.NFData
    DescribeAuditMitigationActionsTask

instance
  Core.ToHeaders
    DescribeAuditMitigationActionsTask
  where
  toHeaders :: DescribeAuditMitigationActionsTask -> ResponseHeaders
toHeaders = ResponseHeaders
-> DescribeAuditMitigationActionsTask -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance
  Core.ToPath
    DescribeAuditMitigationActionsTask
  where
  toPath :: DescribeAuditMitigationActionsTask -> ByteString
toPath DescribeAuditMitigationActionsTask' {Text
taskId :: Text
$sel:taskId:DescribeAuditMitigationActionsTask' :: DescribeAuditMitigationActionsTask -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/audit/mitigationactions/tasks/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
taskId]

instance
  Core.ToQuery
    DescribeAuditMitigationActionsTask
  where
  toQuery :: DescribeAuditMitigationActionsTask -> QueryString
toQuery = QueryString -> DescribeAuditMitigationActionsTask -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeAuditMitigationActionsTaskResponse' smart constructor.
data DescribeAuditMitigationActionsTaskResponse = DescribeAuditMitigationActionsTaskResponse'
  { -- | The date and time when the task was started.
    DescribeAuditMitigationActionsTaskResponse -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | Aggregate counts of the results when the mitigation tasks were applied
    -- to the findings for this audit mitigation actions task.
    DescribeAuditMitigationActionsTaskResponse
-> Maybe (HashMap Text TaskStatisticsForAuditCheck)
taskStatistics :: Prelude.Maybe (Prelude.HashMap Prelude.Text TaskStatisticsForAuditCheck),
    -- | Specifies the mitigation actions and their parameters that are applied
    -- as part of this task.
    DescribeAuditMitigationActionsTaskResponse
-> Maybe [MitigationAction]
actionsDefinition :: Prelude.Maybe [MitigationAction],
    -- | Specifies the mitigation actions that should be applied to specific
    -- audit checks.
    DescribeAuditMitigationActionsTaskResponse
-> Maybe (HashMap Text (NonEmpty Text))
auditCheckToActionsMapping :: Prelude.Maybe (Prelude.HashMap Prelude.Text (Prelude.NonEmpty Prelude.Text)),
    -- | The date and time when the task was completed or canceled.
    DescribeAuditMitigationActionsTaskResponse -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | Identifies the findings to which the mitigation actions are applied.
    -- This can be by audit checks, by audit task, or a set of findings.
    DescribeAuditMitigationActionsTaskResponse
-> Maybe AuditMitigationActionsTaskTarget
target :: Prelude.Maybe AuditMitigationActionsTaskTarget,
    -- | The current status of the task.
    DescribeAuditMitigationActionsTaskResponse
-> Maybe AuditMitigationActionsTaskStatus
taskStatus :: Prelude.Maybe AuditMitigationActionsTaskStatus,
    -- | The response's http status code.
    DescribeAuditMitigationActionsTaskResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAuditMitigationActionsTaskResponse
-> DescribeAuditMitigationActionsTaskResponse -> Bool
(DescribeAuditMitigationActionsTaskResponse
 -> DescribeAuditMitigationActionsTaskResponse -> Bool)
-> (DescribeAuditMitigationActionsTaskResponse
    -> DescribeAuditMitigationActionsTaskResponse -> Bool)
-> Eq DescribeAuditMitigationActionsTaskResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAuditMitigationActionsTaskResponse
-> DescribeAuditMitigationActionsTaskResponse -> Bool
$c/= :: DescribeAuditMitigationActionsTaskResponse
-> DescribeAuditMitigationActionsTaskResponse -> Bool
== :: DescribeAuditMitigationActionsTaskResponse
-> DescribeAuditMitigationActionsTaskResponse -> Bool
$c== :: DescribeAuditMitigationActionsTaskResponse
-> DescribeAuditMitigationActionsTaskResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAuditMitigationActionsTaskResponse]
ReadPrec DescribeAuditMitigationActionsTaskResponse
Int -> ReadS DescribeAuditMitigationActionsTaskResponse
ReadS [DescribeAuditMitigationActionsTaskResponse]
(Int -> ReadS DescribeAuditMitigationActionsTaskResponse)
-> ReadS [DescribeAuditMitigationActionsTaskResponse]
-> ReadPrec DescribeAuditMitigationActionsTaskResponse
-> ReadPrec [DescribeAuditMitigationActionsTaskResponse]
-> Read DescribeAuditMitigationActionsTaskResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAuditMitigationActionsTaskResponse]
$creadListPrec :: ReadPrec [DescribeAuditMitigationActionsTaskResponse]
readPrec :: ReadPrec DescribeAuditMitigationActionsTaskResponse
$creadPrec :: ReadPrec DescribeAuditMitigationActionsTaskResponse
readList :: ReadS [DescribeAuditMitigationActionsTaskResponse]
$creadList :: ReadS [DescribeAuditMitigationActionsTaskResponse]
readsPrec :: Int -> ReadS DescribeAuditMitigationActionsTaskResponse
$creadsPrec :: Int -> ReadS DescribeAuditMitigationActionsTaskResponse
Prelude.Read, Int -> DescribeAuditMitigationActionsTaskResponse -> ShowS
[DescribeAuditMitigationActionsTaskResponse] -> ShowS
DescribeAuditMitigationActionsTaskResponse -> String
(Int -> DescribeAuditMitigationActionsTaskResponse -> ShowS)
-> (DescribeAuditMitigationActionsTaskResponse -> String)
-> ([DescribeAuditMitigationActionsTaskResponse] -> ShowS)
-> Show DescribeAuditMitigationActionsTaskResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAuditMitigationActionsTaskResponse] -> ShowS
$cshowList :: [DescribeAuditMitigationActionsTaskResponse] -> ShowS
show :: DescribeAuditMitigationActionsTaskResponse -> String
$cshow :: DescribeAuditMitigationActionsTaskResponse -> String
showsPrec :: Int -> DescribeAuditMitigationActionsTaskResponse -> ShowS
$cshowsPrec :: Int -> DescribeAuditMitigationActionsTaskResponse -> ShowS
Prelude.Show, (forall x.
 DescribeAuditMitigationActionsTaskResponse
 -> Rep DescribeAuditMitigationActionsTaskResponse x)
-> (forall x.
    Rep DescribeAuditMitigationActionsTaskResponse x
    -> DescribeAuditMitigationActionsTaskResponse)
-> Generic DescribeAuditMitigationActionsTaskResponse
forall x.
Rep DescribeAuditMitigationActionsTaskResponse x
-> DescribeAuditMitigationActionsTaskResponse
forall x.
DescribeAuditMitigationActionsTaskResponse
-> Rep DescribeAuditMitigationActionsTaskResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAuditMitigationActionsTaskResponse x
-> DescribeAuditMitigationActionsTaskResponse
$cfrom :: forall x.
DescribeAuditMitigationActionsTaskResponse
-> Rep DescribeAuditMitigationActionsTaskResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAuditMitigationActionsTaskResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'startTime', 'describeAuditMitigationActionsTaskResponse_startTime' - The date and time when the task was started.
--
-- 'taskStatistics', 'describeAuditMitigationActionsTaskResponse_taskStatistics' - Aggregate counts of the results when the mitigation tasks were applied
-- to the findings for this audit mitigation actions task.
--
-- 'actionsDefinition', 'describeAuditMitigationActionsTaskResponse_actionsDefinition' - Specifies the mitigation actions and their parameters that are applied
-- as part of this task.
--
-- 'auditCheckToActionsMapping', 'describeAuditMitigationActionsTaskResponse_auditCheckToActionsMapping' - Specifies the mitigation actions that should be applied to specific
-- audit checks.
--
-- 'endTime', 'describeAuditMitigationActionsTaskResponse_endTime' - The date and time when the task was completed or canceled.
--
-- 'target', 'describeAuditMitigationActionsTaskResponse_target' - Identifies the findings to which the mitigation actions are applied.
-- This can be by audit checks, by audit task, or a set of findings.
--
-- 'taskStatus', 'describeAuditMitigationActionsTaskResponse_taskStatus' - The current status of the task.
--
-- 'httpStatus', 'describeAuditMitigationActionsTaskResponse_httpStatus' - The response's http status code.
newDescribeAuditMitigationActionsTaskResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAuditMitigationActionsTaskResponse
newDescribeAuditMitigationActionsTaskResponse :: Int -> DescribeAuditMitigationActionsTaskResponse
newDescribeAuditMitigationActionsTaskResponse
  Int
pHttpStatus_ =
    DescribeAuditMitigationActionsTaskResponse' :: Maybe POSIX
-> Maybe (HashMap Text TaskStatisticsForAuditCheck)
-> Maybe [MitigationAction]
-> Maybe (HashMap Text (NonEmpty Text))
-> Maybe POSIX
-> Maybe AuditMitigationActionsTaskTarget
-> Maybe AuditMitigationActionsTaskStatus
-> Int
-> DescribeAuditMitigationActionsTaskResponse
DescribeAuditMitigationActionsTaskResponse'
      { $sel:startTime:DescribeAuditMitigationActionsTaskResponse' :: Maybe POSIX
startTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:taskStatistics:DescribeAuditMitigationActionsTaskResponse' :: Maybe (HashMap Text TaskStatisticsForAuditCheck)
taskStatistics =
          Maybe (HashMap Text TaskStatisticsForAuditCheck)
forall a. Maybe a
Prelude.Nothing,
        $sel:actionsDefinition:DescribeAuditMitigationActionsTaskResponse' :: Maybe [MitigationAction]
actionsDefinition =
          Maybe [MitigationAction]
forall a. Maybe a
Prelude.Nothing,
        $sel:auditCheckToActionsMapping:DescribeAuditMitigationActionsTaskResponse' :: Maybe (HashMap Text (NonEmpty Text))
auditCheckToActionsMapping =
          Maybe (HashMap Text (NonEmpty Text))
forall a. Maybe a
Prelude.Nothing,
        $sel:endTime:DescribeAuditMitigationActionsTaskResponse' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:target:DescribeAuditMitigationActionsTaskResponse' :: Maybe AuditMitigationActionsTaskTarget
target = Maybe AuditMitigationActionsTaskTarget
forall a. Maybe a
Prelude.Nothing,
        $sel:taskStatus:DescribeAuditMitigationActionsTaskResponse' :: Maybe AuditMitigationActionsTaskStatus
taskStatus = Maybe AuditMitigationActionsTaskStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeAuditMitigationActionsTaskResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The date and time when the task was started.
describeAuditMitigationActionsTaskResponse_startTime :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe Prelude.UTCTime)
describeAuditMitigationActionsTaskResponse_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_startTime = (DescribeAuditMitigationActionsTaskResponse -> Maybe POSIX)
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe POSIX -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe POSIX
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:startTime:DescribeAuditMitigationActionsTaskResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: DescribeAuditMitigationActionsTaskResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeAuditMitigationActionsTaskResponse
 -> f DescribeAuditMitigationActionsTaskResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Aggregate counts of the results when the mitigation tasks were applied
-- to the findings for this audit mitigation actions task.
describeAuditMitigationActionsTaskResponse_taskStatistics :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text TaskStatisticsForAuditCheck))
describeAuditMitigationActionsTaskResponse_taskStatistics :: (Maybe (HashMap Text TaskStatisticsForAuditCheck)
 -> f (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_taskStatistics = (DescribeAuditMitigationActionsTaskResponse
 -> Maybe (HashMap Text TaskStatisticsForAuditCheck))
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe (HashMap Text TaskStatisticsForAuditCheck)
    -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe (HashMap Text TaskStatisticsForAuditCheck))
     (Maybe (HashMap Text TaskStatisticsForAuditCheck))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe (HashMap Text TaskStatisticsForAuditCheck)
taskStatistics :: Maybe (HashMap Text TaskStatisticsForAuditCheck)
$sel:taskStatistics:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse
-> Maybe (HashMap Text TaskStatisticsForAuditCheck)
taskStatistics} -> Maybe (HashMap Text TaskStatisticsForAuditCheck)
taskStatistics) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe (HashMap Text TaskStatisticsForAuditCheck)
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:taskStatistics:DescribeAuditMitigationActionsTaskResponse' :: Maybe (HashMap Text TaskStatisticsForAuditCheck)
taskStatistics = Maybe (HashMap Text TaskStatisticsForAuditCheck)
a} :: DescribeAuditMitigationActionsTaskResponse) ((Maybe (HashMap Text TaskStatisticsForAuditCheck)
  -> f (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
 -> DescribeAuditMitigationActionsTaskResponse
 -> f DescribeAuditMitigationActionsTaskResponse)
-> ((Maybe (HashMap Text TaskStatisticsForAuditCheck)
     -> f (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
    -> Maybe (HashMap Text TaskStatisticsForAuditCheck)
    -> f (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
-> (Maybe (HashMap Text TaskStatisticsForAuditCheck)
    -> f (Maybe (HashMap Text TaskStatisticsForAuditCheck)))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text TaskStatisticsForAuditCheck)
  (HashMap Text TaskStatisticsForAuditCheck)
  (HashMap Text TaskStatisticsForAuditCheck)
  (HashMap Text TaskStatisticsForAuditCheck)
-> Iso
     (Maybe (HashMap Text TaskStatisticsForAuditCheck))
     (Maybe (HashMap Text TaskStatisticsForAuditCheck))
     (Maybe (HashMap Text TaskStatisticsForAuditCheck))
     (Maybe (HashMap Text TaskStatisticsForAuditCheck))
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
  (HashMap Text TaskStatisticsForAuditCheck)
  (HashMap Text TaskStatisticsForAuditCheck)
  (HashMap Text TaskStatisticsForAuditCheck)
  (HashMap Text TaskStatisticsForAuditCheck)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies the mitigation actions and their parameters that are applied
-- as part of this task.
describeAuditMitigationActionsTaskResponse_actionsDefinition :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe [MitigationAction])
describeAuditMitigationActionsTaskResponse_actionsDefinition :: (Maybe [MitigationAction] -> f (Maybe [MitigationAction]))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_actionsDefinition = (DescribeAuditMitigationActionsTaskResponse
 -> Maybe [MitigationAction])
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe [MitigationAction]
    -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe [MitigationAction])
     (Maybe [MitigationAction])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe [MitigationAction]
actionsDefinition :: Maybe [MitigationAction]
$sel:actionsDefinition:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse
-> Maybe [MitigationAction]
actionsDefinition} -> Maybe [MitigationAction]
actionsDefinition) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe [MitigationAction]
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:actionsDefinition:DescribeAuditMitigationActionsTaskResponse' :: Maybe [MitigationAction]
actionsDefinition = Maybe [MitigationAction]
a} :: DescribeAuditMitigationActionsTaskResponse) ((Maybe [MitigationAction] -> f (Maybe [MitigationAction]))
 -> DescribeAuditMitigationActionsTaskResponse
 -> f DescribeAuditMitigationActionsTaskResponse)
-> ((Maybe [MitigationAction] -> f (Maybe [MitigationAction]))
    -> Maybe [MitigationAction] -> f (Maybe [MitigationAction]))
-> (Maybe [MitigationAction] -> f (Maybe [MitigationAction]))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [MitigationAction]
  [MitigationAction]
  [MitigationAction]
  [MitigationAction]
-> Iso
     (Maybe [MitigationAction])
     (Maybe [MitigationAction])
     (Maybe [MitigationAction])
     (Maybe [MitigationAction])
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
  [MitigationAction]
  [MitigationAction]
  [MitigationAction]
  [MitigationAction]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies the mitigation actions that should be applied to specific
-- audit checks.
describeAuditMitigationActionsTaskResponse_auditCheckToActionsMapping :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text (Prelude.NonEmpty Prelude.Text)))
describeAuditMitigationActionsTaskResponse_auditCheckToActionsMapping :: (Maybe (HashMap Text (NonEmpty Text))
 -> f (Maybe (HashMap Text (NonEmpty Text))))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_auditCheckToActionsMapping = (DescribeAuditMitigationActionsTaskResponse
 -> Maybe (HashMap Text (NonEmpty Text)))
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe (HashMap Text (NonEmpty Text))
    -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe (HashMap Text (NonEmpty Text)))
     (Maybe (HashMap Text (NonEmpty Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe (HashMap Text (NonEmpty Text))
auditCheckToActionsMapping :: Maybe (HashMap Text (NonEmpty Text))
$sel:auditCheckToActionsMapping:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse
-> Maybe (HashMap Text (NonEmpty Text))
auditCheckToActionsMapping} -> Maybe (HashMap Text (NonEmpty Text))
auditCheckToActionsMapping) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe (HashMap Text (NonEmpty Text))
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:auditCheckToActionsMapping:DescribeAuditMitigationActionsTaskResponse' :: Maybe (HashMap Text (NonEmpty Text))
auditCheckToActionsMapping = Maybe (HashMap Text (NonEmpty Text))
a} :: DescribeAuditMitigationActionsTaskResponse) ((Maybe (HashMap Text (NonEmpty Text))
  -> f (Maybe (HashMap Text (NonEmpty Text))))
 -> DescribeAuditMitigationActionsTaskResponse
 -> f DescribeAuditMitigationActionsTaskResponse)
-> ((Maybe (HashMap Text (NonEmpty Text))
     -> f (Maybe (HashMap Text (NonEmpty Text))))
    -> Maybe (HashMap Text (NonEmpty Text))
    -> f (Maybe (HashMap Text (NonEmpty Text))))
-> (Maybe (HashMap Text (NonEmpty Text))
    -> f (Maybe (HashMap Text (NonEmpty Text))))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text (NonEmpty Text))
  (HashMap Text (NonEmpty Text))
  (HashMap Text (NonEmpty Text))
  (HashMap Text (NonEmpty Text))
-> Iso
     (Maybe (HashMap Text (NonEmpty Text)))
     (Maybe (HashMap Text (NonEmpty Text)))
     (Maybe (HashMap Text (NonEmpty Text)))
     (Maybe (HashMap Text (NonEmpty 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
  (HashMap Text (NonEmpty Text))
  (HashMap Text (NonEmpty Text))
  (HashMap Text (NonEmpty Text))
  (HashMap Text (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The date and time when the task was completed or canceled.
describeAuditMitigationActionsTaskResponse_endTime :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe Prelude.UTCTime)
describeAuditMitigationActionsTaskResponse_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_endTime = (DescribeAuditMitigationActionsTaskResponse -> Maybe POSIX)
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe POSIX -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe POSIX
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:endTime:DescribeAuditMitigationActionsTaskResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: DescribeAuditMitigationActionsTaskResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeAuditMitigationActionsTaskResponse
 -> f DescribeAuditMitigationActionsTaskResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Identifies the findings to which the mitigation actions are applied.
-- This can be by audit checks, by audit task, or a set of findings.
describeAuditMitigationActionsTaskResponse_target :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe AuditMitigationActionsTaskTarget)
describeAuditMitigationActionsTaskResponse_target :: (Maybe AuditMitigationActionsTaskTarget
 -> f (Maybe AuditMitigationActionsTaskTarget))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_target = (DescribeAuditMitigationActionsTaskResponse
 -> Maybe AuditMitigationActionsTaskTarget)
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe AuditMitigationActionsTaskTarget
    -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe AuditMitigationActionsTaskTarget)
     (Maybe AuditMitigationActionsTaskTarget)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe AuditMitigationActionsTaskTarget
target :: Maybe AuditMitigationActionsTaskTarget
$sel:target:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse
-> Maybe AuditMitigationActionsTaskTarget
target} -> Maybe AuditMitigationActionsTaskTarget
target) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe AuditMitigationActionsTaskTarget
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:target:DescribeAuditMitigationActionsTaskResponse' :: Maybe AuditMitigationActionsTaskTarget
target = Maybe AuditMitigationActionsTaskTarget
a} :: DescribeAuditMitigationActionsTaskResponse)

-- | The current status of the task.
describeAuditMitigationActionsTaskResponse_taskStatus :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse (Prelude.Maybe AuditMitigationActionsTaskStatus)
describeAuditMitigationActionsTaskResponse_taskStatus :: (Maybe AuditMitigationActionsTaskStatus
 -> f (Maybe AuditMitigationActionsTaskStatus))
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_taskStatus = (DescribeAuditMitigationActionsTaskResponse
 -> Maybe AuditMitigationActionsTaskStatus)
-> (DescribeAuditMitigationActionsTaskResponse
    -> Maybe AuditMitigationActionsTaskStatus
    -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     (Maybe AuditMitigationActionsTaskStatus)
     (Maybe AuditMitigationActionsTaskStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Maybe AuditMitigationActionsTaskStatus
taskStatus :: Maybe AuditMitigationActionsTaskStatus
$sel:taskStatus:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse
-> Maybe AuditMitigationActionsTaskStatus
taskStatus} -> Maybe AuditMitigationActionsTaskStatus
taskStatus) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Maybe AuditMitigationActionsTaskStatus
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:taskStatus:DescribeAuditMitigationActionsTaskResponse' :: Maybe AuditMitigationActionsTaskStatus
taskStatus = Maybe AuditMitigationActionsTaskStatus
a} :: DescribeAuditMitigationActionsTaskResponse)

-- | The response's http status code.
describeAuditMitigationActionsTaskResponse_httpStatus :: Lens.Lens' DescribeAuditMitigationActionsTaskResponse Prelude.Int
describeAuditMitigationActionsTaskResponse_httpStatus :: (Int -> f Int)
-> DescribeAuditMitigationActionsTaskResponse
-> f DescribeAuditMitigationActionsTaskResponse
describeAuditMitigationActionsTaskResponse_httpStatus = (DescribeAuditMitigationActionsTaskResponse -> Int)
-> (DescribeAuditMitigationActionsTaskResponse
    -> Int -> DescribeAuditMitigationActionsTaskResponse)
-> Lens
     DescribeAuditMitigationActionsTaskResponse
     DescribeAuditMitigationActionsTaskResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditMitigationActionsTaskResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAuditMitigationActionsTaskResponse' :: DescribeAuditMitigationActionsTaskResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAuditMitigationActionsTaskResponse
s@DescribeAuditMitigationActionsTaskResponse' {} Int
a -> DescribeAuditMitigationActionsTaskResponse
s {$sel:httpStatus:DescribeAuditMitigationActionsTaskResponse' :: Int
httpStatus = Int
a} :: DescribeAuditMitigationActionsTaskResponse)

instance
  Prelude.NFData
    DescribeAuditMitigationActionsTaskResponse