{-# 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.KeyPhrasesDetectionJobProperties where
import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.OutputDataConfig
import Amazonka.Comprehend.Types.VpcConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data KeyPhrasesDetectionJobProperties = KeyPhrasesDetectionJobProperties'
{
KeyPhrasesDetectionJobProperties -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
KeyPhrasesDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
KeyPhrasesDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
KeyPhrasesDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
KeyPhrasesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
KeyPhrasesDetectionJobProperties -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
KeyPhrasesDetectionJobProperties -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
KeyPhrasesDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
KeyPhrasesDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
KeyPhrasesDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
KeyPhrasesDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
KeyPhrasesDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
KeyPhrasesDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Core.POSIX
}
deriving (KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool
(KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool)
-> (KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool)
-> Eq KeyPhrasesDetectionJobProperties
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool
$c/= :: KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool
== :: KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool
$c== :: KeyPhrasesDetectionJobProperties
-> KeyPhrasesDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [KeyPhrasesDetectionJobProperties]
ReadPrec KeyPhrasesDetectionJobProperties
Int -> ReadS KeyPhrasesDetectionJobProperties
ReadS [KeyPhrasesDetectionJobProperties]
(Int -> ReadS KeyPhrasesDetectionJobProperties)
-> ReadS [KeyPhrasesDetectionJobProperties]
-> ReadPrec KeyPhrasesDetectionJobProperties
-> ReadPrec [KeyPhrasesDetectionJobProperties]
-> Read KeyPhrasesDetectionJobProperties
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KeyPhrasesDetectionJobProperties]
$creadListPrec :: ReadPrec [KeyPhrasesDetectionJobProperties]
readPrec :: ReadPrec KeyPhrasesDetectionJobProperties
$creadPrec :: ReadPrec KeyPhrasesDetectionJobProperties
readList :: ReadS [KeyPhrasesDetectionJobProperties]
$creadList :: ReadS [KeyPhrasesDetectionJobProperties]
readsPrec :: Int -> ReadS KeyPhrasesDetectionJobProperties
$creadsPrec :: Int -> ReadS KeyPhrasesDetectionJobProperties
Prelude.Read, Int -> KeyPhrasesDetectionJobProperties -> ShowS
[KeyPhrasesDetectionJobProperties] -> ShowS
KeyPhrasesDetectionJobProperties -> String
(Int -> KeyPhrasesDetectionJobProperties -> ShowS)
-> (KeyPhrasesDetectionJobProperties -> String)
-> ([KeyPhrasesDetectionJobProperties] -> ShowS)
-> Show KeyPhrasesDetectionJobProperties
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KeyPhrasesDetectionJobProperties] -> ShowS
$cshowList :: [KeyPhrasesDetectionJobProperties] -> ShowS
show :: KeyPhrasesDetectionJobProperties -> String
$cshow :: KeyPhrasesDetectionJobProperties -> String
showsPrec :: Int -> KeyPhrasesDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> KeyPhrasesDetectionJobProperties -> ShowS
Prelude.Show, (forall x.
KeyPhrasesDetectionJobProperties
-> Rep KeyPhrasesDetectionJobProperties x)
-> (forall x.
Rep KeyPhrasesDetectionJobProperties x
-> KeyPhrasesDetectionJobProperties)
-> Generic KeyPhrasesDetectionJobProperties
forall x.
Rep KeyPhrasesDetectionJobProperties x
-> KeyPhrasesDetectionJobProperties
forall x.
KeyPhrasesDetectionJobProperties
-> Rep KeyPhrasesDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KeyPhrasesDetectionJobProperties x
-> KeyPhrasesDetectionJobProperties
$cfrom :: forall x.
KeyPhrasesDetectionJobProperties
-> Rep KeyPhrasesDetectionJobProperties x
Prelude.Generic)
newKeyPhrasesDetectionJobProperties ::
KeyPhrasesDetectionJobProperties
newKeyPhrasesDetectionJobProperties :: KeyPhrasesDetectionJobProperties
newKeyPhrasesDetectionJobProperties =
KeyPhrasesDetectionJobProperties' :: Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties'
{ $sel:languageCode:KeyPhrasesDetectionJobProperties' :: Maybe LanguageCode
languageCode =
Maybe LanguageCode
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobArn:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inputDataConfig:KeyPhrasesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:vpcConfig:KeyPhrasesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
forall a. Maybe a
Prelude.Nothing,
$sel:volumeKmsKeyId:KeyPhrasesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:KeyPhrasesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:outputDataConfig:KeyPhrasesDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:dataAccessRoleArn:KeyPhrasesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobStatus:KeyPhrasesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:message:KeyPhrasesDetectionJobProperties' :: Maybe Text
message = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submitTime:KeyPhrasesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
keyPhrasesDetectionJobProperties_languageCode :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe LanguageCode)
keyPhrasesDetectionJobProperties_languageCode :: (Maybe LanguageCode -> f (Maybe LanguageCode))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_languageCode = (KeyPhrasesDetectionJobProperties -> Maybe LanguageCode)
-> (KeyPhrasesDetectionJobProperties
-> Maybe LanguageCode -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe LanguageCode)
(Maybe LanguageCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe LanguageCode
languageCode :: Maybe LanguageCode
$sel:languageCode:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe LanguageCode
languageCode} -> Maybe LanguageCode
languageCode) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe LanguageCode
a -> KeyPhrasesDetectionJobProperties
s {$sel:languageCode:KeyPhrasesDetectionJobProperties' :: Maybe LanguageCode
languageCode = Maybe LanguageCode
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_jobId :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.Text)
keyPhrasesDetectionJobProperties_jobId :: (Maybe Text -> f (Maybe Text))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_jobId = (KeyPhrasesDetectionJobProperties -> Maybe Text)
-> (KeyPhrasesDetectionJobProperties
-> Maybe Text -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe Text
jobId :: Maybe Text
$sel:jobId:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe Text
a -> KeyPhrasesDetectionJobProperties
s {$sel:jobId:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobId = Maybe Text
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_jobArn :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.Text)
keyPhrasesDetectionJobProperties_jobArn :: (Maybe Text -> f (Maybe Text))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_jobArn = (KeyPhrasesDetectionJobProperties -> Maybe Text)
-> (KeyPhrasesDetectionJobProperties
-> Maybe Text -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe Text
a -> KeyPhrasesDetectionJobProperties
s {$sel:jobArn:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_jobName :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.Text)
keyPhrasesDetectionJobProperties_jobName :: (Maybe Text -> f (Maybe Text))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_jobName = (KeyPhrasesDetectionJobProperties -> Maybe Text)
-> (KeyPhrasesDetectionJobProperties
-> Maybe Text -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe Text
a -> KeyPhrasesDetectionJobProperties
s {$sel:jobName:KeyPhrasesDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_inputDataConfig :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe InputDataConfig)
keyPhrasesDetectionJobProperties_inputDataConfig :: (Maybe InputDataConfig -> f (Maybe InputDataConfig))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_inputDataConfig = (KeyPhrasesDetectionJobProperties -> Maybe InputDataConfig)
-> (KeyPhrasesDetectionJobProperties
-> Maybe InputDataConfig -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe InputDataConfig)
(Maybe InputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe InputDataConfig
inputDataConfig :: Maybe InputDataConfig
$sel:inputDataConfig:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig} -> Maybe InputDataConfig
inputDataConfig) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe InputDataConfig
a -> KeyPhrasesDetectionJobProperties
s {$sel:inputDataConfig:KeyPhrasesDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = Maybe InputDataConfig
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_vpcConfig :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe VpcConfig)
keyPhrasesDetectionJobProperties_vpcConfig :: (Maybe VpcConfig -> f (Maybe VpcConfig))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_vpcConfig = (KeyPhrasesDetectionJobProperties -> Maybe VpcConfig)
-> (KeyPhrasesDetectionJobProperties
-> Maybe VpcConfig -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe VpcConfig)
(Maybe VpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe VpcConfig
vpcConfig :: Maybe VpcConfig
$sel:vpcConfig:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe VpcConfig
vpcConfig} -> Maybe VpcConfig
vpcConfig) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe VpcConfig
a -> KeyPhrasesDetectionJobProperties
s {$sel:vpcConfig:KeyPhrasesDetectionJobProperties' :: Maybe VpcConfig
vpcConfig = Maybe VpcConfig
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_volumeKmsKeyId :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.Text)
keyPhrasesDetectionJobProperties_volumeKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_volumeKmsKeyId = (KeyPhrasesDetectionJobProperties -> Maybe Text)
-> (KeyPhrasesDetectionJobProperties
-> Maybe Text -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe Text
a -> KeyPhrasesDetectionJobProperties
s {$sel:volumeKmsKeyId:KeyPhrasesDetectionJobProperties' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_endTime :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
keyPhrasesDetectionJobProperties_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_endTime = (KeyPhrasesDetectionJobProperties -> Maybe POSIX)
-> (KeyPhrasesDetectionJobProperties
-> Maybe POSIX -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe POSIX
a -> KeyPhrasesDetectionJobProperties
s {$sel:endTime:KeyPhrasesDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: KeyPhrasesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
keyPhrasesDetectionJobProperties_outputDataConfig :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe OutputDataConfig)
keyPhrasesDetectionJobProperties_outputDataConfig :: (Maybe OutputDataConfig -> f (Maybe OutputDataConfig))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_outputDataConfig = (KeyPhrasesDetectionJobProperties -> Maybe OutputDataConfig)
-> (KeyPhrasesDetectionJobProperties
-> Maybe OutputDataConfig -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe OutputDataConfig)
(Maybe OutputDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe OutputDataConfig
outputDataConfig :: Maybe OutputDataConfig
$sel:outputDataConfig:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig} -> Maybe OutputDataConfig
outputDataConfig) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe OutputDataConfig
a -> KeyPhrasesDetectionJobProperties
s {$sel:outputDataConfig:KeyPhrasesDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = Maybe OutputDataConfig
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_dataAccessRoleArn :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.Text)
keyPhrasesDetectionJobProperties_dataAccessRoleArn :: (Maybe Text -> f (Maybe Text))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_dataAccessRoleArn = (KeyPhrasesDetectionJobProperties -> Maybe Text)
-> (KeyPhrasesDetectionJobProperties
-> Maybe Text -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe Text
a -> KeyPhrasesDetectionJobProperties
s {$sel:dataAccessRoleArn:KeyPhrasesDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_jobStatus :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe JobStatus)
keyPhrasesDetectionJobProperties_jobStatus :: (Maybe JobStatus -> f (Maybe JobStatus))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_jobStatus = (KeyPhrasesDetectionJobProperties -> Maybe JobStatus)
-> (KeyPhrasesDetectionJobProperties
-> Maybe JobStatus -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe JobStatus)
(Maybe JobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe JobStatus
a -> KeyPhrasesDetectionJobProperties
s {$sel:jobStatus:KeyPhrasesDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_message :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.Text)
keyPhrasesDetectionJobProperties_message :: (Maybe Text -> f (Maybe Text))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_message = (KeyPhrasesDetectionJobProperties -> Maybe Text)
-> (KeyPhrasesDetectionJobProperties
-> Maybe Text -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe Text
message :: Maybe Text
$sel:message:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe Text
a -> KeyPhrasesDetectionJobProperties
s {$sel:message:KeyPhrasesDetectionJobProperties' :: Maybe Text
message = Maybe Text
a} :: KeyPhrasesDetectionJobProperties)
keyPhrasesDetectionJobProperties_submitTime :: Lens.Lens' KeyPhrasesDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
keyPhrasesDetectionJobProperties_submitTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
keyPhrasesDetectionJobProperties_submitTime = (KeyPhrasesDetectionJobProperties -> Maybe POSIX)
-> (KeyPhrasesDetectionJobProperties
-> Maybe POSIX -> KeyPhrasesDetectionJobProperties)
-> Lens
KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KeyPhrasesDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:KeyPhrasesDetectionJobProperties' :: KeyPhrasesDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: KeyPhrasesDetectionJobProperties
s@KeyPhrasesDetectionJobProperties' {} Maybe POSIX
a -> KeyPhrasesDetectionJobProperties
s {$sel:submitTime:KeyPhrasesDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: KeyPhrasesDetectionJobProperties) ((Maybe POSIX -> f (Maybe POSIX))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> KeyPhrasesDetectionJobProperties
-> f KeyPhrasesDetectionJobProperties
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance
Core.FromJSON
KeyPhrasesDetectionJobProperties
where
parseJSON :: Value -> Parser KeyPhrasesDetectionJobProperties
parseJSON =
String
-> (Object -> Parser KeyPhrasesDetectionJobProperties)
-> Value
-> Parser KeyPhrasesDetectionJobProperties
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"KeyPhrasesDetectionJobProperties"
( \Object
x ->
Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties
KeyPhrasesDetectionJobProperties'
(Maybe LanguageCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe LanguageCode)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe LanguageCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LanguageCode")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobArn")
Parser
(Maybe Text
-> Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobName")
Parser
(Maybe InputDataConfig
-> Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe InputDataConfig)
-> Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InputDataConfig")
Parser
(Maybe VpcConfig
-> Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe VpcConfig)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe VpcConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcConfig")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VolumeKmsKeyId")
Parser
(Maybe POSIX
-> Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe POSIX)
-> Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EndTime")
Parser
(Maybe OutputDataConfig
-> Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe OutputDataConfig)
-> Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OutputDataConfig)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"OutputDataConfig")
Parser
(Maybe Text
-> Maybe JobStatus
-> Maybe Text
-> Maybe POSIX
-> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser
(Maybe JobStatus
-> Maybe Text -> Maybe POSIX -> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataAccessRoleArn")
Parser
(Maybe JobStatus
-> Maybe Text -> Maybe POSIX -> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe JobStatus)
-> Parser
(Maybe Text -> Maybe POSIX -> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobStatus")
Parser
(Maybe Text -> Maybe POSIX -> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> KeyPhrasesDetectionJobProperties)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Message")
Parser (Maybe POSIX -> KeyPhrasesDetectionJobProperties)
-> Parser (Maybe POSIX) -> Parser KeyPhrasesDetectionJobProperties
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SubmitTime")
)
instance
Prelude.Hashable
KeyPhrasesDetectionJobProperties
instance
Prelude.NFData
KeyPhrasesDetectionJobProperties