{-# 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.MacieV2.DescribeClassificationJob
-- 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)
--
-- Retrieves the status and settings for a classification job.
module Amazonka.MacieV2.DescribeClassificationJob
  ( -- * Creating a Request
    DescribeClassificationJob (..),
    newDescribeClassificationJob,

    -- * Request Lenses
    describeClassificationJob_jobId,

    -- * Destructuring the Response
    DescribeClassificationJobResponse (..),
    newDescribeClassificationJobResponse,

    -- * Response Lenses
    describeClassificationJobResponse_lastRunErrorStatus,
    describeClassificationJobResponse_jobType,
    describeClassificationJobResponse_initialRun,
    describeClassificationJobResponse_jobId,
    describeClassificationJobResponse_clientToken,
    describeClassificationJobResponse_jobArn,
    describeClassificationJobResponse_s3JobDefinition,
    describeClassificationJobResponse_createdAt,
    describeClassificationJobResponse_userPausedDetails,
    describeClassificationJobResponse_samplingPercentage,
    describeClassificationJobResponse_managedDataIdentifierSelector,
    describeClassificationJobResponse_lastRunTime,
    describeClassificationJobResponse_customDataIdentifierIds,
    describeClassificationJobResponse_name,
    describeClassificationJobResponse_statistics,
    describeClassificationJobResponse_managedDataIdentifierIds,
    describeClassificationJobResponse_jobStatus,
    describeClassificationJobResponse_description,
    describeClassificationJobResponse_tags,
    describeClassificationJobResponse_scheduleFrequency,
    describeClassificationJobResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

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

-- |
-- Create a value of 'DescribeClassificationJob' 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:
--
-- 'jobId', 'describeClassificationJob_jobId' - The unique identifier for the classification job.
newDescribeClassificationJob ::
  -- | 'jobId'
  Prelude.Text ->
  DescribeClassificationJob
newDescribeClassificationJob :: Text -> DescribeClassificationJob
newDescribeClassificationJob Text
pJobId_ =
  DescribeClassificationJob' :: Text -> DescribeClassificationJob
DescribeClassificationJob' {$sel:jobId:DescribeClassificationJob' :: Text
jobId = Text
pJobId_}

-- | The unique identifier for the classification job.
describeClassificationJob_jobId :: Lens.Lens' DescribeClassificationJob Prelude.Text
describeClassificationJob_jobId :: (Text -> f Text)
-> DescribeClassificationJob -> f DescribeClassificationJob
describeClassificationJob_jobId = (DescribeClassificationJob -> Text)
-> (DescribeClassificationJob -> Text -> DescribeClassificationJob)
-> Lens
     DescribeClassificationJob DescribeClassificationJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJob' {Text
jobId :: Text
$sel:jobId:DescribeClassificationJob' :: DescribeClassificationJob -> Text
jobId} -> Text
jobId) (\s :: DescribeClassificationJob
s@DescribeClassificationJob' {} Text
a -> DescribeClassificationJob
s {$sel:jobId:DescribeClassificationJob' :: Text
jobId = Text
a} :: DescribeClassificationJob)

instance Core.AWSRequest DescribeClassificationJob where
  type
    AWSResponse DescribeClassificationJob =
      DescribeClassificationJobResponse
  request :: DescribeClassificationJob -> Request DescribeClassificationJob
request = Service
-> DescribeClassificationJob -> Request DescribeClassificationJob
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeClassificationJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeClassificationJob)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeClassificationJob))
-> Logger
-> Service
-> Proxy DescribeClassificationJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeClassificationJob)))
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 LastRunErrorStatus
-> Maybe JobType
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe S3JobDefinition
-> Maybe POSIX
-> Maybe UserPausedDetails
-> Maybe Int
-> Maybe ManagedDataIdentifierSelector
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Statistics
-> Maybe [Text]
-> Maybe JobStatus
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe JobScheduleFrequency
-> Int
-> DescribeClassificationJobResponse
DescribeClassificationJobResponse'
            (Maybe LastRunErrorStatus
 -> Maybe JobType
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe S3JobDefinition
 -> Maybe POSIX
 -> Maybe UserPausedDetails
 -> Maybe Int
 -> Maybe ManagedDataIdentifierSelector
 -> Maybe POSIX
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Statistics
 -> Maybe [Text]
 -> Maybe JobStatus
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe JobScheduleFrequency
 -> Int
 -> DescribeClassificationJobResponse)
-> Either String (Maybe LastRunErrorStatus)
-> Either
     String
     (Maybe JobType
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe S3JobDefinition
      -> Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe LastRunErrorStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastRunErrorStatus")
            Either
  String
  (Maybe JobType
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe S3JobDefinition
   -> Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe JobType)
-> Either
     String
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe S3JobDefinition
      -> Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe JobType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"jobType")
            Either
  String
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe S3JobDefinition
   -> Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe S3JobDefinition
      -> Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"initialRun")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe S3JobDefinition
   -> Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe S3JobDefinition
      -> Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"jobId")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe S3JobDefinition
   -> Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe S3JobDefinition
      -> Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"clientToken")
            Either
  String
  (Maybe Text
   -> Maybe S3JobDefinition
   -> Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe S3JobDefinition
      -> Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"jobArn")
            Either
  String
  (Maybe S3JobDefinition
   -> Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe S3JobDefinition)
-> Either
     String
     (Maybe POSIX
      -> Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe S3JobDefinition)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"s3JobDefinition")
            Either
  String
  (Maybe POSIX
   -> Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe UserPausedDetails
      -> Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"createdAt")
            Either
  String
  (Maybe UserPausedDetails
   -> Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe UserPausedDetails)
