{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.Comprehend.Types.PiiEntitiesDetectionJobProperties
-- 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)
module Amazonka.Comprehend.Types.PiiEntitiesDetectionJobProperties where

import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.PiiEntitiesDetectionMode
import Amazonka.Comprehend.Types.PiiOutputDataConfig
import Amazonka.Comprehend.Types.RedactionConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides information about a PII entities detection job.
--
-- /See:/ 'newPiiEntitiesDetectionJobProperties' smart constructor.
data PiiEntitiesDetectionJobProperties = PiiEntitiesDetectionJobProperties'
  { -- | The language code of the input documents
    PiiEntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
    -- | The identifier assigned to the PII entities detection job.
    PiiEntitiesDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the PII entities detection job. It is
    -- a unique, fully qualified identifier for the job. It includes the AWS
    -- account, Region, and the job ID. The format of the ARN is as follows:
    --
    -- @arn:\<partition>:comprehend:\<region>:\<account-id>:pii-entities-detection-job\/\<job-id>@
    --
    -- The following is an example job ARN:
    --
    -- @arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job\/1234abcd12ab34cd56ef1234567890ab@
    PiiEntitiesDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The name that you assigned the PII entities detection job.
    PiiEntitiesDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the output provides the locations (offsets) of PII
    -- entities or a file in which PII entities are redacted.
    PiiEntitiesDetectionJobProperties -> Maybe PiiEntitiesDetectionMode
mode :: Prelude.Maybe PiiEntitiesDetectionMode,
    -- | The input properties for a PII entities detection job.
    PiiEntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
    -- | Provides configuration parameters for PII entity redaction.
    --
    -- This parameter is required if you set the @Mode@ parameter to
    -- @ONLY_REDACTION@. In that case, you must provide a @RedactionConfig@
    -- definition that includes the @PiiEntityTypes@ parameter.
    PiiEntitiesDetectionJobProperties -> Maybe RedactionConfig
redactionConfig :: Prelude.Maybe RedactionConfig,
    -- | The time that the PII entities detection job completed.
    PiiEntitiesDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The output data configuration that you supplied when you created the PII
    -- entities detection job.
    PiiEntitiesDetectionJobProperties -> Maybe PiiOutputDataConfig
outputDataConfig :: Prelude.Maybe PiiOutputDataConfig,
    -- | The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
    -- to your input data.
    PiiEntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The current status of the PII entities detection job. If the status is
    -- @FAILED@, the @Message@ field shows the reason for the failure.
    PiiEntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | A description of the status of a job.
    PiiEntitiesDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The time that the PII entities detection job was submitted for
    -- processing.
    PiiEntitiesDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
  }
  deriving (PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
(PiiEntitiesDetectionJobProperties
 -> PiiEntitiesDetectionJobProperties -> Bool)
-> (PiiEntitiesDetectionJobProperties
    -> PiiEntitiesDetectionJobProperties -> Bool)
-> Eq PiiEntitiesDetectionJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
$c/= :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
== :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
$c== :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [PiiEntitiesDetectionJobProperties]
ReadPrec PiiEntitiesDetectionJobProperties
Int -> ReadS PiiEntitiesDetectionJobProperties
ReadS [PiiEntitiesDetectionJobProperties]
(Int -> ReadS PiiEntitiesDetectionJobProperties)
-> ReadS [PiiEntitiesDetectionJobProperties]
-> ReadPrec PiiEntitiesDetectionJobProperties
-> ReadPrec [PiiEntitiesDetectionJobProperties]
-> Read PiiEntitiesDetectionJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PiiEntitiesDetectionJobProperties]
$creadListPrec :: ReadPrec [PiiEntitiesDetectionJobProperties]
readPrec :: ReadPrec PiiEntitiesDetectionJobProperties
$creadPrec :: ReadPrec PiiEntitiesDetectionJobProperties
readList :: ReadS [PiiEntitiesDetectionJobProperties]
$creadList :: ReadS [PiiEntitiesDetectionJobProperties]
readsPrec :: Int -> ReadS PiiEntitiesDetectionJobProperties
$creadsPrec :: Int -> ReadS PiiEntitiesDetectionJobProperties
Prelude.Read, Int -> PiiEntitiesDetectionJobProperties -> ShowS
[PiiEntitiesDetectionJobProperties] -> ShowS
PiiEntitiesDetectionJobProperties -> String
(Int -> PiiEntitiesDetectionJobProperties -> ShowS)
-> (PiiEntitiesDetectionJobProperties -> String)
-> ([PiiEntitiesDetectionJobProperties] -> ShowS)
-> Show PiiEntitiesDetectionJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PiiEntitiesDetectionJobProperties] -> ShowS
$cshowList :: [PiiEntitiesDetectionJobProperties] -> ShowS
show :: PiiEntitiesDetectionJobProperties -> String
$cshow :: PiiEntitiesDetectionJobProperties -> String
showsPrec :: Int -> PiiEntitiesDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> PiiEntitiesDetectionJobProperties -> ShowS
Prelude.Show, (forall x.
 PiiEntitiesDetectionJobProperties
 -> Rep PiiEntitiesDetectionJobProperties x)
