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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 does not 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 will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .

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 - Optional. 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 will be terminated. * REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.
  • tweDetails - Optional. 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 # 
Data TerminateWorkflowExecution Source # 

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 # 
Show TerminateWorkflowExecution Source # 
Generic TerminateWorkflowExecution Source # 
Hashable TerminateWorkflowExecution Source # 
ToJSON TerminateWorkflowExecution Source # 
NFData TerminateWorkflowExecution Source # 
AWSRequest TerminateWorkflowExecution Source # 
ToPath TerminateWorkflowExecution Source # 
ToHeaders TerminateWorkflowExecution Source # 
ToQuery TerminateWorkflowExecution Source # 
type Rep TerminateWorkflowExecution Source # 
type Rep TerminateWorkflowExecution = D1 (MetaData "TerminateWorkflowExecution" "Network.AWS.SWF.TerminateWorkflowExecution" "amazonka-swf-1.4.5-JrgP3TYd23IIXxQppO5YqL" False) (C1 (MetaCons "TerminateWorkflowExecution'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_tweReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_tweRunId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_tweChildPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ChildPolicy))))) ((:*:) (S1 (MetaSel (Just Symbol "_tweDetails") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_tweDomain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tweWorkflowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs TerminateWorkflowExecution Source # 

Request Lenses

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

Optional. 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 will be terminated. * REQUEST_CANCEL: a request to cancel will be 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 will be taken. The child executions will continue to run.

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

Optional. 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 # 
Data TerminateWorkflowExecutionResponse Source # 

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 # 
Show TerminateWorkflowExecutionResponse Source # 
Generic TerminateWorkflowExecutionResponse Source # 
NFData TerminateWorkflowExecutionResponse Source # 
type Rep TerminateWorkflowExecutionResponse Source # 
type Rep TerminateWorkflowExecutionResponse = D1 (MetaData "TerminateWorkflowExecutionResponse" "Network.AWS.SWF.TerminateWorkflowExecution" "amazonka-swf-1.4.5-JrgP3TYd23IIXxQppO5YqL" False) (C1 (MetaCons "TerminateWorkflowExecutionResponse'" PrefixI False) U1)