-> Either
     String
     (Maybe Int
      -> Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserPausedDetails)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"userPausedDetails")
            Either
  String
  (Maybe Int
   -> Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe ManagedDataIdentifierSelector
      -> Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"samplingPercentage")
            Either
  String
  (Maybe ManagedDataIdentifierSelector
   -> Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe ManagedDataIdentifierSelector)
-> Either
     String
     (Maybe POSIX
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe ManagedDataIdentifierSelector)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"managedDataIdentifierSelector")
            Either
  String
  (Maybe POSIX
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"lastRunTime")
            Either
  String
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe Text
      -> Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"customDataIdentifierIds"
                            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 Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Statistics
      -> Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"name")
            Either
  String
  (Maybe Statistics
   -> Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Statistics)
-> Either
     String
     (Maybe [Text]
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Statistics)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"statistics")
            Either
  String
  (Maybe [Text]
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe JobStatus
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"managedDataIdentifierIds"
                            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 JobStatus
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe JobStatus)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe JobStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"jobStatus")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Maybe JobScheduleFrequency
      -> Int
      -> DescribeClassificationJobResponse)
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
"description")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Maybe JobScheduleFrequency
   -> Int
   -> DescribeClassificationJobResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Maybe JobScheduleFrequency
      -> Int -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe JobScheduleFrequency
   -> Int -> DescribeClassificationJobResponse)
-> Either String (Maybe JobScheduleFrequency)
-> Either String (Int -> DescribeClassificationJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe JobScheduleFrequency)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"scheduleFrequency")
            Either String (Int -> DescribeClassificationJobResponse)
-> Either String Int
-> Either String DescribeClassificationJobResponse
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 DescribeClassificationJob

instance Prelude.NFData DescribeClassificationJob

instance Core.ToHeaders DescribeClassificationJob where
  toHeaders :: DescribeClassificationJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeClassificationJob -> 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.ToPath DescribeClassificationJob where
  toPath :: DescribeClassificationJob -> ByteString
toPath DescribeClassificationJob' {Text
jobId :: Text
$sel:jobId:DescribeClassificationJob' :: DescribeClassificationJob -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/jobs/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
jobId]

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

