{-# 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.EntitiesDetectionJobProperties
-- 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.EntitiesDetectionJobProperties where

import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.OutputDataConfig
import Amazonka.Comprehend.Types.VpcConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Provides information about an entities detection job.
--
-- /See:/ 'newEntitiesDetectionJobProperties' smart constructor.
data EntitiesDetectionJobProperties = EntitiesDetectionJobProperties'
  { -- | The language code of the input documents.
    EntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
    -- | The identifier assigned to the entities detection job.
    EntitiesDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the 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>:entities-detection-job\/\<job-id>@
    --
    -- The following is an example job ARN:
    --
    -- @arn:aws:comprehend:us-west-2:111122223333:entities-detection-job\/1234abcd12ab34cd56ef1234567890ab@
    EntitiesDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) that identifies the entity recognizer.
    EntitiesDetectionJobProperties -> Maybe Text
entityRecognizerArn :: Prelude.Maybe Prelude.Text,
    -- | The name that you assigned the entities detection job.
    EntitiesDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The input data configuration that you supplied when you created the
    -- entities detection job.
    EntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
    -- | Configuration parameters for a private Virtual Private Cloud (VPC)
    -- containing the resources you are using for your entity detection job.
    -- For more information, see
    -- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
    EntitiesDetectionJobProperties -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
    -- | ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
    -- uses to encrypt data on the storage volume attached to the ML compute
    -- instance(s) that process the analysis job. The VolumeKmsKeyId can be
    -- either of the following formats:
    --
    -- -   KMS Key ID: @\"1234abcd-12ab-34cd-56ef-1234567890ab\"@
    --
    -- -   Amazon Resource Name (ARN) of a KMS Key:
    --     @\"arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab\"@
    EntitiesDetectionJobProperties -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The time that the entities detection job completed
    EntitiesDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The output data configuration that you supplied when you created the
    -- entities detection job.
    EntitiesDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
    -- | The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
    -- to your input data.
    EntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The current status of the entities detection job. If the status is
    -- @FAILED@, the @Message@ field shows the reason for the failure.
    EntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | A description of the status of a job.
    EntitiesDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The time that the entities detection job was submitted for processing.
    EntitiesDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
  }
  deriving (EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
(EntitiesDetectionJobProperties
 -> EntitiesDetectionJobProperties -> Bool)
-> (EntitiesDetectionJobProperties
    -> EntitiesDetectionJobProperties -> Bool)
-> Eq EntitiesDetectionJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
$c/= :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
== :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
$c== :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [EntitiesDetectionJobProperties]
ReadPrec EntitiesDetectionJobProperties
Int -> ReadS EntitiesDetectionJobProperties
ReadS [EntitiesDetectionJobProperties]
(Int -> ReadS EntitiesDetectionJobProperties)
-> ReadS [EntitiesDetectionJobProperties]
-> ReadPrec EntitiesDetectionJobProperties
-> ReadPrec [EntitiesDetectionJobProperties]
-> Read EntitiesDetectionJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EntitiesDetectionJobProperties]
$creadListPrec :: ReadPrec [EntitiesDetectionJobProperties]
readPrec :: ReadPrec EntitiesDetectionJobProperties
$creadPrec :: ReadPrec EntitiesDetectionJobProperties
readList :: ReadS [EntitiesDetectionJobProperties]
$creadList :: ReadS [EntitiesDetectionJobProperties]
readsPrec :: Int -> ReadS EntitiesDetectionJobProperties
$creadsPrec :: Int -> ReadS EntitiesDetectionJobProperties
Prelude.Read, Int -> EntitiesDetectionJobProperties -> ShowS
[EntitiesDetectionJobProperties] -> ShowS
EntitiesDetectionJobProperties -> String
(Int -> EntitiesDetectionJobProperties -> ShowS)
-> (EntitiesDetectionJobProperties -> String)
-> ([EntitiesDetectionJobProperties] -> ShowS)
-> Show EntitiesDetectionJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EntitiesDetectionJobProperties] -> ShowS
$cshowList :: [EntitiesDetectionJobProperties] -> ShowS
show :: EntitiesDetectionJobProperties -> String
$cshow :: EntitiesDetectionJobProperties -> String
showsPrec :: Int -> EntitiesDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> EntitiesDetectionJobProperties -> ShowS
Prelude.Show, (forall x.
 EntitiesDetectionJobProperties
 -> Rep EntitiesDetectionJobProperties x)
-> (forall x.
    Rep EntitiesDetectionJobProperties x
    -> EntitiesDetectionJobProperties)
