{-# 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.DominantLanguageDetectionJobProperties
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Comprehend.Types.DominantLanguageDetectionJobProperties 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

-- |
-- Create a value of 'DominantLanguageDetectionJobProperties' 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:
--
-- 'dataAccessRoleArn', 'dominantLanguageDetectionJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
-- to your input data.
--
-- 'endTime', 'dominantLanguageDetectionJobProperties_endTime' - The time that the dominant language detection job completed.
--
-- 'inputDataConfig', 'dominantLanguageDetectionJobProperties_inputDataConfig' - The input data configuration that you supplied when you created the
-- dominant language detection job.
--
-- 'jobArn', 'dominantLanguageDetectionJobProperties_jobArn' - The Amazon Resource Name (ARN) of the dominant language 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>:dominant-language-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:dominant-language-detection-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'jobId', 'dominantLanguageDetectionJobProperties_jobId' - The identifier assigned to the dominant language detection job.
--
-- 'jobName', 'dominantLanguageDetectionJobProperties_jobName' - The name that you assigned to the dominant language detection job.
--
-- 'jobStatus', 'dominantLanguageDetectionJobProperties_jobStatus' - The current status of the dominant language detection job. If the status
-- is @FAILED@, the @Message@ field shows the reason for the failure.
--
-- 'message', 'dominantLanguageDetectionJobProperties_message' - A description for the status of a job.
--
-- 'outputDataConfig', 'dominantLanguageDetectionJobProperties_outputDataConfig' - The output data configuration that you supplied when you created the
-- dominant language detection job.
--
-- 'submitTime', 'dominantLanguageDetectionJobProperties_submitTime' - The time that the dominant language detection job was submitted for
-- processing.
--
-- 'volumeKmsKeyId', 'dominantLanguageDetectionJobProperties_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\"@
--
-- 'vpcConfig', 'dominantLanguageDetectionJobProperties_vpcConfig' - Configuration parameters for a private Virtual Private Cloud (VPC)
-- containing the resources you are using for your dominant language
-- detection job. For more information, see
-- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
newDominantLanguageDetectionJobProperties ::
  DominantLanguageDetectionJobProperties
newDominantLanguageDetectionJobProperties :: DominantLanguageDetectionJobProperties
newDominantLanguageDetectionJobProperties =
  DominantLanguageDetectionJobProperties'
    { $sel:dataAccessRoleArn:DominantLanguageDetectionJobProperties' :: Maybe Text
dataAccessRoleArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:DominantLanguageDetectionJobProperties' :: Maybe Text
jobArn = forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:DominantLanguageDetectionJobProperties' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:DominantLanguageDetectionJobProperties' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:DominantLanguageDetectionJobProperties' :: Maybe JobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:message:DominantLanguageDetectionJobProperties' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:submitTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
submitTime = forall a. Maybe a
Prelude.Nothing,
      $sel:volumeKmsKeyId:DominantLanguageDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfig:DominantLanguageDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = forall a. Maybe a
Prelude.Nothing
    }

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

-- | The time that the dominant language detection job completed.
dominantLanguageDetectionJobProperties_endTime :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
dominantLanguageDetectionJobProperties_endTime :: Lens' DominantLanguageDetectionJobProperties (Maybe UTCTime)
dominantLanguageDetectionJobProperties_endTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe POSIX
a -> DominantLanguageDetectionJobProperties
s {$sel:endTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: DominantLanguageDetectionJobProperties) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

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

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

-- | The name that you assigned to the dominant language detection job.
dominantLanguageDetectionJobProperties_jobName :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.Text)
dominantLanguageDetectionJobProperties_jobName :: Lens' DominantLanguageDetectionJobProperties (Maybe Text)
dominantLanguageDetectionJobProperties_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe Text
a -> DominantLanguageDetectionJobProperties
s {$sel:jobName:DominantLanguageDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: DominantLanguageDetectionJobProperties)

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

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

-- | The output data configuration that you supplied when you created the
-- dominant language detection job.
dominantLanguageDetectionJobProperties_outputDataConfig :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe OutputDataConfig)
dominantLanguageDetectionJobProperties_outputDataConfig :: Lens'
  DominantLanguageDetectionJobProperties (Maybe OutputDataConfig)
