{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.StartDocumentClassificationJob
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Starts an asynchronous document classification job. Use the operation to
-- track the progress of the job.
module Amazonka.Comprehend.StartDocumentClassificationJob
  ( -- * Creating a Request
    StartDocumentClassificationJob (..),
    newStartDocumentClassificationJob,

    -- * Request Lenses
    startDocumentClassificationJob_clientRequestToken,
    startDocumentClassificationJob_jobName,
    startDocumentClassificationJob_tags,
    startDocumentClassificationJob_volumeKmsKeyId,
    startDocumentClassificationJob_vpcConfig,
    startDocumentClassificationJob_documentClassifierArn,
    startDocumentClassificationJob_inputDataConfig,
    startDocumentClassificationJob_outputDataConfig,
    startDocumentClassificationJob_dataAccessRoleArn,

    -- * Destructuring the Response
    StartDocumentClassificationJobResponse (..),
    newStartDocumentClassificationJobResponse,

    -- * Response Lenses
    startDocumentClassificationJobResponse_jobArn,
    startDocumentClassificationJobResponse_jobId,
    startDocumentClassificationJobResponse_jobStatus,
    startDocumentClassificationJobResponse_httpStatus,
  )
where

import Amazonka.Comprehend.Types
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
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newStartDocumentClassificationJob' smart constructor.
data StartDocumentClassificationJob = StartDocumentClassificationJob'
  { -- | A unique identifier for the request. If you do not set the client
    -- request token, Amazon Comprehend generates one.
    StartDocumentClassificationJob -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the job.
    StartDocumentClassificationJob -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
    -- | Tags to be associated with the document classification job. A tag is a
    -- key-value pair that adds metadata to a resource used by Amazon
    -- Comprehend. For example, a tag with \"Sales\" as the key might be added
    -- to a resource to indicate its use by the sales department.
    StartDocumentClassificationJob -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
    -- uses to encrypt data on the storage volume attached to the ML compute
    -- instance(s) that process the analysis job. The VolumeKmsKeyId can be
    -- either of the following formats:
    --
    -- -   KMS Key ID: @\"1234abcd-12ab-34cd-56ef-1234567890ab\"@
    --
    -- -   Amazon Resource Name (ARN) of a KMS Key:
    --     @\"arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab\"@
    StartDocumentClassificationJob -> Maybe Text
volumeKmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | Configuration parameters for an optional private Virtual Private Cloud
    -- (VPC) containing the resources you are using for your document
    -- classification job. For more information, see
    -- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
    StartDocumentClassificationJob -> Maybe VpcConfig
vpcConfig :: Prelude.Maybe VpcConfig,
    -- | The Amazon Resource Name (ARN) of the document classifier to use to
    -- process the job.
    StartDocumentClassificationJob -> Text
documentClassifierArn :: Prelude.Text,
    -- | Specifies the format and location of the input data for the job.
    StartDocumentClassificationJob -> InputDataConfig
inputDataConfig :: InputDataConfig,
    -- | Specifies where to send the output files.
    StartDocumentClassificationJob -> OutputDataConfig
outputDataConfig :: OutputDataConfig,
    -- | The Amazon Resource Name (ARN) of the AWS Identity and Access Management
    -- (IAM) role that grants Amazon Comprehend read access to your input data.
    StartDocumentClassificationJob -> Text
dataAccessRoleArn :: Prelude.Text
  }
  deriving (StartDocumentClassificationJob
-> StartDocumentClassificationJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDocumentClassificationJob
-> StartDocumentClassificationJob -> Bool
$c/= :: StartDocumentClassificationJob
-> StartDocumentClassificationJob -> Bool
== :: StartDocumentClassificationJob
-> StartDocumentClassificationJob -> Bool
$c== :: StartDocumentClassificationJob
-> StartDocumentClassificationJob -> Bool
Prelude.Eq, ReadPrec [StartDocumentClassificationJob]
ReadPrec StartDocumentClassificationJob
Int -> ReadS StartDocumentClassificationJob
ReadS [StartDocumentClassificationJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDocumentClassificationJob]
$creadListPrec :: ReadPrec [StartDocumentClassificationJob]
readPrec :: ReadPrec StartDocumentClassificationJob
$creadPrec :: ReadPrec StartDocumentClassificationJob
readList :: ReadS [StartDocumentClassificationJob]
$creadList :: ReadS [StartDocumentClassificationJob]
readsPrec :: Int -> ReadS StartDocumentClassificationJob
$creadsPrec :: Int -> ReadS StartDocumentClassificationJob
Prelude.Read, Int -> StartDocumentClassificationJob -> ShowS
[StartDocumentClassificationJob] -> ShowS
StartDocumentClassificationJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDocumentClassificationJob] -> ShowS
$cshowList :: [StartDocumentClassificationJob] -> ShowS
show :: StartDocumentClassificationJob -> String
$cshow :: StartDocumentClassificationJob -> String
showsPrec :: Int -> StartDocumentClassificationJob -> ShowS
$cshowsPrec :: Int -> StartDocumentClassificationJob -> ShowS
Prelude.Show, forall x.
Rep StartDocumentClassificationJob x
-> StartDocumentClassificationJob
forall x.
StartDocumentClassificationJob
-> Rep StartDocumentClassificationJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDocumentClassificationJob x
-> StartDocumentClassificationJob
$cfrom :: forall x.
StartDocumentClassificationJob
-> Rep StartDocumentClassificationJob x
Prelude.Generic)