-> Generic EntitiesDetectionJobProperties
forall x.
Rep EntitiesDetectionJobProperties x
-> EntitiesDetectionJobProperties
forall x.
EntitiesDetectionJobProperties
-> Rep EntitiesDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EntitiesDetectionJobProperties x
-> EntitiesDetectionJobProperties
$cfrom :: forall x.
EntitiesDetectionJobProperties
-> Rep EntitiesDetectionJobProperties x
Prelude.Generic)

-- |
-- Create a value of 'EntitiesDetectionJobProperties' 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', 'entitiesDetectionJobProperties_languageCode' - The language code of the input documents.
--
-- 'jobId', 'entitiesDetectionJobProperties_jobId' - The identifier assigned to the entities detection job.
--
-- 'jobArn', 'entitiesDetectionJobProperties_jobArn' - The Amazon Resource Name (ARN) of the 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>:entities-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:entities-detection-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'entityRecognizerArn', 'entitiesDetectionJobProperties_entityRecognizerArn' - The Amazon Resource Name (ARN) that identifies the entity recognizer.
--
-- 'jobName', 'entitiesDetectionJobProperties_jobName' - The name that you assigned the entities detection job.
--
-- 'inputDataConfig', 'entitiesDetectionJobProperties_inputDataConfig' - The input data configuration that you supplied when you created the
-- entities detection job.
--
-- 'vpcConfig', 'entitiesDetectionJobProperties_vpcConfig' - Configuration parameters for a private Virtual Private Cloud (VPC)
-- containing the resources you are using for your entity detection job.
-- For more information, see
-- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
--
-- 'volumeKmsKeyId', 'entitiesDetectionJobProperties_volumeKmsKeyId' - ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
-- uses to encrypt data on the storage volume attached to the ML compute
-- instance(s) that process the analysis job. The VolumeKmsKeyId can be
-- either of the following formats:
--
-- -   KMS Key ID: @\"1234abcd-12ab-34cd-56ef-1234567890ab\"@
--
-- -   Amazon Resource Name (ARN) of a KMS Key:
--     @\"arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab\"@
--
-- 'endTime', 'entitiesDetectionJobProperties_endTime' - The time that the entities detection job completed
--
-- 'outputDataConfig', 'entitiesDetectionJobProperties_outputDataConfig' - The output data configuration that you supplied when you created the
-- entities detection job.
--
-- 'dataAccessRoleArn', 'entitiesDetectionJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
-- to your input data.
--
-- 'jobStatus', 'entitiesDetectionJobProperties_jobStatus' - The current status of the entities detection job. If the status is
-- @FAILED@, the @Message@ field shows the reason for the failure.
--
-- 'message', 'entitiesDetectionJobProperties_message' - A description of the status of a job.
--
-- 'submitTime', 'entitiesDetectionJobProperties_submitTime' - The time that the entities detection job was submitted for processing.
newEntitiesDetectionJobProperties ::
  EntitiesDetectionJobProperties
newEntitiesDetectionJobProperties :: EntitiesDetectionJobProperties
newEntitiesDetectionJobProperties =
  EntitiesDetectionJobProperties' :: Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties
EntitiesDetectionJobProperties'
    { $sel:languageCode:EntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode =
        Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:EntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:EntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:entityRecognizerArn:EntitiesDetectionJobProperties' :: Maybe Text
entityRecognizerArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:EntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:EntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfig:EntitiesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeKmsKeyId:EntitiesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:EntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:EntitiesDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:EntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:EntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:message:EntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:submitTime:EntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

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

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

-- | The Amazon Resource Name (ARN) of the 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>:entities-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:entities-detection-job\/1234abcd12ab34cd56ef1234567890ab@
entitiesDetectionJobProperties_jobArn :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_jobArn = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
    -> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
     EntitiesDetectionJobProperties
     EntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:jobArn:EntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: EntitiesDetectionJobProperties)

-- | The Amazon Resource Name (ARN) that identifies the entity recognizer.
entitiesDetectionJobProperties_entityRecognizerArn :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_entityRecognizerArn :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_entityRecognizerArn = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
    -> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
     EntitiesDetectionJobProperties
     EntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
entityRecognizerArn :: Maybe Text
$sel:entityRecognizerArn:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
entityRecognizerArn} -> Maybe Text
entityRecognizerArn) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:entityRecognizerArn:EntitiesDetectionJobProperties' :: Maybe Text
entityRecognizerArn = Maybe Text
a} :: EntitiesDetectionJobProperties)

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