-- | /See:/ 'newDescribeClassificationJobResponse' smart constructor.
data DescribeClassificationJobResponse = DescribeClassificationJobResponse'
  { -- | Specifies whether any account- or bucket-level access errors occurred
    -- when the job ran. For a recurring job, this value indicates the error
    -- status of the job\'s most recent run.
    DescribeClassificationJobResponse -> Maybe LastRunErrorStatus
lastRunErrorStatus :: Prelude.Maybe LastRunErrorStatus,
    -- | The schedule for running the job. Possible values are:
    --
    -- -   ONE_TIME - The job runs only once.
    --
    -- -   SCHEDULED - The job runs on a daily, weekly, or monthly basis. The
    --     scheduleFrequency property indicates the recurrence pattern for the
    --     job.
    DescribeClassificationJobResponse -> Maybe JobType
jobType :: Prelude.Maybe JobType,
    -- | For a recurring job, specifies whether you configured the job to analyze
    -- all existing, eligible objects immediately after the job was created
    -- (true). If you configured the job to analyze only those objects that
    -- were created or changed after the job was created and before the job\'s
    -- first scheduled run, this value is false. This value is also false for a
    -- one-time job.
    DescribeClassificationJobResponse -> Maybe Bool
initialRun :: Prelude.Maybe Prelude.Bool,
    -- | The unique identifier for the job.
    DescribeClassificationJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The token that was provided to ensure the idempotency of the request to
    -- create the job.
    DescribeClassificationJobResponse -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the job.
    DescribeClassificationJobResponse -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The S3 buckets that contain the objects to analyze, and the scope of
    -- that analysis.
    DescribeClassificationJobResponse -> Maybe S3JobDefinition
s3JobDefinition :: Prelude.Maybe S3JobDefinition,
    -- | The date and time, in UTC and extended ISO 8601 format, when the job was
    -- created.
    DescribeClassificationJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | If the current status of the job is USER_PAUSED, specifies when the job
    -- was paused and when the job or job run will expire and be cancelled if
    -- it isn\'t resumed. This value is present only if the value for jobStatus
    -- is USER_PAUSED.
    DescribeClassificationJobResponse -> Maybe UserPausedDetails
userPausedDetails :: Prelude.Maybe UserPausedDetails,
    -- | The sampling depth, as a percentage, that determines the percentage of
    -- eligible objects that the job analyzes.
    DescribeClassificationJobResponse -> Maybe Int
samplingPercentage :: Prelude.Maybe Prelude.Int,
    -- | The selection type that determines which managed data identifiers the
    -- job uses to analyze data. Possible values are:
    --
    -- -   ALL - Use all the managed data identifiers that Amazon Macie
    --     provides.
    --
    -- -   EXCLUDE - Use all the managed data identifiers that Macie provides
    --     except the managed data identifiers specified by the
    --     managedDataIdentifierIds property.
    --
    -- -   INCLUDE - Use only the managed data identifiers specified by the
    --     managedDataIdentifierIds property.
    --
    -- -   NONE - Don\'t use any managed data identifiers.
    --
    -- If this value is null, the job uses all managed data identifiers. If
    -- this value is null, ALL, or EXCLUDE for a recurring job, the job also
    -- uses new managed data identifiers as they are released.
    DescribeClassificationJobResponse
-> Maybe ManagedDataIdentifierSelector
managedDataIdentifierSelector :: Prelude.Maybe ManagedDataIdentifierSelector,
    -- | The date and time, in UTC and extended ISO 8601 format, when the job
    -- started. If the job is a recurring job, this value indicates when the
    -- most recent run started.
    DescribeClassificationJobResponse -> Maybe POSIX
lastRunTime :: Prelude.Maybe Core.POSIX,
    -- | An array of unique identifiers, one for each custom data identifier that
    -- the job uses to analyze data. This value is null if the job uses only
    -- managed data identifiers to analyze data.
    DescribeClassificationJobResponse -> Maybe [Text]
customDataIdentifierIds :: Prelude.Maybe [Prelude.Text],
    -- | The custom name of the job.
    DescribeClassificationJobResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The number of times that the job has run and processing statistics for
    -- the job\'s current run.
    DescribeClassificationJobResponse -> Maybe Statistics
statistics :: Prelude.Maybe Statistics,
    -- | An array of unique identifiers, one for each managed data identifier
    -- that the job is explicitly configured to include (use) or exclude (not
    -- use) when it analyzes data. Inclusion or exclusion depends on the
    -- managed data identifier selection type specified for the job
    -- (managedDataIdentifierSelector). This value is null if the job\'s
    -- managed data identifier selection type is ALL or the job uses only
    -- custom data identifiers (customDataIdentifierIds) to analyze data.
    DescribeClassificationJobResponse -> Maybe [Text]
managedDataIdentifierIds :: Prelude.Maybe [Prelude.Text],
    -- | The current status of the job. Possible values are:
    --
    -- -   CANCELLED - You cancelled the job or, if it\'s a one-time job, you
    --     paused the job and didn\'t resume it within 30 days.
    --
    -- -   COMPLETE - For a one-time job, Amazon Macie finished processing the
    --     data specified for the job. This value doesn\'t apply to recurring
    --     jobs.
    --
    -- -   IDLE - For a recurring job, the previous scheduled run is complete
    --     and the next scheduled run is pending. This value doesn\'t apply to
    --     one-time jobs.
    --
    -- -   PAUSED - Macie started running the job but additional processing
    --     would exceed the monthly sensitive data discovery quota for your
    --     account or one or more member accounts that the job analyzes data
    --     for.
    --
    -- -   RUNNING - For a one-time job, the job is in progress. For a
    --     recurring job, a scheduled run is in progress.
    --
    -- -   USER_PAUSED - You paused the job. If you paused the job while it had
    --     a status of RUNNING and you don\'t resume it within 30 days of
    --     pausing it, the job or job run will expire and be cancelled,
    --     depending on the job\'s type. To check the expiration date, refer to
    --     the UserPausedDetails.jobExpiresAt property.
    DescribeClassificationJobResponse -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | The custom description of the job.
    DescribeClassificationJobResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | A map of key-value pairs that specifies which tags (keys and values) are
    -- associated with the classification job.
    DescribeClassificationJobResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The recurrence pattern for running the job. This value is null if the
    -- job is configured to run only once.
    DescribeClassificationJobResponse -> Maybe JobScheduleFrequency
scheduleFrequency :: Prelude.Maybe JobScheduleFrequency,
    -- | The response's http status code.
    DescribeClassificationJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeClassificationJobResponse
-> DescribeClassificationJobResponse -> Bool
(DescribeClassificationJobResponse
 -> DescribeClassificationJobResponse -> Bool)
-> (DescribeClassificationJobResponse
    -> DescribeClassificationJobResponse -> Bool)
-> Eq DescribeClassificationJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClassificationJobResponse
-> DescribeClassificationJobResponse -> Bool
$c/= :: DescribeClassificationJobResponse
-> DescribeClassificationJobResponse -> Bool
== :: DescribeClassificationJobResponse
-> DescribeClassificationJobResponse -> Bool
$c== :: DescribeClassificationJobResponse
-> DescribeClassificationJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeClassificationJobResponse]
ReadPrec DescribeClassificationJobResponse
Int -> ReadS DescribeClassificationJobResponse
ReadS [DescribeClassificationJobResponse]
(Int -> ReadS DescribeClassificationJobResponse)
-> ReadS [DescribeClassificationJobResponse]
-> ReadPrec DescribeClassificationJobResponse
-> ReadPrec [DescribeClassificationJobResponse]
-> Read DescribeClassificationJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClassificationJobResponse]
$creadListPrec :: ReadPrec [DescribeClassificationJobResponse]
readPrec :: ReadPrec DescribeClassificationJobResponse
$creadPrec :: ReadPrec DescribeClassificationJobResponse
readList :: ReadS [DescribeClassificationJobResponse]
$creadList :: ReadS [DescribeClassificationJobResponse]
readsPrec :: Int -> ReadS DescribeClassificationJobResponse
$creadsPrec :: Int -> ReadS DescribeClassificationJobResponse
Prelude.Read, Int -> DescribeClassificationJobResponse -> ShowS
[DescribeClassificationJobResponse] -> ShowS
DescribeClassificationJobResponse -> String
(Int -> DescribeClassificationJobResponse -> ShowS)
-> (DescribeClassificationJobResponse -> String)
-> ([DescribeClassificationJobResponse] -> ShowS)
-> Show DescribeClassificationJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClassificationJobResponse] -> ShowS
$cshowList :: [DescribeClassificationJobResponse] -> ShowS
show :: DescribeClassificationJobResponse -> String
$cshow :: DescribeClassificationJobResponse -> String
showsPrec :: Int -> DescribeClassificationJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeClassificationJobResponse -> ShowS
Prelude.Show, (forall x.
 DescribeClassificationJobResponse
 -> Rep DescribeClassificationJobResponse x)
-> (forall x.
    Rep DescribeClassificationJobResponse x
    -> DescribeClassificationJobResponse)
