amazonka-swf-1.6.1: Amazon Simple Workflow Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SWF.TerminateWorkflowExecution

Contents

Description

Records a WorkflowExecutionTerminated event and forces closure of the workflow execution identified by the given domain, runId, and workflowId. The child policy, registered with the workflow type or specified when starting this execution, is applied to any open child workflow executions of this workflow execution.

Important: If the identified workflow execution was in progress, it is terminated immediately.

Access Control

You can use IAM policies to control this action's access to Amazon SWF resources as follows:

  • Use a Resource element with the domain name to limit the action to only specified domains.
  • Use an Action element to allow or deny permission to call this action.
  • You cannot use an IAM policy to constrain this action's parameters.

If the caller doesn't have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action fails. The associated event attribute's cause parameter is set to OPERATION_NOT_PERMITTED . For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows in the Amazon SWF Developer Guide .

Synopsis

Creating a Request

terminateWorkflowExecution Source #

Creates a value of TerminateWorkflowExecution with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • tweReason - A descriptive reason for terminating the workflow execution.
  • tweRunId - The runId of the workflow execution to terminate.
  • tweChildPolicy - If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution. The supported child policies are: * TERMINATE – The child executions are terminated. * REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. * ABANDON – No action is taken. The child executions continue to run.
  • tweDetails - Details for terminating the workflow execution.
  • tweDomain - The domain of the workflow execution to terminate.
  • tweWorkflowId - The workflowId of the workflow execution to terminate.

data TerminateWorkflowExecution Source #

See: terminateWorkflowExecution smart constructor.

Instances
Eq TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Data TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TerminateWorkflowExecution -> c TerminateWorkflowExecution #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TerminateWorkflowExecution #

toConstr :: TerminateWorkflowExecution -> Constr #

dataTypeOf :: TerminateWorkflowExecution -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TerminateWorkflowExecution) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TerminateWorkflowExecution) #

gmapT :: (forall b. Data b => b -> b) -> TerminateWorkflowExecution -> TerminateWorkflowExecution #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TerminateWorkflowExecution -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TerminateWorkflowExecution -> r #

gmapQ :: (forall d. Data d => d -> u) -> TerminateWorkflowExecution -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TerminateWorkflowExecution -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TerminateWorkflowExecution -> m TerminateWorkflowExecution #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateWorkflowExecution -> m TerminateWorkflowExecution #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateWorkflowExecution -> m TerminateWorkflowExecution #

Read TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Show TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Generic TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Associated Types

type Rep TerminateWorkflowExecution :: Type -> Type #

Hashable TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

ToJSON TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

AWSRequest TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Associated Types

type Rs TerminateWorkflowExecution :: Type #

ToHeaders TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

ToPath TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

ToQuery TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

NFData TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

type Rep TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

type Rep TerminateWorkflowExecution = D1 (MetaData "TerminateWorkflowExecution" "Network.AWS.SWF.TerminateWorkflowExecution" "amazonka-swf-1.6.1-3kde1KSCGTp3D4Dj0lEH55" False) (C1 (MetaCons "TerminateWorkflowExecution'" PrefixI True) ((S1 (MetaSel (Just "_tweReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tweRunId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_tweChildPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ChildPolicy)))) :*: (S1 (MetaSel (Just "_tweDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_tweDomain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_tweWorkflowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs TerminateWorkflowExecution Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Request Lenses

tweReason :: Lens' TerminateWorkflowExecution (Maybe Text) Source #

A descriptive reason for terminating the workflow execution.

tweRunId :: Lens' TerminateWorkflowExecution (Maybe Text) Source #

The runId of the workflow execution to terminate.

tweChildPolicy :: Lens' TerminateWorkflowExecution (Maybe ChildPolicy) Source #

If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. This policy overrides the child policy specified for the workflow execution at registration time or when starting the execution. The supported child policies are: * TERMINATE – The child executions are terminated. * REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event. * ABANDON – No action is taken. The child executions continue to run.

tweDetails :: Lens' TerminateWorkflowExecution (Maybe Text) Source #

Details for terminating the workflow execution.

tweDomain :: Lens' TerminateWorkflowExecution Text Source #

The domain of the workflow execution to terminate.

tweWorkflowId :: Lens' TerminateWorkflowExecution Text Source #

The workflowId of the workflow execution to terminate.

Destructuring the Response

terminateWorkflowExecutionResponse :: TerminateWorkflowExecutionResponse Source #

Creates a value of TerminateWorkflowExecutionResponse with the minimum fields required to make a request.

data TerminateWorkflowExecutionResponse Source #

See: terminateWorkflowExecutionResponse smart constructor.

Instances
Eq TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Data TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TerminateWorkflowExecutionResponse -> c TerminateWorkflowExecutionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TerminateWorkflowExecutionResponse #

toConstr :: TerminateWorkflowExecutionResponse -> Constr #

dataTypeOf :: TerminateWorkflowExecutionResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TerminateWorkflowExecutionResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TerminateWorkflowExecutionResponse) #

gmapT :: (forall b. Data b => b -> b) -> TerminateWorkflowExecutionResponse -> TerminateWorkflowExecutionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TerminateWorkflowExecutionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TerminateWorkflowExecutionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> TerminateWorkflowExecutionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TerminateWorkflowExecutionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TerminateWorkflowExecutionResponse -> m TerminateWorkflowExecutionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateWorkflowExecutionResponse -> m TerminateWorkflowExecutionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TerminateWorkflowExecutionResponse -> m TerminateWorkflowExecutionResponse #

Read TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Show TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Generic TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

Associated Types

type Rep TerminateWorkflowExecutionResponse :: Type -> Type #

NFData TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

type Rep TerminateWorkflowExecutionResponse Source # 
Instance details

Defined in Network.AWS.SWF.TerminateWorkflowExecution

type Rep TerminateWorkflowExecutionResponse = D1 (MetaData "TerminateWorkflowExecutionResponse" "Network.AWS.SWF.TerminateWorkflowExecution" "amazonka-swf-1.6.1-3kde1KSCGTp3D4Dj0lEH55" False) (C1 (MetaCons "TerminateWorkflowExecutionResponse'" PrefixI False) (U1 :: Type -> Type))