-> (forall x.
    Rep PiiEntitiesDetectionJobProperties x
    -> PiiEntitiesDetectionJobProperties)
-> Generic PiiEntitiesDetectionJobProperties
forall x.
Rep PiiEntitiesDetectionJobProperties x
-> PiiEntitiesDetectionJobProperties
forall x.
PiiEntitiesDetectionJobProperties
-> Rep PiiEntitiesDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PiiEntitiesDetectionJobProperties x
-> PiiEntitiesDetectionJobProperties
$cfrom :: forall x.
PiiEntitiesDetectionJobProperties
-> Rep PiiEntitiesDetectionJobProperties x
Prelude.Generic)

-- |
-- Create a value of 'PiiEntitiesDetectionJobProperties' 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:
--
-- 'languageCode', 'piiEntitiesDetectionJobProperties_languageCode' - The language code of the input documents
--
-- 'jobId', 'piiEntitiesDetectionJobProperties_jobId' - The identifier assigned to the PII entities detection job.
--
-- 'jobArn', 'piiEntitiesDetectionJobProperties_jobArn' - The Amazon Resource Name (ARN) of the PII entities detection job. It is
-- a unique, fully qualified identifier for the job. It includes the AWS
-- account, Region, and the job ID. The format of the ARN is as follows:
--
-- @arn:\<partition>:comprehend:\<region>:\<account-id>:pii-entities-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'jobName', 'piiEntitiesDetectionJobProperties_jobName' - The name that you assigned the PII entities detection job.
--
-- 'mode', 'piiEntitiesDetectionJobProperties_mode' - Specifies whether the output provides the locations (offsets) of PII
-- entities or a file in which PII entities are redacted.
--
-- 'inputDataConfig', 'piiEntitiesDetectionJobProperties_inputDataConfig' - The input properties for a PII entities detection job.
--
-- 'redactionConfig', 'piiEntitiesDetectionJobProperties_redactionConfig' - Provides configuration parameters for PII entity redaction.
--
-- This parameter is required if you set the @Mode@ parameter to
-- @ONLY_REDACTION@. In that case, you must provide a @RedactionConfig@
-- definition that includes the @PiiEntityTypes@ parameter.
--
-- 'endTime', 'piiEntitiesDetectionJobProperties_endTime' - The time that the PII entities detection job completed.
--
-- 'outputDataConfig', 'piiEntitiesDetectionJobProperties_outputDataConfig' - The output data configuration that you supplied when you created the PII
-- entities detection job.
--
-- 'dataAccessRoleArn', 'piiEntitiesDetectionJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
-- to your input data.
--
-- 'jobStatus', 'piiEntitiesDetectionJobProperties_jobStatus' - The current status of the PII entities detection job. If the status is
-- @FAILED@, the @Message@ field shows the reason for the failure.
--
-- 'message', 'piiEntitiesDetectionJobProperties_message' - A description of the status of a job.
--
-- 'submitTime', 'piiEntitiesDetectionJobProperties_submitTime' - The time that the PII entities detection job was submitted for
-- processing.
newPiiEntitiesDetectionJobProperties ::
  PiiEntitiesDetectionJobProperties
newPiiEntitiesDetectionJobProperties :: PiiEntitiesDetectionJobProperties
newPiiEntitiesDetectionJobProperties =
  PiiEntitiesDetectionJobProperties' :: Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties'
    { $sel:languageCode:PiiEntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode =
        Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:mode:PiiEntitiesDetectionJobProperties' :: Maybe PiiEntitiesDetectionMode
mode = Maybe PiiEntitiesDetectionMode
forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:redactionConfig:PiiEntitiesDetectionJobProperties' :: Maybe RedactionConfig
redactionConfig = Maybe RedactionConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe PiiOutputDataConfig
outputDataConfig = Maybe PiiOutputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:PiiEntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:message:PiiEntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:submitTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | The language code of the input documents
piiEntitiesDetectionJobProperties_languageCode :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe LanguageCode)
piiEntitiesDetectionJobProperties_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_languageCode = (PiiEntitiesDetectionJobProperties -> Maybe LanguageCode)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe LanguageCode -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe LanguageCode)
     (Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe LanguageCode
a -> PiiEntitiesDetectionJobProperties
s {$sel:languageCode:PiiEntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: PiiEntitiesDetectionJobProperties)

-- | The identifier assigned to the PII entities detection job.
piiEntitiesDetectionJobProperties_jobId :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobId = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobId:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)

