{-# 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.ExternalWorkflowExecutionSignaledEventAttributes -- 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.ExternalWorkflowExecutionSignaledEventAttributes 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.WorkflowExecution -- | Provides the details of the @ExternalWorkflowExecutionSignaled@ event. -- -- /See:/ 'newExternalWorkflowExecutionSignaledEventAttributes' smart constructor. data ExternalWorkflowExecutionSignaledEventAttributes = ExternalWorkflowExecutionSignaledEventAttributes' { -- | The external workflow execution that the signal was delivered to. workflowExecution :: WorkflowExecution, -- | The ID of the @SignalExternalWorkflowExecutionInitiated@ event -- corresponding to the @SignalExternalWorkflowExecution@ decision to -- request this signal. This information can be useful for diagnosing -- problems by tracing back the chain of events leading up to this event. initiatedEventId :: Prelude.Integer } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ExternalWorkflowExecutionSignaledEventAttributes' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'workflowExecution', 'externalWorkflowExecutionSignaledEventAttributes_workflowExecution' - The external workflow execution that the signal was delivered to. -- -- 'initiatedEventId', 'externalWorkflowExecutionSignaledEventAttributes_initiatedEventId' - The ID of the @SignalExternalWorkflowExecutionInitiated@ event -- corresponding to the @SignalExternalWorkflowExecution@ decision to -- request this signal. This information can be useful for diagnosing -- problems by tracing back the chain of events leading up to this event. newExternalWorkflowExecutionSignaledEventAttributes :: -- | 'workflowExecution' WorkflowExecution -> -- | 'initiatedEventId' Prelude.Integer -> ExternalWorkflowExecutionSignaledEventAttributes newExternalWorkflowExecutionSignaledEventAttributes pWorkflowExecution_ pInitiatedEventId_ = ExternalWorkflowExecutionSignaledEventAttributes' { workflowExecution = pWorkflowExecution_, initiatedEventId = pInitiatedEventId_ } -- | The external workflow execution that the signal was delivered to. externalWorkflowExecutionSignaledEventAttributes_workflowExecution :: Lens.Lens' ExternalWorkflowExecutionSignaledEventAttributes WorkflowExecution externalWorkflowExecutionSignaledEventAttributes_workflowExecution = Lens.lens (\ExternalWorkflowExecutionSignaledEventAttributes' {workflowExecution} -> workflowExecution) (\s@ExternalWorkflowExecutionSignaledEventAttributes' {} a -> s {workflowExecution = a} :: ExternalWorkflowExecutionSignaledEventAttributes) -- | The ID of the @SignalExternalWorkflowExecutionInitiated@ event -- corresponding to the @SignalExternalWorkflowExecution@ decision to -- request this signal. This information can be useful for diagnosing -- problems by tracing back the chain of events leading up to this event. externalWorkflowExecutionSignaledEventAttributes_initiatedEventId :: Lens.Lens' ExternalWorkflowExecutionSignaledEventAttributes Prelude.Integer externalWorkflowExecutionSignaledEventAttributes_initiatedEventId = Lens.lens (\ExternalWorkflowExecutionSignaledEventAttributes' {initiatedEventId} -> initiatedEventId) (\s@ExternalWorkflowExecutionSignaledEventAttributes' {} a -> s {initiatedEventId = a} :: ExternalWorkflowExecutionSignaledEventAttributes) instance Data.FromJSON ExternalWorkflowExecutionSignaledEventAttributes where parseJSON = Data.withObject "ExternalWorkflowExecutionSignaledEventAttributes" ( \x -> ExternalWorkflowExecutionSignaledEventAttributes' Prelude.<$> (x Data..: "workflowExecution") Prelude.<*> (x Data..: "initiatedEventId") ) instance Prelude.Hashable ExternalWorkflowExecutionSignaledEventAttributes where hashWithSalt _salt ExternalWorkflowExecutionSignaledEventAttributes' {..} = _salt `Prelude.hashWithSalt` workflowExecution `Prelude.hashWithSalt` initiatedEventId instance Prelude.NFData ExternalWorkflowExecutionSignaledEventAttributes where rnf ExternalWorkflowExecutionSignaledEventAttributes' {..} = Prelude.rnf workflowExecution `Prelude.seq` Prelude.rnf initiatedEventId