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

import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
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 a document classification job.
--
-- /See:/ 'newDocumentClassificationJobProperties' smart constructor.
data DocumentClassificationJobProperties = DocumentClassificationJobProperties'
  { -- | The identifier assigned to the document classification job.
    DocumentClassificationJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the document classification 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>:document-classification-job\/\<job-id>@
    --
    -- The following is an example job ARN:
    --
    -- @arn:aws:comprehend:us-west-2:111122223333:document-classification-job\/1234abcd12ab34cd56ef1234567890ab@
    DocumentClassificationJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) that identifies the document classifier.
    DocumentClassificationJobProperties -> Maybe Text
documentClassifierArn :: Prelude.Maybe Prelude.Text,
    -- | The name that you assigned to the document classification job.
    DocumentClassificationJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The input data configuration that you supplied when you created the
    -- document classification job.
    DocumentClassificationJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
    -- | Configuration parameters for a private Virtual Private Cloud (VPC)
    -- containing the resources you are using for your document classification
    -- job. For more information, see
    -- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
    DocumentClassificationJobProperties -> 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\"@
    DocumentClassificationJobProperties -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The time that the document classification job completed.
    DocumentClassificationJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The output data configuration that you supplied when you created the
    -- document classification job.
    DocumentClassificationJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
    -- | The Amazon Resource Name (ARN) of the AWS identity and Access Management
    -- (IAM) role that grants Amazon Comprehend read access to your input data.
    DocumentClassificationJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The current status of the document classification job. If the status is
    -- @FAILED@, the @Message@ field shows the reason for the failure.
    DocumentClassificationJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | A description of the status of the job.
    DocumentClassificationJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The time that the document classification job was submitted for
    -- processing.
    DocumentClassificationJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
  }
  deriving (DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
(DocumentClassificationJobProperties
 -> DocumentClassificationJobProperties -> Bool)
-> (DocumentClassificationJobProperties
    -> DocumentClassificationJobProperties -> Bool)
-> Eq DocumentClassificationJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
$c/= :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
== :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
$c== :: DocumentClassificationJobProperties
-> DocumentClassificationJobProperties -> Bool
Prelude.Eq, ReadPrec [DocumentClassificationJobProperties]
ReadPrec DocumentClassificationJobProperties
Int -> ReadS DocumentClassificationJobProperties
ReadS [DocumentClassificationJobProperties]
(Int -> ReadS DocumentClassificationJobProperties)
-> ReadS [DocumentClassificationJobProperties]
-> ReadPrec DocumentClassificationJobProperties
-> ReadPrec [DocumentClassificationJobProperties]
-> Read DocumentClassificationJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DocumentClassificationJobProperties]
$creadListPrec :: ReadPrec [DocumentClassificationJobProperties]
readPrec :: ReadPrec DocumentClassificationJobProperties
$creadPrec :: ReadPrec DocumentClassificationJobProperties
readList :: ReadS [DocumentClassificationJobProperties]
$creadList :: ReadS [DocumentClassificationJobProperties]
readsPrec :: Int -> ReadS DocumentClassificationJobProperties
$creadsPrec :: Int -> ReadS DocumentClassificationJobProperties
Prelude.Read, Int -> DocumentClassificationJobProperties -> ShowS
[DocumentClassificationJobProperties] -> ShowS
DocumentClassificationJobProperties -> String
(Int -> DocumentClassificationJobProperties -> ShowS)
-> (DocumentClassificationJobProperties -> String)
-> ([DocumentClassificationJobProperties] -> ShowS)
-> Show DocumentClassificationJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DocumentClassificationJobProperties] -> ShowS
$cshowList :: [DocumentClassificationJobProperties] -> ShowS
show :: DocumentClassificationJobProperties -> String
$cshow :: DocumentClassificationJobProperties -> String
showsPrec :: Int -> DocumentClassificationJobProperties -> ShowS
$cshowsPrec :: Int -> DocumentClassificationJobProperties -> ShowS
Prelude.Show, (forall x.
 DocumentClassificationJobProperties
 -> Rep DocumentClassificationJobProperties x)