-> Generic DescribeClassificationJobResponse
forall x.
Rep DescribeClassificationJobResponse x
-> DescribeClassificationJobResponse
forall x.
DescribeClassificationJobResponse
-> Rep DescribeClassificationJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeClassificationJobResponse x
-> DescribeClassificationJobResponse
$cfrom :: forall x.
DescribeClassificationJobResponse
-> Rep DescribeClassificationJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeClassificationJobResponse' 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:
--
-- 'lastRunErrorStatus', 'describeClassificationJobResponse_lastRunErrorStatus' - Specifies whether any account- or bucket-level access errors occurred
-- when the job ran. For a recurring job, this value indicates the error
-- status of the job\'s most recent run.
--
-- 'jobType', 'describeClassificationJobResponse_jobType' - The schedule for running the job. Possible values are:
--
-- -   ONE_TIME - The job runs only once.
--
-- -   SCHEDULED - The job runs on a daily, weekly, or monthly basis. The
--     scheduleFrequency property indicates the recurrence pattern for the
--     job.
--
-- 'initialRun', 'describeClassificationJobResponse_initialRun' - For a recurring job, specifies whether you configured the job to analyze
-- all existing, eligible objects immediately after the job was created
-- (true). If you configured the job to analyze only those objects that
-- were created or changed after the job was created and before the job\'s
-- first scheduled run, this value is false. This value is also false for a
-- one-time job.
--
-- 'jobId', 'describeClassificationJobResponse_jobId' - The unique identifier for the job.
--
-- 'clientToken', 'describeClassificationJobResponse_clientToken' - The token that was provided to ensure the idempotency of the request to
-- create the job.
--
-- 'jobArn', 'describeClassificationJobResponse_jobArn' - The Amazon Resource Name (ARN) of the job.
--
-- 's3JobDefinition', 'describeClassificationJobResponse_s3JobDefinition' - The S3 buckets that contain the objects to analyze, and the scope of
-- that analysis.
--
-- 'createdAt', 'describeClassificationJobResponse_createdAt' - The date and time, in UTC and extended ISO 8601 format, when the job was
-- created.
--
-- 'userPausedDetails', 'describeClassificationJobResponse_userPausedDetails' - If the current status of the job is USER_PAUSED, specifies when the job
-- was paused and when the job or job run will expire and be cancelled if
-- it isn\'t resumed. This value is present only if the value for jobStatus
-- is USER_PAUSED.
--
-- 'samplingPercentage', 'describeClassificationJobResponse_samplingPercentage' - The sampling depth, as a percentage, that determines the percentage of
-- eligible objects that the job analyzes.
--
-- 'managedDataIdentifierSelector', 'describeClassificationJobResponse_managedDataIdentifierSelector' - The selection type that determines which managed data identifiers the
-- job uses to analyze data. Possible values are:
--
-- -   ALL - Use all the managed data identifiers that Amazon Macie
--     provides.
--
-- -   EXCLUDE - Use all the managed data identifiers that Macie provides
--     except the managed data identifiers specified by the
--     managedDataIdentifierIds property.
--
-- -   INCLUDE - Use only the managed data identifiers specified by the
--     managedDataIdentifierIds property.
--
-- -   NONE - Don\'t use any managed data identifiers.
--
-- If this value is null, the job uses all managed data identifiers. If
-- this value is null, ALL, or EXCLUDE for a recurring job, the job also
-- uses new managed data identifiers as they are released.
--
-- 'lastRunTime', 'describeClassificationJobResponse_lastRunTime' - The date and time, in UTC and extended ISO 8601 format, when the job
-- started. If the job is a recurring job, this value indicates when the
-- most recent run started.
--
-- 'customDataIdentifierIds', 'describeClassificationJobResponse_customDataIdentifierIds' - An array of unique identifiers, one for each custom data identifier that
-- the job uses to analyze data. This value is null if the job uses only
-- managed data identifiers to analyze data.
--
-- 'name', 'describeClassificationJobResponse_name' - The custom name of the job.
--
-- 'statistics', 'describeClassificationJobResponse_statistics' - The number of times that the job has run and processing statistics for
-- the job\'s current run.
--
-- 'managedDataIdentifierIds', 'describeClassificationJobResponse_managedDataIdentifierIds' - An array of unique identifiers, one for each managed data identifier
-- that the job is explicitly configured to include (use) or exclude (not
-- use) when it analyzes data. Inclusion or exclusion depends on the
-- managed data identifier selection type specified for the job
-- (managedDataIdentifierSelector). This value is null if the job\'s
-- managed data identifier selection type is ALL or the job uses only
-- custom data identifiers (customDataIdentifierIds) to analyze data.
--
-- 'jobStatus', 'describeClassificationJobResponse_jobStatus' - The current status of the job. Possible values are:
--
-- -   CANCELLED - You cancelled the job or, if it\'s a one-time job, you
--     paused the job and didn\'t resume it within 30 days.
--
-- -   COMPLETE - For a one-time job, Amazon Macie finished processing the
--     data specified for the job. This value doesn\'t apply to recurring
--     jobs.
--
-- -   IDLE - For a recurring job, the previous scheduled run is complete
--     and the next scheduled run is pending. This value doesn\'t apply to
--     one-time jobs.
--
-- -   PAUSED - Macie started running the job but additional processing
--     would exceed the monthly sensitive data discovery quota for your
--     account or one or more member accounts that the job analyzes data
--     for.
--
-- -   RUNNING - For a one-time job, the job is in progress. For a
--     recurring job, a scheduled run is in progress.
--
-- -   USER_PAUSED - You paused the job. If you paused the job while it had
--     a status of RUNNING and you don\'t resume it within 30 days of
--     pausing it, the job or job run will expire and be cancelled,
--     depending on the job\'s type. To check the expiration date, refer to
--     the UserPausedDetails.jobExpiresAt property.
--
-- 'description', 'describeClassificationJobResponse_description' - The custom description of the job.
--
-- 'tags', 'describeClassificationJobResponse_tags' - A map of key-value pairs that specifies which tags (keys and values) are
-- associated with the classification job.
--
-- 'scheduleFrequency', 'describeClassificationJobResponse_scheduleFrequency' - The recurrence pattern for running the job. This value is null if the
-- job is configured to run only once.
--
-- 'httpStatus', 'describeClassificationJobResponse_httpStatus' - The response's http status code.
newDescribeClassificationJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeClassificationJobResponse
newDescribeClassificationJobResponse :: Int -> DescribeClassificationJobResponse
newDescribeClassificationJobResponse Int
pHttpStatus_ =
  DescribeClassificationJobResponse' :: Maybe LastRunErrorStatus