-- | The input data configuration that you supplied when you created the
-- entities detection job.
entitiesDetectionJobProperties_inputDataConfig :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe InputDataConfig)
entitiesDetectionJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_inputDataConfig = (EntitiesDetectionJobProperties -> Maybe InputDataConfig)
-> (EntitiesDetectionJobProperties
    -> Maybe InputDataConfig -> EntitiesDetectionJobProperties)
-> Lens
     EntitiesDetectionJobProperties
     EntitiesDetectionJobProperties
     (Maybe InputDataConfig)
     (Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe InputDataConfig
a -> EntitiesDetectionJobProperties
s {$sel:inputDataConfig:EntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: EntitiesDetectionJobProperties)

-- | Configuration parameters for a private Virtual Private Cloud (VPC)
-- containing the resources you are using for your entity detection job.
-- For more information, see
-- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
entitiesDetectionJobProperties_vpcConfig :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe VpcConfig)
entitiesDetectionJobProperties_vpcConfig :: (Maybe VpcConfig -> f (Maybe VpcConfig))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_vpcConfig = (EntitiesDetectionJobProperties -> Maybe VpcConfig)
-> (EntitiesDetectionJobProperties
    -> Maybe VpcConfig -> EntitiesDetectionJobProperties)
-> Lens
     EntitiesDetectionJobProperties
     EntitiesDetectionJobProperties
     (Maybe VpcConfig)
     (Maybe VpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe VpcConfig
a -> EntitiesDetectionJobProperties
s {$sel:vpcConfig:EntitiesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: EntitiesDetectionJobProperties)

-- | ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
-- uses to encrypt data on the storage volume attached to the ML compute
-- instance(s) that process the analysis job. The VolumeKmsKeyId can be
-- either of the following formats:
--
-- -   KMS Key ID: @\"1234abcd-12ab-34cd-56ef-1234567890ab\"@
--
-- -   Amazon Resource Name (ARN) of a KMS Key:
--     @\"arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab\"@
entitiesDetectionJobProperties_volumeKmsKeyId :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_volumeKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_volumeKmsKeyId = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
    -> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
     EntitiesDetectionJobProperties
     EntitiesDetectionJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:volumeKmsKeyId:EntitiesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: EntitiesDetectionJobProperties)

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

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

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

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

-- | The time that the entities detection job was submitted for processing.
entitiesDetectionJobProperties_submitTime :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
entitiesDetectionJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_submitTime = (EntitiesDetectionJobProperties -> Maybe POSIX)
-> (EntitiesDetectionJobProperties
    -> Maybe POSIX -> EntitiesDetectionJobProperties)
-> Lens
     EntitiesDetectionJobProperties
     EntitiesDetectionJobProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe POSIX
a -> EntitiesDetectionJobProperties
s {$sel:submitTime:EntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: EntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> EntitiesDetectionJobProperties
 -> f EntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
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 EntitiesDetectionJobProperties where
  parseJSON :: Value -> Parser EntitiesDetectionJobProperties
parseJSON =
    String
-> (Object -> Parser EntitiesDetectionJobProperties)
-> Value
-> Parser EntitiesDetectionJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"EntitiesDetectionJobProperties"
      ( \Object
x ->
          Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties
EntitiesDetectionJobProperties'
            (Maybe LanguageCode
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe InputDataConfig
 -> Maybe VpcConfig
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe OutputDataConfig
 -> Maybe Text
 -> Maybe JobStatus
 -> Maybe Text
 -> Maybe POSIX
 -> EntitiesDetectionJobProperties)
-> Parser (Maybe LanguageCode)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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 Text
   -> Maybe InputDataConfig
   -> Maybe VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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 Text
   -> Maybe InputDataConfig
   -> Maybe VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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 Text
   -> Maybe InputDataConfig
   -> Maybe VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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
"EntityRecognizerArn")
            Parser
  (Maybe Text
   -> Maybe InputDataConfig
   -> Maybe VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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 InputDataConfig
   -> Maybe VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
     (Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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 VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe VpcConfig)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe VpcConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcConfig")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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
"VolumeKmsKeyId")
            Parser
  (Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
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 OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
     (Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OutputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputDataConfig")
            Parser
  (Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe JobStatus
      -> Maybe Text -> Maybe POSIX -> EntitiesDetectionJobProperties)
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 -> EntitiesDetectionJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
     (Maybe Text -> Maybe POSIX -> EntitiesDetectionJobProperties)
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 -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> EntitiesDetectionJobProperties)
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 -> EntitiesDetectionJobProperties)
-> Parser (Maybe POSIX) -> Parser EntitiesDetectionJobProperties
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
    EntitiesDetectionJobProperties

instance
  Prelude.NFData
    EntitiesDetectionJobProperties