{-# 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 #-}
module Amazonka.Comprehend.Types.EntitiesDetectionJobProperties where
import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.OutputDataConfig
import Amazonka.Comprehend.Types.VpcConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data EntitiesDetectionJobProperties = EntitiesDetectionJobProperties'
{
EntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
EntitiesDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe Text
entityRecognizerArn :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
EntitiesDetectionJobProperties -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
EntitiesDetectionJobProperties -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
EntitiesDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
EntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
EntitiesDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
EntitiesDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
}
deriving (EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
(EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool)
-> (EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool)
-> Eq EntitiesDetectionJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
$c/= :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
== :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
$c== :: EntitiesDetectionJobProperties
-> EntitiesDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [EntitiesDetectionJobProperties]
ReadPrec EntitiesDetectionJobProperties
Int -> ReadS EntitiesDetectionJobProperties
ReadS [EntitiesDetectionJobProperties]
(Int -> ReadS EntitiesDetectionJobProperties)
-> ReadS [EntitiesDetectionJobProperties]
-> ReadPrec EntitiesDetectionJobProperties
-> ReadPrec [EntitiesDetectionJobProperties]
-> Read EntitiesDetectionJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EntitiesDetectionJobProperties]
$creadListPrec :: ReadPrec [EntitiesDetectionJobProperties]
readPrec :: ReadPrec EntitiesDetectionJobProperties
$creadPrec :: ReadPrec EntitiesDetectionJobProperties
readList :: ReadS [EntitiesDetectionJobProperties]
$creadList :: ReadS [EntitiesDetectionJobProperties]
readsPrec :: Int -> ReadS EntitiesDetectionJobProperties
$creadsPrec :: Int -> ReadS EntitiesDetectionJobProperties
Prelude.Read, Int -> EntitiesDetectionJobProperties -> ShowS
[EntitiesDetectionJobProperties] -> ShowS
EntitiesDetectionJobProperties -> String
(Int -> EntitiesDetectionJobProperties -> ShowS)
-> (EntitiesDetectionJobProperties -> String)
-> ([EntitiesDetectionJobProperties] -> ShowS)
-> Show EntitiesDetectionJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EntitiesDetectionJobProperties] -> ShowS
$cshowList :: [EntitiesDetectionJobProperties] -> ShowS
show :: EntitiesDetectionJobProperties -> String
$cshow :: EntitiesDetectionJobProperties -> String
showsPrec :: Int -> EntitiesDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> EntitiesDetectionJobProperties -> ShowS
Prelude.Show, (forall x.
EntitiesDetectionJobProperties
-> Rep EntitiesDetectionJobProperties x)
-> (forall x.
Rep EntitiesDetectionJobProperties x
-> EntitiesDetectionJobProperties)
-> Generic EntitiesDetectionJobProperties
forall x.
Rep EntitiesDetectionJobProperties x
-> EntitiesDetectionJobProperties
forall x.
EntitiesDetectionJobProperties
-> Rep EntitiesDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EntitiesDetectionJobProperties x
-> EntitiesDetectionJobProperties
$cfrom :: forall x.
EntitiesDetectionJobProperties
-> Rep EntitiesDetectionJobProperties x
Prelude.Generic)
newEntitiesDetectionJobProperties ::
EntitiesDetectionJobProperties
newEntitiesDetectionJobProperties :: EntitiesDetectionJobProperties
newEntitiesDetectionJobProperties =
EntitiesDetectionJobProperties' :: Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties
EntitiesDetectionJobProperties'
{ $sel:languageCode:EntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode =
Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:EntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobArn:EntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:entityRecognizerArn:EntitiesDetectionJobProperties' :: Maybe Text
entityRecognizerArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:EntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:EntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfig:EntitiesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
$sel:volumeKmsKeyId:EntitiesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:EntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:outputDataConfig:EntitiesDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:dataAccessRoleArn:EntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:EntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:message:EntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submitTime:EntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
entitiesDetectionJobProperties_languageCode :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe LanguageCode)
entitiesDetectionJobProperties_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_languageCode = (EntitiesDetectionJobProperties -> Maybe LanguageCode)
-> (EntitiesDetectionJobProperties
-> Maybe LanguageCode -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe LanguageCode)
(Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe LanguageCode
a -> EntitiesDetectionJobProperties
s {$sel:languageCode:EntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_jobId :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_jobId = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:jobId:EntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_jobArn :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_jobArn = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:jobArn:EntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_entityRecognizerArn :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_entityRecognizerArn :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_entityRecognizerArn = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
entityRecognizerArn :: Maybe Text
$sel:entityRecognizerArn:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
entityRecognizerArn} -> Maybe Text
entityRecognizerArn) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:entityRecognizerArn:EntitiesDetectionJobProperties' :: Maybe Text
entityRecognizerArn = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_jobName :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_jobName = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:jobName:EntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_inputDataConfig :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe InputDataConfig)
entitiesDetectionJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_inputDataConfig = (EntitiesDetectionJobProperties -> Maybe InputDataConfig)
-> (EntitiesDetectionJobProperties
-> Maybe InputDataConfig -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe InputDataConfig)
(Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe InputDataConfig
a -> EntitiesDetectionJobProperties
s {$sel:inputDataConfig:EntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_vpcConfig :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe VpcConfig)
entitiesDetectionJobProperties_vpcConfig :: (Maybe VpcConfig -> f (Maybe VpcConfig))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_vpcConfig = (EntitiesDetectionJobProperties -> Maybe VpcConfig)
-> (EntitiesDetectionJobProperties
-> Maybe VpcConfig -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe VpcConfig)
(Maybe VpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe VpcConfig
a -> EntitiesDetectionJobProperties
s {$sel:vpcConfig:EntitiesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_volumeKmsKeyId :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_volumeKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_volumeKmsKeyId = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:volumeKmsKeyId:EntitiesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_endTime :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
entitiesDetectionJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_endTime = (EntitiesDetectionJobProperties -> Maybe POSIX)
-> (EntitiesDetectionJobProperties
-> Maybe POSIX -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe POSIX
a -> EntitiesDetectionJobProperties
s {$sel:endTime:EntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: EntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
entitiesDetectionJobProperties_outputDataConfig :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe OutputDataConfig)
entitiesDetectionJobProperties_outputDataConfig :: (Maybe OutputDataConfig -> f (Maybe OutputDataConfig))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_outputDataConfig = (EntitiesDetectionJobProperties -> Maybe OutputDataConfig)
-> (EntitiesDetectionJobProperties
-> Maybe OutputDataConfig -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe OutputDataConfig)
(Maybe OutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe OutputDataConfig
a -> EntitiesDetectionJobProperties
s {$sel:outputDataConfig:EntitiesDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_dataAccessRoleArn :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_dataAccessRoleArn = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:dataAccessRoleArn:EntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_jobStatus :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe JobStatus)
entitiesDetectionJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_jobStatus = (EntitiesDetectionJobProperties -> Maybe JobStatus)
-> (EntitiesDetectionJobProperties
-> Maybe JobStatus -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe JobStatus)
(Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe JobStatus
a -> EntitiesDetectionJobProperties
s {$sel:jobStatus:EntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_message :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
entitiesDetectionJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_message = (EntitiesDetectionJobProperties -> Maybe Text)
-> (EntitiesDetectionJobProperties
-> Maybe Text -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe Text
a -> EntitiesDetectionJobProperties
s {$sel:message:EntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
a} :: EntitiesDetectionJobProperties)
entitiesDetectionJobProperties_submitTime :: Lens.Lens' EntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
entitiesDetectionJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
entitiesDetectionJobProperties_submitTime = (EntitiesDetectionJobProperties -> Maybe POSIX)
-> (EntitiesDetectionJobProperties
-> Maybe POSIX -> EntitiesDetectionJobProperties)
-> Lens
EntitiesDetectionJobProperties
EntitiesDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EntitiesDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:EntitiesDetectionJobProperties' :: EntitiesDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: EntitiesDetectionJobProperties
s@EntitiesDetectionJobProperties' {} Maybe POSIX
a -> EntitiesDetectionJobProperties
s {$sel:submitTime:EntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: EntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> EntitiesDetectionJobProperties
-> f EntitiesDetectionJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Core.FromJSON EntitiesDetectionJobProperties where
parseJSON :: Value -> Parser EntitiesDetectionJobProperties
parseJSON =
String
-> (Object -> Parser EntitiesDetectionJobProperties)
-> Value
-> Parser EntitiesDetectionJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"EntitiesDetectionJobProperties"
( \Object
x ->
Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties
EntitiesDetectionJobProperties'
(Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe LanguageCode)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe LanguageCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LanguageCode")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobArn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EntityRecognizerArn")
Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobName")
Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InputDataConfig")
Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe VpcConfig)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe VpcConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcConfig")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeKmsKeyId")
Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EndTime")
Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OutputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputDataConfig")
Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe JobStatus
-> Maybe Text -> Maybe POSIX -> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataAccessRoleArn")
Parser
(Maybe JobStatus
-> Maybe Text -> Maybe POSIX -> EntitiesDetectionJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
(Maybe Text -> Maybe POSIX -> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobStatus")
Parser
(Maybe Text -> Maybe POSIX -> EntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> EntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Message")
Parser (Maybe POSIX -> EntitiesDetectionJobProperties)
-> Parser (Maybe POSIX) -> Parser EntitiesDetectionJobProperties
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SubmitTime")
)
instance
Prelude.Hashable
EntitiesDetectionJobProperties
instance
Prelude.NFData
EntitiesDetectionJobProperties