-- |
-- Create a value of 'StartDocumentClassificationJob' 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:
--
-- 'clientRequestToken', 'startDocumentClassificationJob_clientRequestToken' - A unique identifier for the request. If you do not set the client
-- request token, Amazon Comprehend generates one.
--
-- 'jobName', 'startDocumentClassificationJob_jobName' - The identifier of the job.
--
-- 'tags', 'startDocumentClassificationJob_tags' - Tags to be associated with the document classification job. A tag is a
-- key-value pair that adds metadata to a resource used by Amazon
-- Comprehend. For example, a tag with \"Sales\" as the key might be added
-- to a resource to indicate its use by the sales department.
--
-- 'volumeKmsKeyId', 'startDocumentClassificationJob_volumeKmsKeyId' - ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
-- uses to encrypt data on the storage volume attached to the ML compute
-- instance(s) that process the analysis job. The VolumeKmsKeyId can be
-- either of the following formats:
--
-- -   KMS Key ID: @\"1234abcd-12ab-34cd-56ef-1234567890ab\"@
--
-- -   Amazon Resource Name (ARN) of a KMS Key:
--     @\"arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab\"@
--
-- 'vpcConfig', 'startDocumentClassificationJob_vpcConfig' - Configuration parameters for an optional private Virtual Private Cloud
-- (VPC) containing the resources you are using for your document
-- classification job. For more information, see
-- <https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html Amazon VPC>.
--
-- 'documentClassifierArn', 'startDocumentClassificationJob_documentClassifierArn' - The Amazon Resource Name (ARN) of the document classifier to use to
-- process the job.
--
-- 'inputDataConfig', 'startDocumentClassificationJob_inputDataConfig' - Specifies the format and location of the input data for the job.
--
-- 'outputDataConfig', 'startDocumentClassificationJob_outputDataConfig' - Specifies where to send the output files.
--
-- 'dataAccessRoleArn', 'startDocumentClassificationJob_dataAccessRoleArn' - The Amazon Resource Name (ARN) of the AWS Identity and Access Management
-- (IAM) role that grants Amazon Comprehend read access to your input data.
newStartDocumentClassificationJob ::
  -- | 'documentClassifierArn'
  Prelude.Text ->
  -- | 'inputDataConfig'
  InputDataConfig ->
  -- | 'outputDataConfig'
  OutputDataConfig ->
  -- | 'dataAccessRoleArn'
  Prelude.Text ->
  StartDocumentClassificationJob
newStartDocumentClassificationJob :: Text
-> InputDataConfig
-> OutputDataConfig
-> Text
-> StartDocumentClassificationJob
newStartDocumentClassificationJob
  Text
pDocumentClassifierArn_
  InputDataConfig
pInputDataConfig_
  OutputDataConfig
