{-# 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.IoT.CancelJob
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Cancels a job.
--
-- Requires permission to access the
-- <https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions CancelJob>
-- action.
module Amazonka.IoT.CancelJob
  ( -- * Creating a Request
    CancelJob (..),
    newCancelJob,

    -- * Request Lenses
    cancelJob_comment,
    cancelJob_force,
    cancelJob_reasonCode,
    cancelJob_jobId,

    -- * Destructuring the Response
    CancelJobResponse (..),
    newCancelJobResponse,

    -- * Response Lenses
    cancelJobResponse_description,
    cancelJobResponse_jobArn,
    cancelJobResponse_jobId,
    cancelJobResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IoT.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newCancelJob' smart constructor.
data CancelJob = CancelJob'
  { -- | An optional comment string describing why the job was canceled.
    CancelJob -> Maybe Text
comment :: Prelude.Maybe Prelude.Text,
    -- | (Optional) If @true@ job executions with status \"IN_PROGRESS\" and
    -- \"QUEUED\" are canceled, otherwise only job executions with status
    -- \"QUEUED\" are canceled. The default is @false@.
    --
    -- Canceling a job which is \"IN_PROGRESS\", will cause a device which is
    -- executing the job to be unable to update the job execution status. Use
    -- caution and ensure that each device executing a job which is canceled is
    -- able to recover to a valid state.
    CancelJob -> Maybe Bool
force :: Prelude.Maybe Prelude.Bool,
    -- | (Optional)A reason code string that explains why the job was canceled.
    CancelJob -> Maybe Text
reasonCode :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier you assigned to this job when it was created.
    CancelJob -> Text
jobId :: Prelude.Text
  }
  deriving (CancelJob -> CancelJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelJob -> CancelJob -> Bool
$c/= :: CancelJob -> CancelJob -> Bool
== :: CancelJob -> CancelJob -> Bool
$c== :: CancelJob -> CancelJob -> Bool
Prelude.Eq, ReadPrec [CancelJob]
ReadPrec CancelJob
Int -> ReadS CancelJob
ReadS [CancelJob]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelJob]
$creadListPrec :: ReadPrec [CancelJob]
readPrec :: ReadPrec CancelJob
$creadPrec :: ReadPrec CancelJob
readList :: ReadS [CancelJob]
$creadList :: ReadS [CancelJob]
readsPrec :: Int -> ReadS CancelJob
$creadsPrec :: Int -> ReadS CancelJob
Prelude.Read, Int -> CancelJob -> ShowS
[CancelJob] -> ShowS
CancelJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelJob] -> ShowS
$cshowList :: [CancelJob] -> ShowS
show :: CancelJob -> String
$cshow :: CancelJob -> String
showsPrec :: Int -> CancelJob -> ShowS
$cshowsPrec :: Int -> CancelJob -> ShowS
Prelude.Show, forall x. Rep CancelJob x -> CancelJob
forall x. CancelJob -> Rep CancelJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CancelJob x -> CancelJob
$cfrom :: forall x. CancelJob -> Rep CancelJob x
Prelude.Generic)

-- |
-- Create a value of 'CancelJob' 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:
--
-- 'comment', 'cancelJob_comment' - An optional comment string describing why the job was canceled.
--
-- 'force', 'cancelJob_force' - (Optional) If @true@ job executions with status \"IN_PROGRESS\" and
-- \"QUEUED\" are canceled, otherwise only job executions with status
-- \"QUEUED\" are canceled. The default is @false@.
--
-- Canceling a job which is \"IN_PROGRESS\", will cause a device which is
-- executing the job to be unable to update the job execution status. Use
-- caution and ensure that each device executing a job which is canceled is
-- able to recover to a valid state.
--
-- 'reasonCode', 'cancelJob_reasonCode' - (Optional)A reason code string that explains why the job was canceled.
--
-- 'jobId', 'cancelJob_jobId' - The unique identifier you assigned to this job when it was created.
newCancelJob ::
  -- | 'jobId'
  Prelude.Text ->
  CancelJob
