{-# 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.PiiEntitiesDetectionJobProperties where
import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.PiiEntitiesDetectionMode
import Amazonka.Comprehend.Types.PiiOutputDataConfig
import Amazonka.Comprehend.Types.RedactionConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data PiiEntitiesDetectionJobProperties = PiiEntitiesDetectionJobProperties'
{
PiiEntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
PiiEntitiesDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
PiiEntitiesDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
PiiEntitiesDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
PiiEntitiesDetectionJobProperties -> Maybe PiiEntitiesDetectionMode
mode :: Prelude.Maybe PiiEntitiesDetectionMode,
PiiEntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
PiiEntitiesDetectionJobProperties -> Maybe RedactionConfig
redactionConfig :: Prelude.Maybe RedactionConfig,
PiiEntitiesDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
PiiEntitiesDetectionJobProperties -> Maybe PiiOutputDataConfig
outputDataConfig :: Prelude.Maybe PiiOutputDataConfig,
PiiEntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
PiiEntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
PiiEntitiesDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
PiiEntitiesDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
}
deriving (PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
(PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool)
-> (PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool)
-> Eq PiiEntitiesDetectionJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
$c/= :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
== :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
$c== :: PiiEntitiesDetectionJobProperties
-> PiiEntitiesDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [PiiEntitiesDetectionJobProperties]
ReadPrec PiiEntitiesDetectionJobProperties
Int -> ReadS PiiEntitiesDetectionJobProperties
ReadS [PiiEntitiesDetectionJobProperties]
(Int -> ReadS PiiEntitiesDetectionJobProperties)
-> ReadS [PiiEntitiesDetectionJobProperties]
-> ReadPrec PiiEntitiesDetectionJobProperties
-> ReadPrec [PiiEntitiesDetectionJobProperties]
-> Read PiiEntitiesDetectionJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PiiEntitiesDetectionJobProperties]
$creadListPrec :: ReadPrec [PiiEntitiesDetectionJobProperties]
readPrec :: ReadPrec PiiEntitiesDetectionJobProperties
$creadPrec :: ReadPrec PiiEntitiesDetectionJobProperties
readList :: ReadS [PiiEntitiesDetectionJobProperties]
$creadList :: ReadS [PiiEntitiesDetectionJobProperties]
readsPrec :: Int -> ReadS PiiEntitiesDetectionJobProperties
$creadsPrec :: Int -> ReadS PiiEntitiesDetectionJobProperties
Prelude.Read, Int -> PiiEntitiesDetectionJobProperties -> ShowS
[PiiEntitiesDetectionJobProperties] -> ShowS
PiiEntitiesDetectionJobProperties -> String
(Int -> PiiEntitiesDetectionJobProperties -> ShowS)
-> (PiiEntitiesDetectionJobProperties -> String)
-> ([PiiEntitiesDetectionJobProperties] -> ShowS)
-> Show PiiEntitiesDetectionJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PiiEntitiesDetectionJobProperties] -> ShowS
$cshowList :: [PiiEntitiesDetectionJobProperties] -> ShowS
show :: PiiEntitiesDetectionJobProperties -> String
$cshow :: PiiEntitiesDetectionJobProperties -> String
showsPrec :: Int -> PiiEntitiesDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> PiiEntitiesDetectionJobProperties -> ShowS
Prelude.Show, (forall x.
PiiEntitiesDetectionJobProperties
-> Rep PiiEntitiesDetectionJobProperties x)
-> (forall x.
Rep PiiEntitiesDetectionJobProperties x
-> PiiEntitiesDetectionJobProperties)
-> Generic PiiEntitiesDetectionJobProperties
forall x.
Rep PiiEntitiesDetectionJobProperties x
-> PiiEntitiesDetectionJobProperties
forall x.
PiiEntitiesDetectionJobProperties
-> Rep PiiEntitiesDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PiiEntitiesDetectionJobProperties x
-> PiiEntitiesDetectionJobProperties
$cfrom :: forall x.
PiiEntitiesDetectionJobProperties
-> Rep PiiEntitiesDetectionJobProperties x
Prelude.Generic)
newPiiEntitiesDetectionJobProperties ::
PiiEntitiesDetectionJobProperties
newPiiEntitiesDetectionJobProperties :: PiiEntitiesDetectionJobProperties
newPiiEntitiesDetectionJobProperties =
PiiEntitiesDetectionJobProperties' :: Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties'
{ $sel:languageCode:PiiEntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode =
Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:mode:PiiEntitiesDetectionJobProperties' :: Maybe PiiEntitiesDetectionMode
mode = Maybe PiiEntitiesDetectionMode
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:redactionConfig:PiiEntitiesDetectionJobProperties' :: Maybe RedactionConfig
redactionConfig = Maybe RedactionConfig
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:outputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe PiiOutputDataConfig
outputDataConfig = Maybe PiiOutputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:dataAccessRoleArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:PiiEntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:message:PiiEntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submitTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
piiEntitiesDetectionJobProperties_languageCode :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe LanguageCode)
piiEntitiesDetectionJobProperties_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_languageCode = (PiiEntitiesDetectionJobProperties -> Maybe LanguageCode)
-> (PiiEntitiesDetectionJobProperties
-> Maybe LanguageCode -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe LanguageCode)
(Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe LanguageCode
a -> PiiEntitiesDetectionJobProperties
s {$sel:languageCode:PiiEntitiesDetectionJobProperties' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_jobId :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobId = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
-> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobId:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_jobArn :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobArn = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
-> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_jobName :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobName = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
-> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobName:PiiEntitiesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_mode :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe PiiEntitiesDetectionMode)
piiEntitiesDetectionJobProperties_mode :: (Maybe PiiEntitiesDetectionMode
-> f (Maybe PiiEntitiesDetectionMode))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_mode = (PiiEntitiesDetectionJobProperties
-> Maybe PiiEntitiesDetectionMode)
-> (PiiEntitiesDetectionJobProperties
-> Maybe PiiEntitiesDetectionMode
-> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe PiiEntitiesDetectionMode)
(Maybe PiiEntitiesDetectionMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe PiiEntitiesDetectionMode
mode :: Maybe PiiEntitiesDetectionMode
$sel:mode:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe PiiEntitiesDetectionMode
mode} -> Maybe PiiEntitiesDetectionMode
mode) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe PiiEntitiesDetectionMode
a -> PiiEntitiesDetectionJobProperties
s {$sel:mode:PiiEntitiesDetectionJobProperties' :: Maybe PiiEntitiesDetectionMode
mode = Maybe PiiEntitiesDetectionMode
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_inputDataConfig :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe InputDataConfig)
piiEntitiesDetectionJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_inputDataConfig = (PiiEntitiesDetectionJobProperties -> Maybe InputDataConfig)
-> (PiiEntitiesDetectionJobProperties
-> Maybe InputDataConfig -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe InputDataConfig)
(Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe InputDataConfig
a -> PiiEntitiesDetectionJobProperties
s {$sel:inputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_redactionConfig :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe RedactionConfig)
piiEntitiesDetectionJobProperties_redactionConfig :: (Maybe RedactionConfig -> f (Maybe RedactionConfig))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_redactionConfig = (PiiEntitiesDetectionJobProperties -> Maybe RedactionConfig)
-> (PiiEntitiesDetectionJobProperties
-> Maybe RedactionConfig -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe RedactionConfig)
(Maybe RedactionConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe RedactionConfig
redactionConfig :: Maybe RedactionConfig
$sel:redactionConfig:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe RedactionConfig
redactionConfig} -> Maybe RedactionConfig
redactionConfig) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe RedactionConfig
a -> PiiEntitiesDetectionJobProperties
s {$sel:redactionConfig:PiiEntitiesDetectionJobProperties' :: Maybe RedactionConfig
redactionConfig = Maybe RedactionConfig
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_endTime :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
piiEntitiesDetectionJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_endTime = (PiiEntitiesDetectionJobProperties -> Maybe POSIX)
-> (PiiEntitiesDetectionJobProperties
-> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe POSIX
a -> PiiEntitiesDetectionJobProperties
s {$sel:endTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: PiiEntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
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
piiEntitiesDetectionJobProperties_outputDataConfig :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe PiiOutputDataConfig)
piiEntitiesDetectionJobProperties_outputDataConfig :: (Maybe PiiOutputDataConfig -> f (Maybe PiiOutputDataConfig))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_outputDataConfig = (PiiEntitiesDetectionJobProperties -> Maybe PiiOutputDataConfig)
-> (PiiEntitiesDetectionJobProperties
-> Maybe PiiOutputDataConfig -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe PiiOutputDataConfig)
(Maybe PiiOutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe PiiOutputDataConfig
outputDataConfig :: Maybe PiiOutputDataConfig
$sel:outputDataConfig:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe PiiOutputDataConfig
outputDataConfig} -> Maybe PiiOutputDataConfig
outputDataConfig) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe PiiOutputDataConfig
a -> PiiEntitiesDetectionJobProperties
s {$sel:outputDataConfig:PiiEntitiesDetectionJobProperties' :: Maybe PiiOutputDataConfig
outputDataConfig = Maybe PiiOutputDataConfig
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_dataAccessRoleArn :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_dataAccessRoleArn = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
-> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:dataAccessRoleArn:PiiEntitiesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_jobStatus :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe JobStatus)
piiEntitiesDetectionJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_jobStatus = (PiiEntitiesDetectionJobProperties -> Maybe JobStatus)
-> (PiiEntitiesDetectionJobProperties
-> Maybe JobStatus -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe JobStatus)
(Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe JobStatus
a -> PiiEntitiesDetectionJobProperties
s {$sel:jobStatus:PiiEntitiesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_message :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.Text)
piiEntitiesDetectionJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_message = (PiiEntitiesDetectionJobProperties -> Maybe Text)
-> (PiiEntitiesDetectionJobProperties
-> Maybe Text -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe Text
a -> PiiEntitiesDetectionJobProperties
s {$sel:message:PiiEntitiesDetectionJobProperties' :: Maybe Text
message = Maybe Text
a} :: PiiEntitiesDetectionJobProperties)
piiEntitiesDetectionJobProperties_submitTime :: Lens.Lens' PiiEntitiesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
piiEntitiesDetectionJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
piiEntitiesDetectionJobProperties_submitTime = (PiiEntitiesDetectionJobProperties -> Maybe POSIX)
-> (PiiEntitiesDetectionJobProperties
-> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
-> Lens
PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PiiEntitiesDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:PiiEntitiesDetectionJobProperties' :: PiiEntitiesDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: PiiEntitiesDetectionJobProperties
s@PiiEntitiesDetectionJobProperties' {} Maybe POSIX
a -> PiiEntitiesDetectionJobProperties
s {$sel:submitTime:PiiEntitiesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: PiiEntitiesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PiiEntitiesDetectionJobProperties
-> f PiiEntitiesDetectionJobProperties
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
PiiEntitiesDetectionJobProperties
where
parseJSON :: Value -> Parser PiiEntitiesDetectionJobProperties
parseJSON =
String
-> (Object -> Parser PiiEntitiesDetectionJobProperties)
-> Value
-> Parser PiiEntitiesDetectionJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PiiEntitiesDetectionJobProperties"
( \Object
x ->
Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties
PiiEntitiesDetectionJobProperties'
(Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe LanguageCode)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
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 PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
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 PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
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 PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
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 PiiEntitiesDetectionMode
-> Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe PiiEntitiesDetectionMode)
-> Parser
(Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PiiEntitiesDetectionMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Mode")
Parser
(Maybe InputDataConfig
-> Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
(Maybe RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
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 RedactionConfig
-> Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe RedactionConfig)
-> Parser
(Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RedactionConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RedactionConfig")
Parser
(Maybe POSIX
-> Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser
(Maybe PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
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 PiiOutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe PiiOutputDataConfig)
-> Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PiiOutputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputDataConfig")
Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe JobStatus
-> Maybe Text -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
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 -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
(Maybe Text -> Maybe POSIX -> PiiEntitiesDetectionJobProperties)
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 -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> PiiEntitiesDetectionJobProperties)
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 -> PiiEntitiesDetectionJobProperties)
-> Parser (Maybe POSIX) -> Parser PiiEntitiesDetectionJobProperties
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
PiiEntitiesDetectionJobProperties
instance
Prelude.NFData
PiiEntitiesDetectionJobProperties