{-# 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.SWF.Types.RequestCancelExternalWorkflowExecutionFailedEventAttributes
-- 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.SWF.Types.RequestCancelExternalWorkflowExecutionFailedEventAttributes where

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 Amazonka.SWF.Types.RequestCancelExternalWorkflowExecutionFailedCause

-- | Provides the details of the
-- @RequestCancelExternalWorkflowExecutionFailed@ event.
--
-- /See:/ 'newRequestCancelExternalWorkflowExecutionFailedEventAttributes' smart constructor.
data RequestCancelExternalWorkflowExecutionFailedEventAttributes = RequestCancelExternalWorkflowExecutionFailedEventAttributes'
  { -- | The data attached to the event that the decider can use in subsequent
    -- workflow tasks. This data isn\'t sent to the workflow execution.
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
control :: Prelude.Maybe Prelude.Text,
    -- | The @runId@ of the external workflow execution.
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
    -- | The @workflowId@ of the external workflow to which the cancel request
    -- was to be delivered.
    RequestCancelExternalWorkflowExecutionFailedEventAttributes -> Text
workflowId :: Prelude.Text,
    -- | The cause of the failure. This information is generated by the system
    -- and can be useful for diagnostic purposes.
    --
    -- If @cause@ is set to @OPERATION_NOT_PERMITTED@, the decision failed
    -- because it lacked sufficient permissions. For details and example IAM
    -- policies, see
    -- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>
    -- in the /Amazon SWF Developer Guide/.
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedCause
cause :: RequestCancelExternalWorkflowExecutionFailedCause,
    -- | The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event
    -- corresponding to the @RequestCancelExternalWorkflowExecution@ decision
    -- to cancel this external workflow execution. This information can be
    -- useful for diagnosing problems by tracing back the chain of events
    -- leading up to this event.
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
initiatedEventId :: Prelude.Integer,
    -- | The ID of the @DecisionTaskCompleted@ event corresponding to the
    -- decision task that resulted in the
    -- @RequestCancelExternalWorkflowExecution@ decision for this cancellation
    -- request. This information can be useful for diagnosing problems by
    -- tracing back the chain of events leading up to this event.
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
decisionTaskCompletedEventId :: Prelude.Integer
  }
  deriving (RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Bool
$c/= :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Bool
== :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Bool
$c== :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Bool
Prelude.Eq, ReadPrec
  [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
ReadPrec
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
Int
-> ReadS
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
ReadS [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec
  [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
$creadListPrec :: ReadPrec
  [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
readPrec :: ReadPrec
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
$creadPrec :: ReadPrec
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
readList :: ReadS [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
$creadList :: ReadS [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
readsPrec :: Int
-> ReadS
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
$creadsPrec :: Int
-> ReadS
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
Prelude.Read, Int
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> ShowS
[RequestCancelExternalWorkflowExecutionFailedEventAttributes]
-> ShowS
RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
-> ShowS
$cshowList :: [RequestCancelExternalWorkflowExecutionFailedEventAttributes]
-> ShowS
show :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> String
$cshow :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> String
showsPrec :: Int
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> ShowS
$cshowsPrec :: Int
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> ShowS
Prelude.Show, forall x.
Rep RequestCancelExternalWorkflowExecutionFailedEventAttributes x
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
forall x.
RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Rep
     RequestCancelExternalWorkflowExecutionFailedEventAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RequestCancelExternalWorkflowExecutionFailedEventAttributes x
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
$cfrom :: forall x.
RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Rep
     RequestCancelExternalWorkflowExecutionFailedEventAttributes x
Prelude.Generic)

-- |
-- Create a value of 'RequestCancelExternalWorkflowExecutionFailedEventAttributes' 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:
--
-- 'control', 'requestCancelExternalWorkflowExecutionFailedEventAttributes_control' - The data attached to the event that the decider can use in subsequent
-- workflow tasks. This data isn\'t sent to the workflow execution.
--
-- 'runId', 'requestCancelExternalWorkflowExecutionFailedEventAttributes_runId' - The @runId@ of the external workflow execution.
--
-- 'workflowId', 'requestCancelExternalWorkflowExecutionFailedEventAttributes_workflowId' - The @workflowId@ of the external workflow to which the cancel request
-- was to be delivered.
--
-- 'cause', 'requestCancelExternalWorkflowExecutionFailedEventAttributes_cause' - The cause of the failure. This information is generated by the system
-- and can be useful for diagnostic purposes.
--
-- If @cause@ is set to @OPERATION_NOT_PERMITTED@, the decision failed
-- because it lacked sufficient permissions. For details and example IAM
-- policies, see
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>
-- in the /Amazon SWF Developer Guide/.
--
-- 'initiatedEventId', 'requestCancelExternalWorkflowExecutionFailedEventAttributes_initiatedEventId' - The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event
-- corresponding to the @RequestCancelExternalWorkflowExecution@ decision
-- to cancel this external workflow execution. This information can be
-- useful for diagnosing problems by tracing back the chain of events
-- leading up to this event.
--
-- 'decisionTaskCompletedEventId', 'requestCancelExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId' - The ID of the @DecisionTaskCompleted@ event corresponding to the
-- decision task that resulted in the
-- @RequestCancelExternalWorkflowExecution@ decision for this cancellation
-- request. This information can be useful for diagnosing problems by
-- tracing back the chain of events leading up to this event.
newRequestCancelExternalWorkflowExecutionFailedEventAttributes ::
  -- | 'workflowId'
  Prelude.Text ->
  -- | 'cause'
  RequestCancelExternalWorkflowExecutionFailedCause ->
  -- | 'initiatedEventId'
  Prelude.Integer ->
  -- | 'decisionTaskCompletedEventId'
  Prelude.Integer ->
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
newRequestCancelExternalWorkflowExecutionFailedEventAttributes :: Text
-> RequestCancelExternalWorkflowExecutionFailedCause
-> Integer
-> Integer
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
newRequestCancelExternalWorkflowExecutionFailedEventAttributes
  Text
pWorkflowId_
  RequestCancelExternalWorkflowExecutionFailedCause
pCause_
  Integer
pInitiatedEventId_
  Integer
pDecisionTaskCompletedEventId_ =
    RequestCancelExternalWorkflowExecutionFailedEventAttributes'
      { $sel:control:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
control =
          forall a. Maybe a
Prelude.Nothing,
        $sel:runId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
runId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:workflowId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Text
workflowId =
          Text
pWorkflowId_,
        $sel:cause:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedCause
cause =
          RequestCancelExternalWorkflowExecutionFailedCause
pCause_,
        $sel:initiatedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId =
          Integer
pInitiatedEventId_,
        $sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId =
          Integer
pDecisionTaskCompletedEventId_
      }

-- | The data attached to the event that the decider can use in subsequent
-- workflow tasks. This data isn\'t sent to the workflow execution.
requestCancelExternalWorkflowExecutionFailedEventAttributes_control :: Lens.Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
requestCancelExternalWorkflowExecutionFailedEventAttributes_control :: Lens'
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
  (Maybe Text)
requestCancelExternalWorkflowExecutionFailedEventAttributes_control = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Maybe Text
control :: Maybe Text
$sel:control:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
control} -> Maybe Text
control) (\s :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
s@RequestCancelExternalWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
s {$sel:control:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
control = Maybe Text
a} :: RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | The @runId@ of the external workflow execution.
requestCancelExternalWorkflowExecutionFailedEventAttributes_runId :: Lens.Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes (Prelude.Maybe Prelude.Text)
requestCancelExternalWorkflowExecutionFailedEventAttributes_runId :: Lens'
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
  (Maybe Text)
requestCancelExternalWorkflowExecutionFailedEventAttributes_runId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Maybe Text
runId :: Maybe Text
$sel:runId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
runId} -> Maybe Text
runId) (\s :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
s@RequestCancelExternalWorkflowExecutionFailedEventAttributes' {} Maybe Text
a -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
s {$sel:runId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Maybe Text
runId = Maybe Text
a} :: RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | The @workflowId@ of the external workflow to which the cancel request
-- was to be delivered.
requestCancelExternalWorkflowExecutionFailedEventAttributes_workflowId :: Lens.Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Prelude.Text
requestCancelExternalWorkflowExecutionFailedEventAttributes_workflowId :: Lens'
  RequestCancelExternalWorkflowExecutionFailedEventAttributes Text
requestCancelExternalWorkflowExecutionFailedEventAttributes_workflowId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Text
workflowId :: Text
$sel:workflowId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes -> Text
workflowId} -> Text
workflowId) (\s :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
s@RequestCancelExternalWorkflowExecutionFailedEventAttributes' {} Text
a -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
s {$sel:workflowId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Text
workflowId = Text
a} :: RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | The cause of the failure. This information is generated by the system
-- and can be useful for diagnostic purposes.
--
-- If @cause@ is set to @OPERATION_NOT_PERMITTED@, the decision failed
-- because it lacked sufficient permissions. For details and example IAM
-- policies, see
-- <https://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html Using IAM to Manage Access to Amazon SWF Workflows>
-- in the /Amazon SWF Developer Guide/.
requestCancelExternalWorkflowExecutionFailedEventAttributes_cause :: Lens.Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes RequestCancelExternalWorkflowExecutionFailedCause
requestCancelExternalWorkflowExecutionFailedEventAttributes_cause :: Lens'
  RequestCancelExternalWorkflowExecutionFailedEventAttributes
  RequestCancelExternalWorkflowExecutionFailedCause
requestCancelExternalWorkflowExecutionFailedEventAttributes_cause = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionFailedEventAttributes' {RequestCancelExternalWorkflowExecutionFailedCause
cause :: RequestCancelExternalWorkflowExecutionFailedCause
$sel:cause:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedCause
cause} -> RequestCancelExternalWorkflowExecutionFailedCause
cause) (\s :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
s@RequestCancelExternalWorkflowExecutionFailedEventAttributes' {} RequestCancelExternalWorkflowExecutionFailedCause
a -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
s {$sel:cause:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedCause
cause = RequestCancelExternalWorkflowExecutionFailedCause
a} :: RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | The ID of the @RequestCancelExternalWorkflowExecutionInitiated@ event
-- corresponding to the @RequestCancelExternalWorkflowExecution@ decision
-- to cancel this external workflow execution. This information can be
-- useful for diagnosing problems by tracing back the chain of events
-- leading up to this event.
requestCancelExternalWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens.Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Prelude.Integer
requestCancelExternalWorkflowExecutionFailedEventAttributes_initiatedEventId :: Lens'
  RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer
requestCancelExternalWorkflowExecutionFailedEventAttributes_initiatedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Integer
initiatedEventId :: Integer
$sel:initiatedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
initiatedEventId} -> Integer
initiatedEventId) (\s :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
s@RequestCancelExternalWorkflowExecutionFailedEventAttributes' {} Integer
a -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
s {$sel:initiatedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Integer
initiatedEventId = Integer
a} :: RequestCancelExternalWorkflowExecutionFailedEventAttributes)

-- | The ID of the @DecisionTaskCompleted@ event corresponding to the
-- decision task that resulted in the
-- @RequestCancelExternalWorkflowExecution@ decision for this cancellation
-- request. This information can be useful for diagnosing problems by
-- tracing back the chain of events leading up to this event.
requestCancelExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens.Lens' RequestCancelExternalWorkflowExecutionFailedEventAttributes Prelude.Integer
requestCancelExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId :: Lens'
  RequestCancelExternalWorkflowExecutionFailedEventAttributes Integer
requestCancelExternalWorkflowExecutionFailedEventAttributes_decisionTaskCompletedEventId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Integer
decisionTaskCompletedEventId :: Integer
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
decisionTaskCompletedEventId} -> Integer
decisionTaskCompletedEventId) (\s :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
s@RequestCancelExternalWorkflowExecutionFailedEventAttributes' {} Integer
a -> RequestCancelExternalWorkflowExecutionFailedEventAttributes
s {$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: Integer
decisionTaskCompletedEventId = Integer
a} :: RequestCancelExternalWorkflowExecutionFailedEventAttributes)