newCancelJob :: Text -> CancelJob
newCancelJob Text
pJobId_ =
  CancelJob'
    { $sel:comment:CancelJob' :: Maybe Text
comment = forall a. Maybe a
Prelude.Nothing,
      $sel:force:CancelJob' :: Maybe Bool
force = forall a. Maybe a
Prelude.Nothing,
      $sel:reasonCode:CancelJob' :: Maybe Text
reasonCode = forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:CancelJob' :: Text
jobId = Text
pJobId_
    }

-- | An optional comment string describing why the job was canceled.
cancelJob_comment :: Lens.Lens' CancelJob (Prelude.Maybe Prelude.Text)
cancelJob_comment :: Lens' CancelJob (Maybe Text)
cancelJob_comment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJob' {Maybe Text
comment :: Maybe Text
$sel:comment:CancelJob' :: CancelJob -> Maybe Text
comment} -> Maybe Text
comment) (\s :: CancelJob
s@CancelJob' {} Maybe Text
a -> CancelJob
s {$sel:comment:CancelJob' :: Maybe Text
comment = Maybe Text
a} :: CancelJob)

-- | (Optional) If @true@ job executions with status \"IN_PROGRESS\" and
-- \"QUEUED\" are canceled, otherwise only job executions with status
-- \"QUEUED\" are canceled. The default is @false@.
--
-- Canceling a job which is \"IN_PROGRESS\", will cause a device which is
-- executing the job to be unable to update the job execution status. Use
-- caution and ensure that each device executing a job which is canceled is
-- able to recover to a valid state.
cancelJob_force :: Lens.Lens' CancelJob (Prelude.Maybe Prelude.Bool)
cancelJob_force :: Lens' CancelJob (Maybe Bool)
cancelJob_force = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJob' {Maybe Bool
force :: Maybe Bool
$sel:force:CancelJob' :: CancelJob -> Maybe Bool
force} -> Maybe Bool
force) (\s :: CancelJob
s@CancelJob' {} Maybe Bool
a -> CancelJob
s {$sel:force:CancelJob' :: Maybe Bool
force = Maybe Bool
a} :: CancelJob)

-- | (Optional)A reason code string that explains why the job was canceled.
cancelJob_reasonCode :: Lens.Lens' CancelJob (Prelude.Maybe Prelude.Text)
cancelJob_reasonCode :: Lens' CancelJob (Maybe Text)
cancelJob_reasonCode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJob' {Maybe Text
reasonCode :: Maybe Text
$sel:reasonCode:CancelJob' :: CancelJob -> Maybe Text
reasonCode} -> Maybe Text
reasonCode) (\s :: CancelJob
s@CancelJob' {} Maybe Text
a -> CancelJob
s {$sel:reasonCode:CancelJob' :: Maybe Text
reasonCode = Maybe Text
a} :: CancelJob)

-- | The unique identifier you assigned to this job when it was created.
cancelJob_jobId :: Lens.Lens' CancelJob Prelude.Text
cancelJob_jobId :: Lens' CancelJob Text
cancelJob_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJob' {Text
jobId :: Text
$sel:jobId:CancelJob' :: CancelJob -> Text
jobId} -> Text
jobId) (\s :: CancelJob
s@CancelJob' {} Text
a -> CancelJob
s {$sel:jobId:CancelJob' :: Text
jobId = Text
a} :: CancelJob)

instance Core.AWSRequest CancelJob where
  type AWSResponse CancelJob = CancelJobResponse
  request :: (Service -> Service) -> CancelJob -> Request CancelJob
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy CancelJob
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CancelJob)))
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 Text -> Int -> CancelJobResponse
CancelJobResponse'
            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
"description")
            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
"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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable CancelJob where
  hashWithSalt :: Int -> CancelJob -> Int
hashWithSalt Int
_salt CancelJob' {Maybe Bool
Maybe Text
Text
jobId :: Text
reasonCode :: Maybe Text
force :: Maybe Bool
comment :: Maybe Text
$sel:jobId:CancelJob' :: CancelJob -> Text
$sel:reasonCode:CancelJob' :: CancelJob -> Maybe Text
$sel:force:CancelJob' :: CancelJob -> Maybe Bool
$sel:comment:CancelJob' :: CancelJob -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
comment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
force
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
reasonCode
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
jobId