-> (forall x.
    Rep DocumentClassificationJobProperties x
    -> DocumentClassificationJobProperties)
-> Generic DocumentClassificationJobProperties
forall x.
Rep DocumentClassificationJobProperties x
-> DocumentClassificationJobProperties
forall x.
DocumentClassificationJobProperties
-> Rep DocumentClassificationJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DocumentClassificationJobProperties x
-> DocumentClassificationJobProperties
$cfrom :: forall x.
DocumentClassificationJobProperties
-> Rep DocumentClassificationJobProperties x
Prelude.Generic)

-- |
-- Create a value of 'DocumentClassificationJobProperties' 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', 'documentClassificationJobProperties_jobId' - The identifier assigned to the document classification job.
--
-- 'jobArn', 'documentClassificationJobProperties_jobArn' - The Amazon Resource Name (ARN) of the document classification 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>:document-classification-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:document-classification-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'documentClassifierArn', 'documentClassificationJobProperties_documentClassifierArn' - The Amazon Resource Name (ARN) that identifies the document classifier.
--
-- 'jobName', 'documentClassificationJobProperties_jobName' - The name that you assigned to the document classification job.
--
-- 'inputDataConfig', 'documentClassificationJobProperties_inputDataConfig' - The input data configuration that you supplied when you created the
-- document classification job.
--
-- 'vpcConfig', 'documentClassificationJobProperties_vpcConfig' - Configuration parameters for a private Virtual Private Cloud (VPC)
-- containing the resources you are using for your document classification
-- job. For more information, see
-- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
--
-- 'volumeKmsKeyId', 'documentClassificationJobProperties_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', 'documentClassificationJobProperties_endTime' - The time that the document classification job completed.
--
-- 'outputDataConfig', 'documentClassificationJobProperties_outputDataConfig' - The output data configuration that you supplied when you created the
-- document classification job.
--
-- 'dataAccessRoleArn', 'documentClassificationJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) of the AWS identity and Access Management
-- (IAM) role that grants Amazon Comprehend read access to your input data.
--
-- 'jobStatus', 'documentClassificationJobProperties_jobStatus' - The current status of the document classification job. If the status is
-- @FAILED@, the @Message@ field shows the reason for the failure.
--
-- 'message', 'documentClassificationJobProperties_message' - A description of the status of the job.
--
-- 'submitTime', 'documentClassificationJobProperties_submitTime' - The time that the document classification job was submitted for
-- processing.
newDocumentClassificationJobProperties ::
  DocumentClassificationJobProperties
newDocumentClassificationJobProperties :: DocumentClassificationJobProperties
newDocumentClassificationJobProperties =
  DocumentClassificationJobProperties' :: 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
-> DocumentClassificationJobProperties
DocumentClassificationJobProperties'
    { $sel:jobId:DocumentClassificationJobProperties' :: Maybe Text
jobId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:DocumentClassificationJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:documentClassifierArn:DocumentClassificationJobProperties' :: Maybe Text
documentClassifierArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:DocumentClassificationJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:DocumentClassificationJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfig:DocumentClassificationJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeKmsKeyId:DocumentClassificationJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:DocumentClassificationJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:DocumentClassificationJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:DocumentClassificationJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:DocumentClassificationJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:message:DocumentClassificationJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:submitTime:DocumentClassificationJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

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

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

-- | The Amazon Resource Name (ARN) that identifies the document classifier.
documentClassificationJobProperties_documentClassifierArn :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_documentClassifierArn :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_documentClassifierArn = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
    -> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
     DocumentClassificationJobProperties
     DocumentClassificationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
documentClassifierArn :: Maybe Text
$sel:documentClassifierArn:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
documentClassifierArn} -> Maybe Text
documentClassifierArn) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:documentClassifierArn:DocumentClassificationJobProperties' :: Maybe Text
documentClassifierArn = Maybe Text
a} :: DocumentClassificationJobProperties)