instance
  Data.FromJSON
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
  where
  parseJSON :: Value
-> Parser
     RequestCancelExternalWorkflowExecutionFailedEventAttributes
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"RequestCancelExternalWorkflowExecutionFailedEventAttributes"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Text
-> RequestCancelExternalWorkflowExecutionFailedCause
-> Integer
-> Integer
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
RequestCancelExternalWorkflowExecutionFailedEventAttributes'
            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
"control")
            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
"runId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"workflowId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"cause")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"initiatedEventId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"decisionTaskCompletedEventId")
      )

instance
  Prelude.Hashable
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
  where
  hashWithSalt :: Int
-> RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Int
hashWithSalt
    Int
_salt
    RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Integer
Maybe Text
Text
RequestCancelExternalWorkflowExecutionFailedCause
decisionTaskCompletedEventId :: Integer
initiatedEventId :: Integer
cause :: RequestCancelExternalWorkflowExecutionFailedCause
workflowId :: Text
runId :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
$sel:initiatedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
$sel:cause:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedCause
$sel:workflowId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes -> Text
$sel:runId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
$sel:control:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
control
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
runId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workflowId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` RequestCancelExternalWorkflowExecutionFailedCause
cause
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
initiatedEventId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Integer
decisionTaskCompletedEventId

instance
  Prelude.NFData
    RequestCancelExternalWorkflowExecutionFailedEventAttributes
  where
  rnf :: RequestCancelExternalWorkflowExecutionFailedEventAttributes -> ()
rnf
    RequestCancelExternalWorkflowExecutionFailedEventAttributes' {Integer
Maybe Text
Text
RequestCancelExternalWorkflowExecutionFailedCause
decisionTaskCompletedEventId :: Integer
initiatedEventId :: Integer
cause :: RequestCancelExternalWorkflowExecutionFailedCause
workflowId :: Text
runId :: Maybe Text
control :: Maybe Text
$sel:decisionTaskCompletedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
$sel:initiatedEventId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Integer
$sel:cause:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> RequestCancelExternalWorkflowExecutionFailedCause
$sel:workflowId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes -> Text
$sel:runId:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
$sel:control:RequestCancelExternalWorkflowExecutionFailedEventAttributes' :: RequestCancelExternalWorkflowExecutionFailedEventAttributes
-> Maybe Text
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
control
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
runId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
workflowId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf RequestCancelExternalWorkflowExecutionFailedCause
cause
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
initiatedEventId
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Integer
decisionTaskCompletedEventId