instance Prelude.NFData CancelJob where
  rnf :: CancelJob -> ()
rnf CancelJob' {Maybe Bool
Maybe Text
Text
jobId :: Text
reasonCode :: Maybe Text
force :: Maybe Bool
comment :: Maybe Text
$sel:jobId:CancelJob' :: CancelJob -> Text
$sel:reasonCode:CancelJob' :: CancelJob -> Maybe Text
$sel:force:CancelJob' :: CancelJob -> Maybe Bool
$sel:comment:CancelJob' :: CancelJob -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
comment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
force
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
reasonCode
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobId

instance Data.ToHeaders CancelJob where
  toHeaders :: CancelJob -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance Data.ToJSON CancelJob where
  toJSON :: CancelJob -> Value
toJSON CancelJob' {Maybe Bool
Maybe Text
Text
jobId :: Text
reasonCode :: Maybe Text
force :: Maybe Bool
comment :: Maybe Text
$sel:jobId:CancelJob' :: CancelJob -> Text
$sel:reasonCode:CancelJob' :: CancelJob -> Maybe Text
$sel:force:CancelJob' :: CancelJob -> Maybe Bool
$sel:comment:CancelJob' :: CancelJob -> Maybe Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"comment" 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
comment,
            (Key
"reasonCode" 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
reasonCode
          ]
      )

instance Data.ToPath CancelJob where
  toPath :: CancelJob -> ByteString
toPath CancelJob' {Maybe Bool
Maybe Text
Text
jobId :: Text
reasonCode :: Maybe Text
force :: Maybe Bool
comment :: Maybe Text
$sel:jobId:CancelJob' :: CancelJob -> Text
$sel:reasonCode:CancelJob' :: CancelJob -> Maybe Text
$sel:force:CancelJob' :: CancelJob -> Maybe Bool
$sel:comment:CancelJob' :: CancelJob -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/jobs/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
jobId, ByteString
"/cancel"]

instance Data.ToQuery CancelJob where
  toQuery :: CancelJob -> QueryString
toQuery CancelJob' {Maybe Bool
Maybe Text
Text
jobId :: Text
reasonCode :: Maybe Text
force :: Maybe Bool
comment :: Maybe Text
$sel:jobId:CancelJob' :: CancelJob -> Text
$sel:reasonCode:CancelJob' :: CancelJob -> Maybe Text
$sel:force:CancelJob' :: CancelJob -> Maybe Bool
$sel:comment:CancelJob' :: CancelJob -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"force" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Bool
force]