-- | The Amazon Resource Name (ARN) of the PII entities detection job. It is
-- a unique, fully qualified identifier for the job. It includes the AWS
-- account, Region, and the job ID. The format of the ARN is as follows:
--
-- @arn:\<partition>:comprehend:\<region>:\<account-id>:pii-entities-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job\/1234abcd12ab34cd56ef1234567890ab@
piiEntitiesDetectionJobProperties_jobArn :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobArn = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)

-- | The name that you assigned the PII entities detection job.
piiEntitiesDetectionJobProperties_jobName :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobName = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobName:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)

-- | Specifies whether the output provides the locations (offsets) of PII
-- entities or a file in which PII entities are redacted.
piiEntitiesDetectionJobProperties_mode :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe PiiEntitiesDetectionMode)
piiEntitiesDetectionJobProperties_mode :: (Maybe PiiEntitiesDetectionMode
 -> f (Maybe PiiEntitiesDetectionMode))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_mode = (PiiEntitiesDetectionJobProperties
 -> Maybe PiiEntitiesDetectionMode)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe PiiEntitiesDetectionMode
    -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe PiiEntitiesDetectionMode)
     (Maybe PiiEntitiesDetectionMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe PiiEntitiesDetectionMode
mode :: Maybe PiiEntitiesDetectionMode
$sel:mode:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe PiiEntitiesDetectionMode
mode} -> Maybe PiiEntitiesDetectionMode
mode) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe PiiEntitiesDetectionMode
a -> PiiEntitiesDetectionJobProperties
s {$sel:mode:PiiEntitiesDetectionJobProperties' :: Maybe PiiEntitiesDetectionMode
mode = Maybe PiiEntitiesDetectionMode
a} :: PiiEntitiesDetectionJobProperties)

-- | The input properties for a PII entities detection job.
piiEntitiesDetectionJobProperties_inputDataConfig :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe InputDataConfig)
piiEntitiesDetectionJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_inputDataConfig = (PiiEntitiesDetectionJobProperties -> Maybe InputDataConfig)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe InputDataConfig -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe InputDataConfig)
     (Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe InputDataConfig
a -> PiiEntitiesDetectionJobProperties
s {$sel:inputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: PiiEntitiesDetectionJobProperties)

-- | Provides configuration parameters for PII entity redaction.
--
-- This parameter is required if you set the @Mode@ parameter to
-- @ONLY_REDACTION@. In that case, you must provide a @RedactionConfig@
-- definition that includes the @PiiEntityTypes@ parameter.
piiEntitiesDetectionJobProperties_redactionConfig :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe RedactionConfig)
piiEntitiesDetectionJobProperties_redactionConfig :: (Maybe RedactionConfig -> f (Maybe RedactionConfig))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_redactionConfig = (PiiEntitiesDetectionJobProperties -> Maybe RedactionConfig)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe RedactionConfig -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe RedactionConfig)
     (Maybe RedactionConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe RedactionConfig
redactionConfig :: Maybe RedactionConfig
$sel:redactionConfig:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe RedactionConfig
redactionConfig} -> Maybe RedactionConfig
redactionConfig) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe RedactionConfig
a -> PiiEntitiesDetectionJobProperties
s {$sel:redactionConfig:PiiEntitiesDetectionJobProperties' :: Maybe RedactionConfig
redactionConfig = Maybe RedactionConfig
a} :: PiiEntitiesDetectionJobProperties)

-- | The time that the PII entities detection job completed.
piiEntitiesDetectionJobProperties_endTime :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
piiEntitiesDetectionJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_endTime = (PiiEntitiesDetectionJobProperties -> Maybe POSIX)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe POSIX
a -> PiiEntitiesDetectionJobProperties
s {$sel:endTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: PiiEntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> PiiEntitiesDetectionJobProperties
 -> f PiiEntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
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

-- | The output data configuration that you supplied when you created the PII
-- entities detection job.
piiEntitiesDetectionJobProperties_outputDataConfig :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe PiiOutputDataConfig)
piiEntitiesDetectionJobProperties_outputDataConfig :: (Maybe PiiOutputDataConfig -> f (Maybe PiiOutputDataConfig))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_outputDataConfig = (PiiEntitiesDetectionJobProperties -> Maybe PiiOutputDataConfig)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe PiiOutputDataConfig -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe PiiOutputDataConfig)
     (Maybe PiiOutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe PiiOutputDataConfig
outputDataConfig :: Maybe PiiOutputDataConfig
$sel:outputDataConfig:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe PiiOutputDataConfig
outputDataConfig} -> Maybe PiiOutputDataConfig
outputDataConfig) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe PiiOutputDataConfig
a -> PiiEntitiesDetectionJobProperties
s {$sel:outputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe PiiOutputDataConfig
outputDataConfig = Maybe PiiOutputDataConfig
a} :: PiiEntitiesDetectionJobProperties)