-> Maybe JobType
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe S3JobDefinition
-> Maybe POSIX
-> Maybe UserPausedDetails
-> Maybe Int
-> Maybe ManagedDataIdentifierSelector
-> Maybe POSIX
-> Maybe [Text]
-> Maybe Text
-> Maybe Statistics
-> Maybe [Text]
-> Maybe JobStatus
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe JobScheduleFrequency
-> Int
-> DescribeClassificationJobResponse
DescribeClassificationJobResponse'
    { $sel:lastRunErrorStatus:DescribeClassificationJobResponse' :: Maybe LastRunErrorStatus
lastRunErrorStatus =
        Maybe LastRunErrorStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:jobType:DescribeClassificationJobResponse' :: Maybe JobType
jobType = Maybe JobType
forall a. Maybe a
Prelude.Nothing,
      $sel:initialRun:DescribeClassificationJobResponse' :: Maybe Bool
initialRun = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:DescribeClassificationJobResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:clientToken:DescribeClassificationJobResponse' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:DescribeClassificationJobResponse' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:s3JobDefinition:DescribeClassificationJobResponse' :: Maybe S3JobDefinition
s3JobDefinition = Maybe S3JobDefinition
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:DescribeClassificationJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:userPausedDetails:DescribeClassificationJobResponse' :: Maybe UserPausedDetails
userPausedDetails = Maybe UserPausedDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:samplingPercentage:DescribeClassificationJobResponse' :: Maybe Int
samplingPercentage = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:managedDataIdentifierSelector:DescribeClassificationJobResponse' :: Maybe ManagedDataIdentifierSelector
managedDataIdentifierSelector =
        Maybe ManagedDataIdentifierSelector
forall a. Maybe a
Prelude.Nothing,
      $sel:lastRunTime:DescribeClassificationJobResponse' :: Maybe POSIX
lastRunTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:customDataIdentifierIds:DescribeClassificationJobResponse' :: Maybe [Text]
customDataIdentifierIds =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DescribeClassificationJobResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statistics:DescribeClassificationJobResponse' :: Maybe Statistics
statistics = Maybe Statistics
forall a. Maybe a
Prelude.Nothing,
      $sel:managedDataIdentifierIds:DescribeClassificationJobResponse' :: Maybe [Text]
managedDataIdentifierIds =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:DescribeClassificationJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:description:DescribeClassificationJobResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeClassificationJobResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:scheduleFrequency:DescribeClassificationJobResponse' :: Maybe JobScheduleFrequency
scheduleFrequency = Maybe JobScheduleFrequency
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeClassificationJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Specifies whether any account- or bucket-level access errors occurred
-- when the job ran. For a recurring job, this value indicates the error
-- status of the job\'s most recent run.
describeClassificationJobResponse_lastRunErrorStatus :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe LastRunErrorStatus)
describeClassificationJobResponse_lastRunErrorStatus :: (Maybe LastRunErrorStatus -> f (Maybe LastRunErrorStatus))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_lastRunErrorStatus = (DescribeClassificationJobResponse -> Maybe LastRunErrorStatus)
-> (DescribeClassificationJobResponse
    -> Maybe LastRunErrorStatus -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe LastRunErrorStatus)
     (Maybe LastRunErrorStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe LastRunErrorStatus
lastRunErrorStatus :: Maybe LastRunErrorStatus
$sel:lastRunErrorStatus:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe LastRunErrorStatus
lastRunErrorStatus} -> Maybe LastRunErrorStatus
lastRunErrorStatus) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe LastRunErrorStatus
a -> DescribeClassificationJobResponse
s {$sel:lastRunErrorStatus:DescribeClassificationJobResponse' :: Maybe LastRunErrorStatus
lastRunErrorStatus = Maybe LastRunErrorStatus
a} :: DescribeClassificationJobResponse)

-- | The schedule for running the job. Possible values are:
--
-- -   ONE_TIME - The job runs only once.
--
-- -   SCHEDULED - The job runs on a daily, weekly, or monthly basis. The
--     scheduleFrequency property indicates the recurrence pattern for the
--     job.
describeClassificationJobResponse_jobType :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe JobType)
describeClassificationJobResponse_jobType :: (Maybe JobType -> f (Maybe JobType))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_jobType = (DescribeClassificationJobResponse -> Maybe JobType)
-> (DescribeClassificationJobResponse
    -> Maybe JobType -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe JobType)
     (Maybe JobType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe JobType
jobType :: Maybe JobType
$sel:jobType:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe JobType
jobType} -> Maybe JobType
jobType) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe JobType
a -> DescribeClassificationJobResponse
s {$sel:jobType:DescribeClassificationJobResponse' :: Maybe JobType
jobType = Maybe JobType
a} :: DescribeClassificationJobResponse)