dominantLanguageDetectionJobProperties_outputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe OutputDataConfig
a -> DominantLanguageDetectionJobProperties
s {$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: DominantLanguageDetectionJobProperties)

-- | The time that the dominant language detection job was submitted for
-- processing.
dominantLanguageDetectionJobProperties_submitTime :: Lens.Lens' DominantLanguageDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
dominantLanguageDetectionJobProperties_submitTime :: Lens' DominantLanguageDetectionJobProperties (Maybe UTCTime)
dominantLanguageDetectionJobProperties_submitTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DominantLanguageDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: DominantLanguageDetectionJobProperties
s@DominantLanguageDetectionJobProperties' {} Maybe POSIX
a -> DominantLanguageDetectionJobProperties
s {$sel:submitTime:DominantLanguageDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: DominantLanguageDetectionJobProperties) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

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

instance
  Data.FromJSON
    DominantLanguageDetectionJobProperties
  where
  parseJSON :: Value -> Parser DominantLanguageDetectionJobProperties
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"DominantLanguageDetectionJobProperties"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe InputDataConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe OutputDataConfig
-> Maybe POSIX
-> Maybe Text
-> Maybe VpcConfig
-> DominantLanguageDetectionJobProperties
DominantLanguageDetectionJobProperties'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DataAccessRoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"InputDataConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"JobStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Message")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"OutputDataConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"SubmitTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VolumeKmsKeyId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"VpcConfig")
      )

instance
  Prelude.Hashable
    DominantLanguageDetectionJobProperties
  where
  hashWithSalt :: Int -> DominantLanguageDetectionJobProperties -> Int
hashWithSalt
    Int
_salt
    DominantLanguageDetectionJobProperties' {Maybe Text
Maybe POSIX
Maybe InputDataConfig
Maybe JobStatus
Maybe OutputDataConfig
Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
volumeKmsKeyId :: Maybe Text
submitTime :: Maybe POSIX
outputDataConfig :: Maybe OutputDataConfig
message :: Maybe Text
jobStatus :: Maybe JobStatus
jobName :: Maybe Text
jobId :: Maybe Text
jobArn :: Maybe Text
inputDataConfig :: Maybe InputDataConfig
endTime :: Maybe POSIX
dataAccessRoleArn :: Maybe Text
$sel:vpcConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe VpcConfig
$sel:volumeKmsKeyId:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:submitTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe OutputDataConfig
$sel:message:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:jobStatus:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe JobStatus
$sel:jobName:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:jobId:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:jobArn:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:inputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe InputDataConfig
$sel:endTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
$sel:dataAccessRoleArn:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataAccessRoleArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
endTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDataConfig
inputDataConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JobStatus
jobStatus
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutputDataConfig
outputDataConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
submitTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
volumeKmsKeyId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VpcConfig
vpcConfig

instance
  Prelude.NFData
    DominantLanguageDetectionJobProperties
  where
  rnf :: DominantLanguageDetectionJobProperties -> ()
rnf DominantLanguageDetectionJobProperties' {Maybe Text
Maybe POSIX
Maybe InputDataConfig
Maybe JobStatus
Maybe OutputDataConfig
Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
volumeKmsKeyId :: Maybe Text
submitTime :: Maybe POSIX
outputDataConfig :: Maybe OutputDataConfig
message :: Maybe Text
jobStatus :: Maybe JobStatus
jobName :: Maybe Text
jobId :: Maybe Text
jobArn :: Maybe Text
inputDataConfig :: Maybe InputDataConfig
endTime :: Maybe POSIX
dataAccessRoleArn :: Maybe Text
$sel:vpcConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe VpcConfig
$sel:volumeKmsKeyId:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:submitTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
$sel:outputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe OutputDataConfig
$sel:message:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:jobStatus:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe JobStatus
$sel:jobName:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:jobId:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:jobArn:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
$sel:inputDataConfig:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe InputDataConfig
$sel:endTime:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe POSIX
$sel:dataAccessRoleArn:DominantLanguageDetectionJobProperties' :: DominantLanguageDetectionJobProperties -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dataAccessRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
endTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe InputDataConfig
inputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
jobName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe JobStatus
jobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
message
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OutputDataConfig
outputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
submitTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
volumeKmsKeyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcConfig
vpcConfig