-- | The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
-- to your input data.
piiEntitiesDetectionJobProperties_dataAccessRoleArn :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_dataAccessRoleArn = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:dataAccessRoleArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)

-- | The current status of the PII entities detection job. If the status is
-- @FAILED@, the @Message@ field shows the reason for the failure.
piiEntitiesDetectionJobProperties_jobStatus :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe JobStatus)
piiEntitiesDetectionJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobStatus = (PiiEntitiesDetectionJobProperties -> Maybe JobStatus)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe JobStatus -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe JobStatus)
     (Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe JobStatus
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobStatus:PiiEntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: PiiEntitiesDetectionJobProperties)

-- | A description of the status of a job.
piiEntitiesDetectionJobProperties_message :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_message = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:message:PiiEntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)

-- | The time that the PII entities detection job was submitted for
-- processing.
piiEntitiesDetectionJobProperties_submitTime :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
piiEntitiesDetectionJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_submitTime = (PiiEntitiesDetectionJobProperties -> Maybe POSIX)
-> (PiiEntitiesDetectionJobProperties
    -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Lens
     PiiEntitiesDetectionJobProperties
     PiiEntitiesDetectionJobProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe POSIX
a -> PiiEntitiesDetectionJobProperties
s {$sel:submitTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: PiiEntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> PiiEntitiesDetectionJobProperties
 -> f PiiEntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
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

instance
  Core.FromJSON
    PiiEntitiesDetectionJobProperties
  where
  parseJSON :: Value -> Parser PiiEntitiesDetectionJobProperties
parseJSON =
    String
-> (Object -> Parser PiiEntitiesDetectionJobProperties)
-> Value
-> Parser PiiEntitiesDetectionJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"PiiEntitiesDetectionJobProperties"
      ( \Object
x ->
          Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties'
            (Maybe LanguageCode
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe PiiEntitiesDetectionMode
 -> Maybe InputDataConfig
 -> Maybe RedactionConfig
 -> Maybe POSIX
 -> Maybe PiiOutputDataConfig
 -> Maybe Text
 -> Maybe JobStatus
 -> Maybe Text
 -> Maybe POSIX
 -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe LanguageCode)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe PiiEntitiesDetectionMode
      -> Maybe InputDataConfig
      -> Maybe RedactionConfig
      -> Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe LanguageCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LanguageCode")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe PiiEntitiesDetectionMode
   -> Maybe InputDataConfig
   -> Maybe RedactionConfig
   -> Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe PiiEntitiesDetectionMode
      -> Maybe InputDataConfig
      -> Maybe RedactionConfig
      -> Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe PiiEntitiesDetectionMode
   -> Maybe InputDataConfig
   -> Maybe RedactionConfig
   -> Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe PiiEntitiesDetectionMode
      -> Maybe InputDataConfig
      -> Maybe RedactionConfig
      -> Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobArn")
            Parser
  (Maybe Text
   -> Maybe PiiEntitiesDetectionMode
   -> Maybe InputDataConfig
   -> Maybe RedactionConfig
   -> Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe PiiEntitiesDetectionMode
      -> Maybe InputDataConfig
      -> Maybe RedactionConfig
      -> Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobName")
            Parser
  (Maybe PiiEntitiesDetectionMode
   -> Maybe InputDataConfig
   -> Maybe RedactionConfig
   -> Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe PiiEntitiesDetectionMode)
-> Parser
     (Maybe InputDataConfig
      -> Maybe RedactionConfig
      -> Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PiiEntitiesDetectionMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Mode")
            Parser
  (Maybe InputDataConfig
   -> Maybe RedactionConfig
   -> Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
     (Maybe RedactionConfig
      -> Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InputDataConfig")
            Parser
  (Maybe RedactionConfig
   -> Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe RedactionConfig)
-> Parser
     (Maybe POSIX
      -> Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RedactionConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RedactionConfig")
            Parser
  (Maybe POSIX
   -> Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe PiiOutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EndTime")
            Parser
  (Maybe PiiOutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe PiiOutputDataConfig)
-> Parser
     (Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PiiOutputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputDataConfig")
            Parser
  (Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe JobStatus
      -> Maybe Text -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataAccessRoleArn")
            Parser
  (Maybe JobStatus
   -> Maybe Text -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
     (Maybe Text -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobStatus")
            Parser
  (Maybe Text -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Message")
            Parser (Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe POSIX) -> Parser PiiEntitiesDetectionJobProperties
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SubmitTime")
      )

instance
  Prelude.Hashable
    PiiEntitiesDetectionJobProperties

instance
  Prelude.NFData
    PiiEntitiesDetectionJobProperties