-- | For a recurring job, specifies whether you configured the job to analyze
-- all existing, eligible objects immediately after the job was created
-- (true). If you configured the job to analyze only those objects that
-- were created or changed after the job was created and before the job\'s
-- first scheduled run, this value is false. This value is also false for a
-- one-time job.
describeClassificationJobResponse_initialRun :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Bool)
describeClassificationJobResponse_initialRun :: (Maybe Bool -> f (Maybe Bool))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_initialRun = (DescribeClassificationJobResponse -> Maybe Bool)
-> (DescribeClassificationJobResponse
    -> Maybe Bool -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Bool
initialRun :: Maybe Bool
$sel:initialRun:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Bool
initialRun} -> Maybe Bool
initialRun) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Bool
a -> DescribeClassificationJobResponse
s {$sel:initialRun:DescribeClassificationJobResponse' :: Maybe Bool
initialRun = Maybe Bool
a} :: DescribeClassificationJobResponse)

-- | The unique identifier for the job.
describeClassificationJobResponse_jobId :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Text)
describeClassificationJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_jobId = (DescribeClassificationJobResponse -> Maybe Text)
-> (DescribeClassificationJobResponse
    -> Maybe Text -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Text
a -> DescribeClassificationJobResponse
s {$sel:jobId:DescribeClassificationJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: DescribeClassificationJobResponse)

-- | The token that was provided to ensure the idempotency of the request to
-- create the job.
describeClassificationJobResponse_clientToken :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Text)
describeClassificationJobResponse_clientToken :: (Maybe Text -> f (Maybe Text))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_clientToken = (DescribeClassificationJobResponse -> Maybe Text)
-> (DescribeClassificationJobResponse
    -> Maybe Text -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Text
a -> DescribeClassificationJobResponse
s {$sel:clientToken:DescribeClassificationJobResponse' :: Maybe Text
clientToken = Maybe Text
a} :: DescribeClassificationJobResponse)

-- | The Amazon Resource Name (ARN) of the job.
describeClassificationJobResponse_jobArn :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Text)
describeClassificationJobResponse_jobArn :: (Maybe Text -> f (Maybe Text))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_jobArn = (DescribeClassificationJobResponse -> Maybe Text)
-> (DescribeClassificationJobResponse
    -> Maybe Text -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Text
a -> DescribeClassificationJobResponse
s {$sel:jobArn:DescribeClassificationJobResponse' :: Maybe Text
jobArn = Maybe Text
a} :: DescribeClassificationJobResponse)

-- | The S3 buckets that contain the objects to analyze, and the scope of
-- that analysis.
describeClassificationJobResponse_s3JobDefinition :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe S3JobDefinition)
describeClassificationJobResponse_s3JobDefinition :: (Maybe S3JobDefinition -> f (Maybe S3JobDefinition))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_s3JobDefinition = (DescribeClassificationJobResponse -> Maybe S3JobDefinition)
-> (DescribeClassificationJobResponse
    -> Maybe S3JobDefinition -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe S3JobDefinition)
     (Maybe S3JobDefinition)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe S3JobDefinition
s3JobDefinition :: Maybe S3JobDefinition
$sel:s3JobDefinition:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe S3JobDefinition
s3JobDefinition} -> Maybe S3JobDefinition
s3JobDefinition) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe S3JobDefinition
a -> DescribeClassificationJobResponse
s {$sel:s3JobDefinition:DescribeClassificationJobResponse' :: Maybe S3JobDefinition
s3JobDefinition = Maybe S3JobDefinition
a} :: DescribeClassificationJobResponse)

-- | The date and time, in UTC and extended ISO 8601 format, when the job was
-- created.
describeClassificationJobResponse_createdAt :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.UTCTime)
describeClassificationJobResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_createdAt = (DescribeClassificationJobResponse -> Maybe POSIX)
-> (DescribeClassificationJobResponse
    -> Maybe POSIX -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe POSIX
a -> DescribeClassificationJobResponse
s {$sel:createdAt:DescribeClassificationJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeClassificationJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeClassificationJobResponse
 -> f DescribeClassificationJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
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

-- | If the current status of the job is USER_PAUSED, specifies when the job
-- was paused and when the job or job run will expire and be cancelled if
-- it isn\'t resumed. This value is present only if the value for jobStatus
-- is USER_PAUSED.
describeClassificationJobResponse_userPausedDetails :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe UserPausedDetails)
describeClassificationJobResponse_userPausedDetails :: (Maybe UserPausedDetails -> f (Maybe UserPausedDetails))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_userPausedDetails = (DescribeClassificationJobResponse -> Maybe UserPausedDetails)
-> (DescribeClassificationJobResponse
    -> Maybe UserPausedDetails -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe UserPausedDetails)
     (Maybe UserPausedDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe UserPausedDetails
userPausedDetails :: Maybe UserPausedDetails
$sel:userPausedDetails:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe UserPausedDetails
userPausedDetails} -> Maybe UserPausedDetails
userPausedDetails) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe UserPausedDetails
a -> DescribeClassificationJobResponse
s {$sel:userPausedDetails:DescribeClassificationJobResponse' :: Maybe UserPausedDetails
userPausedDetails = Maybe UserPausedDetails
a} :: DescribeClassificationJobResponse)