pOutputDataConfig_
  Text
pDataAccessRoleArn_ =
    StartDocumentClassificationJob'
      { $sel:clientRequestToken:StartDocumentClassificationJob' :: Maybe Text
clientRequestToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:jobName:StartDocumentClassificationJob' :: Maybe Text
jobName = forall a. Maybe a
Prelude.Nothing,
        $sel:tags:StartDocumentClassificationJob' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
        $sel:volumeKmsKeyId:StartDocumentClassificationJob' :: Maybe Text
volumeKmsKeyId = forall a. Maybe a
Prelude.Nothing,
        $sel:vpcConfig:StartDocumentClassificationJob' :: Maybe VpcConfig
vpcConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:documentClassifierArn:StartDocumentClassificationJob' :: Text
documentClassifierArn =
          Text
pDocumentClassifierArn_,
        $sel:inputDataConfig:StartDocumentClassificationJob' :: InputDataConfig
inputDataConfig = InputDataConfig
pInputDataConfig_,
        $sel:outputDataConfig:StartDocumentClassificationJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
pOutputDataConfig_,
        $sel:dataAccessRoleArn:StartDocumentClassificationJob' :: Text
dataAccessRoleArn = Text
pDataAccessRoleArn_
      }

-- | A unique identifier for the request. If you do not set the client
-- request token, Amazon Comprehend generates one.
startDocumentClassificationJob_clientRequestToken :: Lens.Lens' StartDocumentClassificationJob (Prelude.Maybe Prelude.Text)
startDocumentClassificationJob_clientRequestToken :: Lens' StartDocumentClassificationJob (Maybe Text)
startDocumentClassificationJob_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} Maybe Text
a -> StartDocumentClassificationJob
s {$sel:clientRequestToken:StartDocumentClassificationJob' :: Maybe Text
clientRequestToken = Maybe Text
a} :: StartDocumentClassificationJob)

-- | The identifier of the job.
startDocumentClassificationJob_jobName :: Lens.Lens' StartDocumentClassificationJob (Prelude.Maybe Prelude.Text)
startDocumentClassificationJob_jobName :: Lens' StartDocumentClassificationJob (Maybe Text)
startDocumentClassificationJob_jobName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {Maybe Text
jobName :: Maybe Text
$sel:jobName:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} Maybe Text
a -> StartDocumentClassificationJob
s {$sel:jobName:StartDocumentClassificationJob' :: Maybe Text
jobName = Maybe Text
a} :: StartDocumentClassificationJob)

-- | Tags to be associated with the document classification job. A tag is a
-- key-value pair that adds metadata to a resource used by Amazon
-- Comprehend. For example, a tag with \"Sales\" as the key might be added
-- to a resource to indicate its use by the sales department.
startDocumentClassificationJob_tags :: Lens.Lens' StartDocumentClassificationJob (Prelude.Maybe [Tag])
startDocumentClassificationJob_tags :: Lens' StartDocumentClassificationJob (Maybe [Tag])
startDocumentClassificationJob_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} Maybe [Tag]
a -> StartDocumentClassificationJob
s {$sel:tags:StartDocumentClassificationJob' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: StartDocumentClassificationJob) 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

-- | ID for the AWS Key Management Service (KMS) key that Amazon Comprehend
-- uses to encrypt data on the storage volume attached to the ML compute
-- instance(s) that process the analysis job. The VolumeKmsKeyId can be
-- either of the following formats:
--
-- -   KMS Key ID: @\"1234abcd-12ab-34cd-56ef-1234567890ab\"@
--
-- -   Amazon Resource Name (ARN) of a KMS Key:
--     @\"arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab\"@
startDocumentClassificationJob_volumeKmsKeyId :: Lens.Lens' StartDocumentClassificationJob (Prelude.Maybe Prelude.Text)
startDocumentClassificationJob_volumeKmsKeyId :: Lens' StartDocumentClassificationJob (Maybe Text)
startDocumentClassificationJob_volumeKmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {Maybe Text
volumeKmsKeyId :: Maybe Text
$sel:volumeKmsKeyId:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
volumeKmsKeyId} -> Maybe Text
volumeKmsKeyId) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} Maybe Text
a -> StartDocumentClassificationJob
s {$sel:volumeKmsKeyId:StartDocumentClassificationJob' :: Maybe Text
volumeKmsKeyId = Maybe Text
a} :: StartDocumentClassificationJob)

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

