{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Comprehend.Types.EventsDetectionJobProperties
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Comprehend.Types.EventsDetectionJobProperties where

import Amazonka.Comprehend.Types.InputDataConfig
import Amazonka.Comprehend.Types.JobStatus
import Amazonka.Comprehend.Types.LanguageCode
import Amazonka.Comprehend.Types.OutputDataConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Provides information about an events detection job.
--
-- /See:/ 'newEventsDetectionJobProperties' smart constructor.
data EventsDetectionJobProperties = EventsDetectionJobProperties'
  { -- | The Amazon Resource Name (ARN) of the AWS Identify and Access Management
    -- (IAM) role that grants Amazon Comprehend read access to your input data.
    EventsDetectionJobProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The time that the events detection job completed.
    EventsDetectionJobProperties -> Maybe POSIX
endTime :: Prelude.Maybe Data.POSIX,
    -- | The input data configuration that you supplied when you created the
    -- events detection job.
    EventsDetectionJobProperties -> Maybe InputDataConfig
inputDataConfig :: Prelude.Maybe InputDataConfig,
    -- | The Amazon Resource Name (ARN) of the events detection job. It is a
    -- unique, fully qualified identifier for the job. It includes the AWS
    -- account, Region, and the job ID. The format of the ARN is as follows:
    --
    -- @arn:\<partition>:comprehend:\<region>:\<account-id>:events-detection-job\/\<job-id>@
    --
    -- The following is an example job ARN:
    --
    -- @arn:aws:comprehend:us-west-2:111122223333:events-detection-job\/1234abcd12ab34cd56ef1234567890ab@
    EventsDetectionJobProperties -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The identifier assigned to the events detection job.
    EventsDetectionJobProperties -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The name you assigned the events detection job.
    EventsDetectionJobProperties -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | The current status of the events detection job.
    EventsDetectionJobProperties -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | The language code of the input documents.
    EventsDetectionJobProperties -> Maybe LanguageCode
languageCode :: Prelude.Maybe LanguageCode,
    -- | A description of the status of the events detection job.
    EventsDetectionJobProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The output data configuration that you supplied when you created the
    -- events detection job.
    EventsDetectionJobProperties -> Maybe OutputDataConfig
outputDataConfig :: Prelude.Maybe OutputDataConfig,
    -- | The time that the events detection job was submitted for processing.
    EventsDetectionJobProperties -> Maybe POSIX
submitTime :: Prelude.Maybe Data.POSIX,
    -- | The types of events that are detected by the job.
    EventsDetectionJobProperties -> Maybe (NonEmpty Text)
targetEventTypes :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text)
  }
  deriving (EventsDetectionJobProperties
-> EventsDetectionJobProperties -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EventsDetectionJobProperties
-> EventsDetectionJobProperties -> Bool
$c/= :: EventsDetectionJobProperties
-> EventsDetectionJobProperties -> Bool
== :: EventsDetectionJobProperties
-> EventsDetectionJobProperties -> Bool
$c== :: EventsDetectionJobProperties
-> EventsDetectionJobProperties -> Bool
Prelude.Eq, ReadPrec [EventsDetectionJobProperties]
ReadPrec EventsDetectionJobProperties
Int -> ReadS EventsDetectionJobProperties
ReadS [EventsDetectionJobProperties]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EventsDetectionJobProperties]
$creadListPrec :: ReadPrec [EventsDetectionJobProperties]
readPrec :: ReadPrec EventsDetectionJobProperties
$creadPrec :: ReadPrec EventsDetectionJobProperties
readList :: ReadS [EventsDetectionJobProperties]
$creadList :: ReadS [EventsDetectionJobProperties]
readsPrec :: Int -> ReadS EventsDetectionJobProperties
$creadsPrec :: Int -> ReadS EventsDetectionJobProperties
Prelude.Read, Int -> EventsDetectionJobProperties -> ShowS
[EventsDetectionJobProperties] -> ShowS
EventsDetectionJobProperties -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EventsDetectionJobProperties] -> ShowS
$cshowList :: [EventsDetectionJobProperties] -> ShowS
show :: EventsDetectionJobProperties -> String
$cshow :: EventsDetectionJobProperties -> String
showsPrec :: Int -> EventsDetectionJobProperties -> ShowS
$cshowsPrec :: Int -> EventsDetectionJobProperties -> ShowS
Prelude.Show, forall x.
Rep EventsDetectionJobProperties x -> EventsDetectionJobProperties
forall x.
EventsDetectionJobProperties -> Rep EventsDetectionJobProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EventsDetectionJobProperties x -> EventsDetectionJobProperties
$cfrom :: forall x.
EventsDetectionJobProperties -> Rep EventsDetectionJobProperties x
Prelude.Generic)