-- | The sampling depth, as a percentage, that determines the percentage of
-- eligible objects that the job analyzes.
describeClassificationJobResponse_samplingPercentage :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Int)
describeClassificationJobResponse_samplingPercentage :: (Maybe Int -> f (Maybe Int))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_samplingPercentage = (DescribeClassificationJobResponse -> Maybe Int)
-> (DescribeClassificationJobResponse
    -> Maybe Int -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Int
samplingPercentage :: Maybe Int
$sel:samplingPercentage:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Int
samplingPercentage} -> Maybe Int
samplingPercentage) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Int
a -> DescribeClassificationJobResponse
s {$sel:samplingPercentage:DescribeClassificationJobResponse' :: Maybe Int
samplingPercentage = Maybe Int
a} :: DescribeClassificationJobResponse)

-- | The selection type that determines which managed data identifiers the
-- job uses to analyze data. Possible values are:
--
-- -   ALL - Use all the managed data identifiers that Amazon Macie
--     provides.
--
-- -   EXCLUDE - Use all the managed data identifiers that Macie provides
--     except the managed data identifiers specified by the
--     managedDataIdentifierIds property.
--
-- -   INCLUDE - Use only the managed data identifiers specified by the
--     managedDataIdentifierIds property.
--
-- -   NONE - Don\'t use any managed data identifiers.
--
-- If this value is null, the job uses all managed data identifiers. If
-- this value is null, ALL, or EXCLUDE for a recurring job, the job also
-- uses new managed data identifiers as they are released.
describeClassificationJobResponse_managedDataIdentifierSelector :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe ManagedDataIdentifierSelector)
describeClassificationJobResponse_managedDataIdentifierSelector :: (Maybe ManagedDataIdentifierSelector
 -> f (Maybe ManagedDataIdentifierSelector))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_managedDataIdentifierSelector = (DescribeClassificationJobResponse
 -> Maybe ManagedDataIdentifierSelector)
-> (DescribeClassificationJobResponse
    -> Maybe ManagedDataIdentifierSelector
    -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe ManagedDataIdentifierSelector)
     (Maybe ManagedDataIdentifierSelector)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe ManagedDataIdentifierSelector
managedDataIdentifierSelector :: Maybe ManagedDataIdentifierSelector
$sel:managedDataIdentifierSelector:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse
-> Maybe ManagedDataIdentifierSelector
managedDataIdentifierSelector} -> Maybe ManagedDataIdentifierSelector
managedDataIdentifierSelector) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe ManagedDataIdentifierSelector
a -> DescribeClassificationJobResponse
s {$sel:managedDataIdentifierSelector:DescribeClassificationJobResponse' :: Maybe ManagedDataIdentifierSelector
managedDataIdentifierSelector = Maybe ManagedDataIdentifierSelector
a} :: DescribeClassificationJobResponse)

-- | The date and time, in UTC and extended ISO 8601 format, when the job
-- started. If the job is a recurring job, this value indicates when the
-- most recent run started.
describeClassificationJobResponse_lastRunTime :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.UTCTime)
describeClassificationJobResponse_lastRunTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_lastRunTime = (DescribeClassificationJobResponse -> Maybe POSIX)
-> (DescribeClassificationJobResponse
    -> Maybe POSIX -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe POSIX
lastRunTime :: Maybe POSIX
$sel:lastRunTime:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe POSIX
lastRunTime} -> Maybe POSIX
lastRunTime) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe POSIX
a -> DescribeClassificationJobResponse
s {$sel:lastRunTime:DescribeClassificationJobResponse' :: Maybe POSIX
lastRunTime = Maybe POSIX
a} :: DescribeClassificationJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeClassificationJobResponse
 -> f DescribeClassificationJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
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

-- | An array of unique identifiers, one for each custom data identifier that
-- the job uses to analyze data. This value is null if the job uses only
-- managed data identifiers to analyze data.
describeClassificationJobResponse_customDataIdentifierIds :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe [Prelude.Text])
describeClassificationJobResponse_customDataIdentifierIds :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_customDataIdentifierIds = (DescribeClassificationJobResponse -> Maybe [Text])
-> (DescribeClassificationJobResponse
    -> Maybe [Text] -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe [Text]
customDataIdentifierIds :: Maybe [Text]
$sel:customDataIdentifierIds:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe [Text]
customDataIdentifierIds} -> Maybe [Text]
customDataIdentifierIds) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe [Text]
a -> DescribeClassificationJobResponse
s {$sel:customDataIdentifierIds:DescribeClassificationJobResponse' :: Maybe [Text]
customDataIdentifierIds = Maybe [Text]
a} :: DescribeClassificationJobResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeClassificationJobResponse
 -> f DescribeClassificationJobResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
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

-- | The custom name of the job.
describeClassificationJobResponse_name :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Text)
describeClassificationJobResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_name = (DescribeClassificationJobResponse -> Maybe Text)
-> (DescribeClassificationJobResponse
    -> Maybe Text -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Text
a -> DescribeClassificationJobResponse
s {$sel:name:DescribeClassificationJobResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeClassificationJobResponse)

-- | The number of times that the job has run and processing statistics for
-- the job\'s current run.
describeClassificationJobResponse_statistics :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Statistics)
describeClassificationJobResponse_statistics :: (Maybe Statistics -> f (Maybe Statistics))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_statistics = (DescribeClassificationJobResponse -> Maybe Statistics)
-> (DescribeClassificationJobResponse
    -> Maybe Statistics -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Statistics)
     (Maybe Statistics)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Statistics
statistics :: Maybe Statistics
$sel:statistics:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Statistics
statistics} -> Maybe Statistics
statistics) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Statistics
a -> DescribeClassificationJobResponse
s {$sel:statistics:DescribeClassificationJobResponse' :: Maybe Statistics
statistics = Maybe Statistics
a} :: DescribeClassificationJobResponse)