-- | The Amazon Resource Name (ARN) of the document classifier to use to
-- process the job.
startDocumentClassificationJob_documentClassifierArn :: Lens.Lens' StartDocumentClassificationJob Prelude.Text
startDocumentClassificationJob_documentClassifierArn :: Lens' StartDocumentClassificationJob Text
startDocumentClassificationJob_documentClassifierArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {Text
documentClassifierArn :: Text
$sel:documentClassifierArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
documentClassifierArn} -> Text
documentClassifierArn) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} Text
a -> StartDocumentClassificationJob
s {$sel:documentClassifierArn:StartDocumentClassificationJob' :: Text
documentClassifierArn = Text
a} :: StartDocumentClassificationJob)

-- | Specifies the format and location of the input data for the job.
startDocumentClassificationJob_inputDataConfig :: Lens.Lens' StartDocumentClassificationJob InputDataConfig
startDocumentClassificationJob_inputDataConfig :: Lens' StartDocumentClassificationJob InputDataConfig
startDocumentClassificationJob_inputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {InputDataConfig
inputDataConfig :: InputDataConfig
$sel:inputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> InputDataConfig
inputDataConfig} -> InputDataConfig
inputDataConfig) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} InputDataConfig
a -> StartDocumentClassificationJob
s {$sel:inputDataConfig:StartDocumentClassificationJob' :: InputDataConfig
inputDataConfig = InputDataConfig
a} :: StartDocumentClassificationJob)

-- | Specifies where to send the output files.
startDocumentClassificationJob_outputDataConfig :: Lens.Lens' StartDocumentClassificationJob OutputDataConfig
startDocumentClassificationJob_outputDataConfig :: Lens' StartDocumentClassificationJob OutputDataConfig
startDocumentClassificationJob_outputDataConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJob' {OutputDataConfig
outputDataConfig :: OutputDataConfig
$sel:outputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> OutputDataConfig
outputDataConfig} -> OutputDataConfig
outputDataConfig) (\s :: StartDocumentClassificationJob
s@StartDocumentClassificationJob' {} OutputDataConfig
a -> StartDocumentClassificationJob
s {$sel:outputDataConfig:StartDocumentClassificationJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
a} :: StartDocumentClassificationJob)

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

instance
  Core.AWSRequest
    StartDocumentClassificationJob
  where
  type
    AWSResponse StartDocumentClassificationJob =
      StartDocumentClassificationJobResponse
  request :: (Service -> Service)