-- |
-- Create a value of 'EventsDetectionJobProperties' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'dataAccessRoleArn', 'eventsDetectionJobProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) of the AWS Identify and Access Management
-- (IAM) role that grants Amazon Comprehend read access to your input data.
--
-- 'endTime', 'eventsDetectionJobProperties_endTime' - The time that the events detection job completed.
--
-- 'inputDataConfig', 'eventsDetectionJobProperties_inputDataConfig' - The input data configuration that you supplied when you created the
-- events detection job.
--
-- 'jobArn', 'eventsDetectionJobProperties_jobArn' - The Amazon Resource Name (ARN) of the events detection job. It is a
-- unique, fully qualified identifier for the job. It includes the AWS
-- account, Region, and the job ID. The format of the ARN is as follows:
--
-- @arn:\<partition>:comprehend:\<region>:\<account-id>:events-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:events-detection-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'jobId', 'eventsDetectionJobProperties_jobId' - The identifier assigned to the events detection job.
--
-- 'jobName', 'eventsDetectionJobProperties_jobName' - The name you assigned the events detection job.
--
-- 'jobStatus', 'eventsDetectionJobProperties_jobStatus' - The current status of the events detection job.
--
-- 'languageCode', 'eventsDetectionJobProperties_languageCode' - The language code of the input documents.
--
-- 'message', 'eventsDetectionJobProperties_message' - A description of the status of the events detection job.
--
-- 'outputDataConfig', 'eventsDetectionJobProperties_outputDataConfig' - The output data configuration that you supplied when you created the
-- events detection job.
--
-- 'submitTime', 'eventsDetectionJobProperties_submitTime' - The time that the events detection job was submitted for processing.
--
-- 'targetEventTypes', 'eventsDetectionJobProperties_targetEventTypes' - The types of events that are detected by the job.
newEventsDetectionJobProperties ::
  EventsDetectionJobProperties
newEventsDetectionJobProperties :: EventsDetectionJobProperties
newEventsDetectionJobProperties =
  EventsDetectionJobProperties'
    { $sel:dataAccessRoleArn:EventsDetectionJobProperties' :: Maybe Text
dataAccessRoleArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:EventsDetectionJobProperties' :: Maybe POSIX
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:inputDataConfig:EventsDetectionJobProperties' :: Maybe InputDataConfig
inputDataConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:EventsDetectionJobProperties' :: Maybe Text
jobArn = forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:EventsDetectionJobProperties' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
      $sel:jobName:EventsDetectionJobProperties' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
      $sel:jobStatus:EventsDetectionJobProperties' :: Maybe JobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:languageCode:EventsDetectionJobProperties' :: Maybe LanguageCode
languageCode = forall a. Maybe a
Prelude.Nothing,
      $sel:message:EventsDetectionJobProperties' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
      $sel:outputDataConfig:EventsDetectionJobProperties' :: Maybe OutputDataConfig
outputDataConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:submitTime:EventsDetectionJobProperties' :: Maybe POSIX
submitTime = forall a. Maybe a
Prelude.Nothing,
      $sel:targetEventTypes:EventsDetectionJobProperties' :: Maybe (NonEmpty Text)
targetEventTypes = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the AWS Identify and Access Management
-- (IAM) role that grants Amazon Comprehend read access to your input data.
eventsDetectionJobProperties_dataAccessRoleArn :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe Prelude.Text)
eventsDetectionJobProperties_dataAccessRoleArn :: Lens' EventsDetectionJobProperties (Maybe Text)
eventsDetectionJobProperties_dataAccessRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe Text
a -> EventsDetectionJobProperties
s {$sel:dataAccessRoleArn:EventsDetectionJobProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: EventsDetectionJobProperties)

-- | The time that the events detection job completed.
eventsDetectionJobProperties_endTime :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
eventsDetectionJobProperties_endTime :: Lens' EventsDetectionJobProperties (Maybe UTCTime)
eventsDetectionJobProperties_endTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe POSIX
a -> EventsDetectionJobProperties
s {$sel:endTime:EventsDetectionJobProperties' :: Maybe POSIX
endTime = Maybe POSIX
a} :: EventsDetectionJobProperties) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

-- | The Amazon Resource Name (ARN) of the events detection job. It is a
-- unique, fully qualified identifier for the job. It includes the AWS
-- account, Region, and the job ID. The format of the ARN is as follows:
--
-- @arn:\<partition>:comprehend:\<region>:\<account-id>:events-detection-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:events-detection-job\/1234abcd12ab34cd56ef1234567890ab@
eventsDetectionJobProperties_jobArn :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe Prelude.Text)
eventsDetectionJobProperties_jobArn :: Lens' EventsDetectionJobProperties (Maybe Text)
eventsDetectionJobProperties_jobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe Text
a -> EventsDetectionJobProperties
s {$sel:jobArn:EventsDetectionJobProperties' :: Maybe Text
jobArn = Maybe Text
a} :: EventsDetectionJobProperties)

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