-- | An array of unique identifiers, one for each managed data identifier
-- that the job is explicitly configured to include (use) or exclude (not
-- use) when it analyzes data. Inclusion or exclusion depends on the
-- managed data identifier selection type specified for the job
-- (managedDataIdentifierSelector). This value is null if the job\'s
-- managed data identifier selection type is ALL or the job uses only
-- custom data identifiers (customDataIdentifierIds) to analyze data.
describeClassificationJobResponse_managedDataIdentifierIds :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe [Prelude.Text])
describeClassificationJobResponse_managedDataIdentifierIds :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_managedDataIdentifierIds = (DescribeClassificationJobResponse -> Maybe [Text])
-> (DescribeClassificationJobResponse
    -> Maybe [Text] -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe [Text]
managedDataIdentifierIds :: Maybe [Text]
$sel:managedDataIdentifierIds:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe [Text]
managedDataIdentifierIds} -> Maybe [Text]
managedDataIdentifierIds) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe [Text]
a -> DescribeClassificationJobResponse
s {$sel:managedDataIdentifierIds:DescribeClassificationJobResponse' :: Maybe [Text]
managedDataIdentifierIds = Maybe [Text]
a} :: DescribeClassificationJobResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeClassificationJobResponse
 -> f DescribeClassificationJobResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
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

-- | The current status of the job. Possible values are:
--
-- -   CANCELLED - You cancelled the job or, if it\'s a one-time job, you
--     paused the job and didn\'t resume it within 30 days.
--
-- -   COMPLETE - For a one-time job, Amazon Macie finished processing the
--     data specified for the job. This value doesn\'t apply to recurring
--     jobs.
--
-- -   IDLE - For a recurring job, the previous scheduled run is complete
--     and the next scheduled run is pending. This value doesn\'t apply to
--     one-time jobs.
--
-- -   PAUSED - Macie started running the job but additional processing
--     would exceed the monthly sensitive data discovery quota for your
--     account or one or more member accounts that the job analyzes data
--     for.
--
-- -   RUNNING - For a one-time job, the job is in progress. For a
--     recurring job, a scheduled run is in progress.
--
-- -   USER_PAUSED - You paused the job. If you paused the job while it had
--     a status of RUNNING and you don\'t resume it within 30 days of
--     pausing it, the job or job run will expire and be cancelled,
--     depending on the job\'s type. To check the expiration date, refer to
--     the UserPausedDetails.jobExpiresAt property.
describeClassificationJobResponse_jobStatus :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe JobStatus)
describeClassificationJobResponse_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_jobStatus = (DescribeClassificationJobResponse -> Maybe JobStatus)
-> (DescribeClassificationJobResponse
    -> Maybe JobStatus -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe JobStatus)
     (Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe JobStatus
a -> DescribeClassificationJobResponse
s {$sel:jobStatus:DescribeClassificationJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: DescribeClassificationJobResponse)

-- | The custom description of the job.
describeClassificationJobResponse_description :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe Prelude.Text)
describeClassificationJobResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_description = (DescribeClassificationJobResponse -> Maybe Text)
-> (DescribeClassificationJobResponse
    -> Maybe Text -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe Text
a -> DescribeClassificationJobResponse
s {$sel:description:DescribeClassificationJobResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeClassificationJobResponse)

-- | A map of key-value pairs that specifies which tags (keys and values) are
-- associated with the classification job.
describeClassificationJobResponse_tags :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeClassificationJobResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_tags = (DescribeClassificationJobResponse -> Maybe (HashMap Text Text))
-> (DescribeClassificationJobResponse
    -> Maybe (HashMap Text Text) -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe (HashMap Text Text)
a -> DescribeClassificationJobResponse
s {$sel:tags:DescribeClassificationJobResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeClassificationJobResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeClassificationJobResponse
 -> f DescribeClassificationJobResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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 Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The recurrence pattern for running the job. This value is null if the
-- job is configured to run only once.
describeClassificationJobResponse_scheduleFrequency :: Lens.Lens' DescribeClassificationJobResponse (Prelude.Maybe JobScheduleFrequency)
describeClassificationJobResponse_scheduleFrequency :: (Maybe JobScheduleFrequency -> f (Maybe JobScheduleFrequency))
-> DescribeClassificationJobResponse
-> f DescribeClassificationJobResponse
describeClassificationJobResponse_scheduleFrequency = (DescribeClassificationJobResponse -> Maybe JobScheduleFrequency)
-> (DescribeClassificationJobResponse
    -> Maybe JobScheduleFrequency -> DescribeClassificationJobResponse)
-> Lens
     DescribeClassificationJobResponse
     DescribeClassificationJobResponse
     (Maybe JobScheduleFrequency)
     (Maybe JobScheduleFrequency)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClassificationJobResponse' {Maybe JobScheduleFrequency
scheduleFrequency :: Maybe JobScheduleFrequency
$sel:scheduleFrequency:DescribeClassificationJobResponse' :: DescribeClassificationJobResponse -> Maybe JobScheduleFrequency
scheduleFrequency} -> Maybe JobScheduleFrequency
scheduleFrequency) (\s :: DescribeClassificationJobResponse
s@DescribeClassificationJobResponse' {} Maybe JobScheduleFrequency
a -> DescribeClassificationJobResponse
s {$sel:scheduleFrequency:DescribeClassificationJobResponse' :: Maybe JobScheduleFrequency
scheduleFrequency = Maybe JobScheduleFrequency
a} :: DescribeClassificationJobResponse)

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

instance
  Prelude.NFData
    DescribeClassificationJobResponse