-- | /See:/ 'newCancelJobResponse' smart constructor.
data CancelJobResponse = CancelJobResponse'
  { -- | A short text description of the job.
    CancelJobResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The job ARN.
    CancelJobResponse -> Maybe Text
jobArn :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier you assigned to this job when it was created.
    CancelJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CancelJobResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CancelJobResponse -> CancelJobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CancelJobResponse -> CancelJobResponse -> Bool
$c/= :: CancelJobResponse -> CancelJobResponse -> Bool
== :: CancelJobResponse -> CancelJobResponse -> Bool
$c== :: CancelJobResponse -> CancelJobResponse -> Bool
Prelude.Eq, ReadPrec [CancelJobResponse]
ReadPrec CancelJobResponse
Int -> ReadS CancelJobResponse
ReadS [CancelJobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CancelJobResponse]
$creadListPrec :: ReadPrec [CancelJobResponse]
readPrec :: ReadPrec CancelJobResponse
$creadPrec :: ReadPrec CancelJobResponse
readList :: ReadS [CancelJobResponse]
$creadList :: ReadS [CancelJobResponse]
readsPrec :: Int -> ReadS CancelJobResponse
$creadsPrec :: Int -> ReadS CancelJobResponse
Prelude.Read, Int -> CancelJobResponse -> ShowS
[CancelJobResponse] -> ShowS
CancelJobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CancelJobResponse] -> ShowS
$cshowList :: [CancelJobResponse] -> ShowS
show :: CancelJobResponse -> String
$cshow :: CancelJobResponse -> String
showsPrec :: Int -> CancelJobResponse -> ShowS
$cshowsPrec :: Int -> CancelJobResponse -> ShowS
Prelude.Show, forall x. Rep CancelJobResponse x -> CancelJobResponse
forall x. CancelJobResponse -> Rep CancelJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CancelJobResponse x -> CancelJobResponse
$cfrom :: forall x. CancelJobResponse -> Rep CancelJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'CancelJobResponse' 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:
--
-- 'description', 'cancelJobResponse_description' - A short text description of the job.
--
-- 'jobArn', 'cancelJobResponse_jobArn' - The job ARN.
--
-- 'jobId', 'cancelJobResponse_jobId' - The unique identifier you assigned to this job when it was created.
--
-- 'httpStatus', 'cancelJobResponse_httpStatus' - The response's http status code.
newCancelJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CancelJobResponse
newCancelJobResponse :: Int -> CancelJobResponse
newCancelJobResponse Int
pHttpStatus_ =
  CancelJobResponse'
    { $sel:description:CancelJobResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:jobArn:CancelJobResponse' :: Maybe Text
jobArn = forall a. Maybe a
Prelude.Nothing,
      $sel:jobId:CancelJobResponse' :: Maybe Text
jobId = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CancelJobResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A short text description of the job.
cancelJobResponse_description :: Lens.Lens' CancelJobResponse (Prelude.Maybe Prelude.Text)
cancelJobResponse_description :: Lens' CancelJobResponse (Maybe Text)
cancelJobResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJobResponse' {Maybe Text
description :: Maybe Text
$sel:description:CancelJobResponse' :: CancelJobResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: CancelJobResponse
s@CancelJobResponse' {} Maybe Text
a -> CancelJobResponse
s {$sel:description:CancelJobResponse' :: Maybe Text
description = Maybe Text
a} :: CancelJobResponse)

-- | The job ARN.
cancelJobResponse_jobArn :: Lens.Lens' CancelJobResponse (Prelude.Maybe Prelude.Text)
cancelJobResponse_jobArn :: Lens' CancelJobResponse (Maybe Text)
cancelJobResponse_jobArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJobResponse' {Maybe Text
jobArn :: Maybe Text
$sel:jobArn:CancelJobResponse' :: CancelJobResponse -> Maybe Text
jobArn} -> Maybe Text
jobArn) (\s :: CancelJobResponse
s@CancelJobResponse' {} Maybe Text
a -> CancelJobResponse
s {$sel:jobArn:CancelJobResponse' :: Maybe Text
jobArn = Maybe Text
a} :: CancelJobResponse)

-- | The unique identifier you assigned to this job when it was created.
cancelJobResponse_jobId :: Lens.Lens' CancelJobResponse (Prelude.Maybe Prelude.Text)
cancelJobResponse_jobId :: Lens' CancelJobResponse (Maybe Text)
cancelJobResponse_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CancelJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:CancelJobResponse' :: CancelJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: CancelJobResponse
s@CancelJobResponse' {} Maybe Text
a -> CancelJobResponse
s {$sel:jobId:CancelJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: CancelJobResponse)

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

instance Prelude.NFData CancelJobResponse where
  rnf :: CancelJobResponse -> ()
rnf CancelJobResponse' {Int
Maybe Text
httpStatus :: Int
jobId :: Maybe Text
jobArn :: Maybe Text
description :: Maybe Text
$sel:httpStatus:CancelJobResponse' :: CancelJobResponse -> Int
$sel:jobId:CancelJobResponse' :: CancelJobResponse -> Maybe Text
$sel:jobArn:CancelJobResponse' :: CancelJobResponse -> Maybe Text
$sel:description:CancelJobResponse' :: CancelJobResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      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 Int
httpStatus