-- | The name you assigned the events detection job.
eventsDetectionJobProperties_jobName :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe Prelude.Text)
eventsDetectionJobProperties_jobName :: Lens' EventsDetectionJobProperties (Maybe Text)
eventsDetectionJobProperties_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe Text
jobName :: Maybe Text
$sel:jobName:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe Text
a -> EventsDetectionJobProperties
s {$sel:jobName:EventsDetectionJobProperties' :: Maybe Text
jobName = Maybe Text
a} :: EventsDetectionJobProperties)

-- | The current status of the events detection job.
eventsDetectionJobProperties_jobStatus :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe JobStatus)
eventsDetectionJobProperties_jobStatus :: Lens' EventsDetectionJobProperties (Maybe JobStatus)
eventsDetectionJobProperties_jobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe JobStatus
a -> EventsDetectionJobProperties
s {$sel:jobStatus:EventsDetectionJobProperties' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: EventsDetectionJobProperties)

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

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

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

-- | The time that the events detection job was submitted for processing.
eventsDetectionJobProperties_submitTime :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe Prelude.UTCTime)
eventsDetectionJobProperties_submitTime :: Lens' EventsDetectionJobProperties (Maybe UTCTime)
eventsDetectionJobProperties_submitTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe POSIX
submitTime :: Maybe POSIX
$sel:submitTime:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe POSIX
submitTime} -> Maybe POSIX
submitTime) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe POSIX
a -> EventsDetectionJobProperties
s {$sel:submitTime:EventsDetectionJobProperties' :: Maybe POSIX
submitTime = Maybe POSIX
a} :: EventsDetectionJobProperties) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The types of events that are detected by the job.
eventsDetectionJobProperties_targetEventTypes :: Lens.Lens' EventsDetectionJobProperties (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
eventsDetectionJobProperties_targetEventTypes :: Lens' EventsDetectionJobProperties (Maybe (NonEmpty Text))
eventsDetectionJobProperties_targetEventTypes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EventsDetectionJobProperties' {Maybe (NonEmpty Text)
targetEventTypes :: Maybe (NonEmpty Text)
$sel:targetEventTypes:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe (NonEmpty Text)
targetEventTypes} -> Maybe (NonEmpty Text)
targetEventTypes) (\s :: EventsDetectionJobProperties
s@EventsDetectionJobProperties' {} Maybe (NonEmpty Text)
a -> EventsDetectionJobProperties
s {$sel:targetEventTypes:EventsDetectionJobProperties' :: Maybe (NonEmpty Text)
targetEventTypes = Maybe (NonEmpty Text)
a} :: EventsDetectionJobProperties) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.Hashable
    EventsDetectionJobProperties
  where
  hashWithSalt :: Int -> EventsDetectionJobProperties -> Int
hashWithSalt Int
_salt EventsDetectionJobProperties' {Maybe (NonEmpty Text)
Maybe Text
Maybe POSIX
Maybe InputDataConfig
Maybe JobStatus
Maybe LanguageCode
Maybe OutputDataConfig
targetEventTypes :: Maybe (NonEmpty Text)
submitTime :: Maybe POSIX
outputDataConfig :: Maybe OutputDataConfig
message :: Maybe Text
languageCode :: Maybe LanguageCode
jobStatus :: Maybe JobStatus
jobName :: Maybe Text
jobId :: Maybe Text
jobArn :: Maybe Text
inputDataConfig :: Maybe InputDataConfig
endTime :: Maybe POSIX
dataAccessRoleArn :: Maybe Text
$sel:targetEventTypes:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe (NonEmpty Text)
$sel:submitTime:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe POSIX
$sel:outputDataConfig:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe OutputDataConfig
$sel:message:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
$sel:languageCode:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe LanguageCode
$sel:jobStatus:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe JobStatus
$sel:jobName:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
$sel:jobId:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
$sel:jobArn:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
$sel:inputDataConfig:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe InputDataConfig
$sel:endTime:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe POSIX
$sel:dataAccessRoleArn:EventsDetectionJobProperties' :: EventsDetectionJobProperties -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataAccessRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
endTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe InputDataConfig
inputDataConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe JobStatus
jobStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LanguageCode
languageCode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutputDataConfig
outputDataConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
submitTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
targetEventTypes

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