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

-- |
-- Create a value of 'KeyPhrasesDetectionJobProperties' 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', 'keyPhrasesDetectionJobProperties_languageCode' - The language code of the input documents.
--
-- 'jobId', 'keyPhrasesDetectionJobProperties_jobId' - The identifier assigned to the key phrases detection job.
--
-- 'jobArn', 'keyPhrasesDetectionJobProperties_jobArn' - The Amazon Resource Name (ARN) of the key phrases 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>:key-phrases-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:key-phrases-detection-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'jobName', 'keyPhrasesDetectionJobProperties_jobName' - The name that you assigned the key phrases detection job.
--
-- 'inputDataConfig', 'keyPhrasesDetectionJobProperties_inputDataConfig' - The input data configuration that you supplied when you created the key
-- phrases detection job.
--
-- 'vpcConfig', 'keyPhrasesDetectionJobProperties_vpcConfig' - Configuration parameters for a private Virtual Private Cloud (VPC)
-- containing the resources you are using for your key phrases detection
-- job. For more information, see
-- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
--
-- 'volumeKmsKeyId', 'keyPhrasesDetectionJobProperties_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', 'keyPhrasesDetectionJobProperties_endTime' - The time that the key phrases detection job completed.
--
-- 'outputDataConfig', 'keyPhrasesDetectionJobProperties_outputDataConfig' - The output data configuration that you supplied when you created the key
-- phrases detection job.
--
-- 'dataAccessRoleArn', 'keyPhrasesDetectionJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
-- to your input data.
--
-- 'jobStatus', 'keyPhrasesDetectionJobProperties_jobStatus' - The current status of the key phrases detection job. If the status is
-- @FAILED@, the @Message@ field shows the reason for the failure.
--
-- 'message', 'keyPhrasesDetectionJobProperties_message' - A description of the status of a job.
--
-- 'submitTime', 'keyPhrasesDetectionJobProperties_submitTime' - The time that the key phrases detection job was submitted for
-- processing.
newKeyPhrasesDetectionJobProperties ::
  KeyPhrasesDetectionJobProperties
newKeyPhrasesDetectionJobProperties :: KeyPhrasesDetectionJobProperties
newKeyPhrasesDetectionJobProperties =
  KeyPhrasesDetectionJobProperties' :: Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties'
    { $sel:languageCode:KeyPhrasesDetectionJobProperties' :: Maybe LanguageCode
languageCode =
        Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:KeyPhrasesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfig:KeyPhrasesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:volumeKmsKeyId:KeyPhrasesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:KeyPhrasesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:KeyPhrasesDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:KeyPhrasesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:KeyPhrasesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:message:KeyPhrasesDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:submitTime:KeyPhrasesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

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

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

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

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

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

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

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

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

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

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

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

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

instance
  Prelude.NFData
    KeyPhrasesDetectionJobProperties