-- | The name that you assigned to the document classification job.
documentClassificationJobProperties_jobName :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_jobName = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
    -> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
     DocumentClassificationJobProperties
     DocumentClassificationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:jobName:DocumentClassificationJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: DocumentClassificationJobProperties)

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

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

-- | 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\"@
documentClassificationJobProperties_volumeKmsKeyId :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_volumeKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_volumeKmsKeyId = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
    -> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
     DocumentClassificationJobProperties
     DocumentClassificationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:volumeKmsKeyId:DocumentClassificationJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: DocumentClassificationJobProperties)

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

-- | The Amazon Resource Name (ARN) of the AWS identity and Access Management
-- (IAM) role that grants Amazon Comprehend read access to your input data.
documentClassificationJobProperties_dataAccessRoleArn :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.Text)
documentClassificationJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_dataAccessRoleArn = (DocumentClassificationJobProperties -> Maybe Text)
-> (DocumentClassificationJobProperties
    -> Maybe Text -> DocumentClassificationJobProperties)
-> Lens
     DocumentClassificationJobProperties
     DocumentClassificationJobProperties
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe Text
a -> DocumentClassificationJobProperties
s {$sel:dataAccessRoleArn:DocumentClassificationJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: DocumentClassificationJobProperties)

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

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

-- | The time that the document classification job was submitted for
-- processing.
documentClassificationJobProperties_submitTime :: Lens.Lens' DocumentClassificationJobProperties (Prelude.Maybe Prelude.UTCTime)
documentClassificationJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
documentClassificationJobProperties_submitTime = (DocumentClassificationJobProperties -> Maybe POSIX)
-> (DocumentClassificationJobProperties
    -> Maybe POSIX -> DocumentClassificationJobProperties)
-> Lens
     DocumentClassificationJobProperties
     DocumentClassificationJobProperties
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DocumentClassificationJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:DocumentClassificationJobProperties' :: DocumentClassificationJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: DocumentClassificationJobProperties
s@DocumentClassificationJobProperties' {} Maybe POSIX
a -> DocumentClassificationJobProperties
s {$sel:submitTime:DocumentClassificationJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: DocumentClassificationJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
 -> DocumentClassificationJobProperties
 -> f DocumentClassificationJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DocumentClassificationJobProperties
-> f DocumentClassificationJobProperties
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
    DocumentClassificationJobProperties
  where
  parseJSON :: Value -> Parser DocumentClassificationJobProperties
parseJSON =
    String
-> (Object -> Parser DocumentClassificationJobProperties)
-> Value
-> Parser DocumentClassificationJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DocumentClassificationJobProperties"
      ( \Object
x ->
          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
-> DocumentClassificationJobProperties
DocumentClassificationJobProperties'
            (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
 -> DocumentClassificationJobProperties)
-> 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
      -> DocumentClassificationJobProperties)
forall (f :: * -> *) a b. Functor 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
   -> DocumentClassificationJobProperties)
-> 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
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
"DocumentClassifierArn")
            Parser
  (Maybe Text
   -> Maybe InputDataConfig
   -> Maybe VpcConfig
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe OutputDataConfig
   -> Maybe Text
   -> Maybe JobStatus
   -> Maybe Text
   -> Maybe POSIX
   -> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe InputDataConfig
      -> Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
     (Maybe VpcConfig
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe VpcConfig)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe OutputDataConfig
      -> Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
     (Maybe Text
      -> Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser
     (Maybe JobStatus
      -> Maybe Text
      -> Maybe POSIX
      -> DocumentClassificationJobProperties)
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
   -> DocumentClassificationJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
     (Maybe Text -> Maybe POSIX -> DocumentClassificationJobProperties)
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 -> DocumentClassificationJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> DocumentClassificationJobProperties)
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 -> DocumentClassificationJobProperties)
-> Parser (Maybe POSIX)
-> Parser DocumentClassificationJobProperties
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
    DocumentClassificationJobProperties

instance
  Prelude.NFData
    DocumentClassificationJobProperties