-> StartDocumentClassificationJob
-> Request StartDocumentClassificationJob
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy StartDocumentClassificationJob
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse StartDocumentClassificationJob)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe JobStatus
-> Int
-> StartDocumentClassificationJobResponse
StartDocumentClassificationJobResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (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 -> Either String (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 -> Either String (Maybe a)
Data..?> Key
"JobStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    StartDocumentClassificationJob
  where
  hashWithSalt :: Int -> StartDocumentClassificationJob -> Int
hashWithSalt
    Int
_salt
    StartDocumentClassificationJob' {Maybe [Tag]
Maybe Text
Maybe VpcConfig
Text
InputDataConfig
OutputDataConfig
dataAccessRoleArn :: Text
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
documentClassifierArn :: Text
vpcConfig :: Maybe VpcConfig
volumeKmsKeyId :: Maybe Text
tags :: Maybe [Tag]
jobName :: Maybe Text
clientRequestToken :: Maybe Text
$sel:dataAccessRoleArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
$sel:outputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> OutputDataConfig
$sel:inputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> InputDataConfig
$sel:documentClassifierArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
$sel:vpcConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe VpcConfig
$sel:volumeKmsKeyId:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
$sel:tags:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe [Tag]
$sel:jobName:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
$sel:clientRequestToken:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
clientRequestToken
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
jobName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
volumeKmsKeyId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VpcConfig
vpcConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
documentClassifierArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` InputDataConfig
inputDataConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` OutputDataConfig
outputDataConfig
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
dataAccessRoleArn

instance
  Prelude.NFData
    StartDocumentClassificationJob
  where
  rnf :: StartDocumentClassificationJob -> ()
rnf StartDocumentClassificationJob' {Maybe [Tag]
Maybe Text
Maybe VpcConfig
Text
InputDataConfig
OutputDataConfig
dataAccessRoleArn :: Text
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
documentClassifierArn :: Text
vpcConfig :: Maybe VpcConfig
volumeKmsKeyId :: Maybe Text
tags :: Maybe [Tag]
jobName :: Maybe Text
clientRequestToken :: Maybe Text
$sel:dataAccessRoleArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
$sel:outputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> OutputDataConfig
$sel:inputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> InputDataConfig
$sel:documentClassifierArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
$sel:vpcConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe VpcConfig
$sel:volumeKmsKeyId:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
$sel:tags:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe [Tag]
$sel:jobName:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
$sel:clientRequestToken:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
clientRequestToken
      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 [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
volumeKmsKeyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe VpcConfig
vpcConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
documentClassifierArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf InputDataConfig
inputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf OutputDataConfig
outputDataConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
dataAccessRoleArn

instance
  Data.ToHeaders
    StartDocumentClassificationJob
  where
  toHeaders :: StartDocumentClassificationJob -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"Comprehend_20171127.StartDocumentClassificationJob" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON StartDocumentClassificationJob where
  toJSON :: StartDocumentClassificationJob -> Value
toJSON StartDocumentClassificationJob' {Maybe [Tag]
Maybe Text
Maybe VpcConfig
Text
InputDataConfig
OutputDataConfig
dataAccessRoleArn :: Text
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
documentClassifierArn :: Text
vpcConfig :: Maybe VpcConfig
volumeKmsKeyId :: Maybe Text
tags :: Maybe [Tag]
jobName :: Maybe Text
clientRequestToken :: Maybe Text
$sel:dataAccessRoleArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
$sel:outputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> OutputDataConfig
$sel:inputDataConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> InputDataConfig
$sel:documentClassifierArn:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Text
$sel:vpcConfig:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe VpcConfig
$sel:volumeKmsKeyId:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
$sel:tags:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe [Tag]
$sel:jobName:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
$sel:clientRequestToken:StartDocumentClassificationJob' :: StartDocumentClassificationJob -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"ClientRequestToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientRequestToken,
            (Key
"JobName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
jobName,
            (Key
"Tags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            (Key
"VolumeKmsKeyId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
volumeKmsKeyId,
            (Key
"VpcConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VpcConfig
vpcConfig,
            forall a. a -> Maybe a
Prelude.Just
              ( Key
"DocumentClassifierArn"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
documentClassifierArn
              ),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"InputDataConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= InputDataConfig
inputDataConfig),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"OutputDataConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= OutputDataConfig
outputDataConfig),
            forall a. a -> Maybe a
Prelude.Just
              (Key
"DataAccessRoleArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
dataAccessRoleArn)
          ]
      )

instance Data.ToPath StartDocumentClassificationJob where
  toPath :: StartDocumentClassificationJob -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery StartDocumentClassificationJob where
  toQuery :: StartDocumentClassificationJob -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newStartDocumentClassificationJobResponse' smart constructor.
data StartDocumentClassificationJobResponse = StartDocumentClassificationJobResponse'
  { -- | The Amazon Resource Name (ARN) of the document classification 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>:document-classification-job\/\<job-id>@
    --
    -- The following is an example job ARN:
    --
    -- @arn:aws:comprehend:us-west-2:111122223333:document-classification-job\/1234abcd12ab34cd56ef1234567890ab@
    StartDocumentClassificationJobResponse -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The identifier generated for the job. To get the status of the job, use
    -- this identifier with the operation.
    StartDocumentClassificationJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The status of the job:
    --
    -- -   SUBMITTED - The job has been received and queued for processing.
    --
    -- -   IN_PROGRESS - Amazon Comprehend is processing the job.
    --
    -- -   COMPLETED - The job was successfully completed and the output is
    --     available.
    --
    -- -   FAILED - The job did not complete. For details, use the operation.
    --
    -- -   STOP_REQUESTED - Amazon Comprehend has received a stop request for
    --     the job and is processing the request.
    --
    -- -   STOPPED - The job was successfully stopped without completing.
    StartDocumentClassificationJobResponse -> Maybe JobStatus
jobStatus :: Prelude.Maybe JobStatus,
    -- | The response's http status code.
    StartDocumentClassificationJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (StartDocumentClassificationJobResponse
-> StartDocumentClassificationJobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDocumentClassificationJobResponse
-> StartDocumentClassificationJobResponse -> Bool
$c/= :: StartDocumentClassificationJobResponse
-> StartDocumentClassificationJobResponse -> Bool
== :: StartDocumentClassificationJobResponse
-> StartDocumentClassificationJobResponse -> Bool
$c== :: StartDocumentClassificationJobResponse
-> StartDocumentClassificationJobResponse -> Bool
Prelude.Eq, ReadPrec [StartDocumentClassificationJobResponse]
ReadPrec StartDocumentClassificationJobResponse
Int -> ReadS StartDocumentClassificationJobResponse
ReadS [StartDocumentClassificationJobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDocumentClassificationJobResponse]
$creadListPrec :: ReadPrec [StartDocumentClassificationJobResponse]
readPrec :: ReadPrec StartDocumentClassificationJobResponse
$creadPrec :: ReadPrec StartDocumentClassificationJobResponse
readList :: ReadS [StartDocumentClassificationJobResponse]
$creadList :: ReadS [StartDocumentClassificationJobResponse]
readsPrec :: Int -> ReadS StartDocumentClassificationJobResponse
$creadsPrec :: Int -> ReadS StartDocumentClassificationJobResponse
Prelude.Read, Int -> StartDocumentClassificationJobResponse -> ShowS
[StartDocumentClassificationJobResponse] -> ShowS
StartDocumentClassificationJobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDocumentClassificationJobResponse] -> ShowS
$cshowList :: [StartDocumentClassificationJobResponse] -> ShowS
show :: StartDocumentClassificationJobResponse -> String
$cshow :: StartDocumentClassificationJobResponse -> String
showsPrec :: Int -> StartDocumentClassificationJobResponse -> ShowS
$cshowsPrec :: Int -> StartDocumentClassificationJobResponse -> ShowS
Prelude.Show, forall x.
Rep StartDocumentClassificationJobResponse x
-> StartDocumentClassificationJobResponse
forall x.
StartDocumentClassificationJobResponse
-> Rep StartDocumentClassificationJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDocumentClassificationJobResponse x
-> StartDocumentClassificationJobResponse
$cfrom :: forall x.
StartDocumentClassificationJobResponse
-> Rep StartDocumentClassificationJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'StartDocumentClassificationJobResponse' 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:
--
-- 'jobArn', 'startDocumentClassificationJobResponse_jobArn' - The Amazon Resource Name (ARN) of the document classification 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>:document-classification-job\/\<job-id>@
--
-- The following is an example job ARN:
--
-- @arn:aws:comprehend:us-west-2:111122223333:document-classification-job\/1234abcd12ab34cd56ef1234567890ab@
--
-- 'jobId', 'startDocumentClassificationJobResponse_jobId' - The identifier generated for the job. To get the status of the job, use
-- this identifier with the operation.
--
-- 'jobStatus', 'startDocumentClassificationJobResponse_jobStatus' - The status of the job:
--
-- -   SUBMITTED - The job has been received and queued for processing.
--
-- -   IN_PROGRESS - Amazon Comprehend is processing the job.
--
-- -   COMPLETED - The job was successfully completed and the output is
--     available.
--
-- -   FAILED - The job did not complete. For details, use the operation.
--
-- -   STOP_REQUESTED - Amazon Comprehend has received a stop request for
--     the job and is processing the request.
--
-- -   STOPPED - The job was successfully stopped without completing.
--
-- 'httpStatus', 'startDocumentClassificationJobResponse_httpStatus' - The response's http status code.
newStartDocumentClassificationJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  StartDocumentClassificationJobResponse
newStartDocumentClassificationJobResponse :: Int -> StartDocumentClassificationJobResponse
newStartDocumentClassificationJobResponse
  Int
pHttpStatus_ =
    StartDocumentClassificationJobResponse'
      { $sel:jobArn:StartDocumentClassificationJobResponse' :: Maybe Text
jobArn =
          forall a. Maybe a
Prelude.Nothing,
        $sel:jobId:StartDocumentClassificationJobResponse' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
        $sel:jobStatus:StartDocumentClassificationJobResponse' :: Maybe JobStatus
jobStatus = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:StartDocumentClassificationJobResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

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

-- | The identifier generated for the job. To get the status of the job, use
-- this identifier with the operation.
startDocumentClassificationJobResponse_jobId :: Lens.Lens' StartDocumentClassificationJobResponse (Prelude.Maybe Prelude.Text)
startDocumentClassificationJobResponse_jobId :: Lens' StartDocumentClassificationJobResponse (Maybe Text)
startDocumentClassificationJobResponse_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StartDocumentClassificationJobResponse
s@StartDocumentClassificationJobResponse' {} Maybe Text
a -> StartDocumentClassificationJobResponse
s {$sel:jobId:StartDocumentClassificationJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: StartDocumentClassificationJobResponse)

-- | The status of the job:
--
-- -   SUBMITTED - The job has been received and queued for processing.
--
-- -   IN_PROGRESS - Amazon Comprehend is processing the job.
--
-- -   COMPLETED - The job was successfully completed and the output is
--     available.
--
-- -   FAILED - The job did not complete. For details, use the operation.
--
-- -   STOP_REQUESTED - Amazon Comprehend has received a stop request for
--     the job and is processing the request.
--
-- -   STOPPED - The job was successfully stopped without completing.
startDocumentClassificationJobResponse_jobStatus :: Lens.Lens' StartDocumentClassificationJobResponse (Prelude.Maybe JobStatus)
startDocumentClassificationJobResponse_jobStatus :: Lens' StartDocumentClassificationJobResponse (Maybe JobStatus)
startDocumentClassificationJobResponse_jobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJobResponse' {Maybe JobStatus
jobStatus :: Maybe JobStatus
$sel:jobStatus:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Maybe JobStatus
jobStatus} -> Maybe JobStatus
jobStatus) (\s :: StartDocumentClassificationJobResponse
s@StartDocumentClassificationJobResponse' {} Maybe JobStatus
a -> StartDocumentClassificationJobResponse
s {$sel:jobStatus:StartDocumentClassificationJobResponse' :: Maybe JobStatus
jobStatus = Maybe JobStatus
a} :: StartDocumentClassificationJobResponse)

-- | The response's http status code.
startDocumentClassificationJobResponse_httpStatus :: Lens.Lens' StartDocumentClassificationJobResponse Prelude.Int
startDocumentClassificationJobResponse_httpStatus :: Lens' StartDocumentClassificationJobResponse Int
startDocumentClassificationJobResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDocumentClassificationJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartDocumentClassificationJobResponse
s@StartDocumentClassificationJobResponse' {} Int
a -> StartDocumentClassificationJobResponse
s {$sel:httpStatus:StartDocumentClassificationJobResponse' :: Int
httpStatus = Int
a} :: StartDocumentClassificationJobResponse)

instance
  Prelude.NFData
    StartDocumentClassificationJobResponse
  where
  rnf :: StartDocumentClassificationJobResponse -> ()
rnf StartDocumentClassificationJobResponse' {Int
Maybe Text
Maybe JobStatus
httpStatus :: Int
jobStatus :: Maybe JobStatus
jobId :: Maybe Text
jobArn :: Maybe Text
$sel:httpStatus:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Int
$sel:jobStatus:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Maybe JobStatus
$sel:jobId:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Maybe Text
$sel:jobArn:StartDocumentClassificationJobResponse' :: StartDocumentClassificationJobResponse -> Maybe Text
..} =
    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 JobStatus
jobStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus