|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.simpleworkflow.model.TerminateWorkflowExecutionRequest
public class TerminateWorkflowExecutionRequest
Container for the parameters to the TerminateWorkflowExecution operation
.
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.
NOTE: If a runId is not specified, then the WorkflowExecutionTerminated event is recorded in the history of the current open workflow with the matching workflowId in the domain.
NOTE: You should consider using RequestCancelWorkflowExecution action instead because it allows the workflow to gracefully close while TerminateWorkflowExecution does not.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit the action to only specified domains.Action
element to allow or deny permission to call this action.
If the caller does not have sufficient permissions to invoke the action, or the parameter values fall outside the specified constraints, the action
fails by throwing OperationNotPermitted
. For details and example IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows .
AmazonSimpleWorkflow.terminateWorkflowExecution(TerminateWorkflowExecutionRequest)
,
Serialized FormConstructor Summary | |
---|---|
TerminateWorkflowExecutionRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getChildPolicy()
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. |
String |
getDetails()
Optional details for terminating the workflow execution. |
String |
getDomain()
The domain of the workflow execution to terminate. |
String |
getReason()
An optional descriptive reason for terminating the workflow execution. |
String |
getRunId()
The runId of the workflow execution to terminate. |
String |
getWorkflowId()
The workflowId of the workflow execution to terminate. |
int |
hashCode()
|
void |
setChildPolicy(ChildPolicy childPolicy)
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. |
void |
setChildPolicy(String childPolicy)
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. |
void |
setDetails(String details)
Optional details for terminating the workflow execution. |
void |
setDomain(String domain)
The domain of the workflow execution to terminate. |
void |
setReason(String reason)
An optional descriptive reason for terminating the workflow execution. |
void |
setRunId(String runId)
The runId of the workflow execution to terminate. |
void |
setWorkflowId(String workflowId)
The workflowId of the workflow execution to terminate. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
TerminateWorkflowExecutionRequest |
withChildPolicy(ChildPolicy childPolicy)
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. |
TerminateWorkflowExecutionRequest |
withChildPolicy(String childPolicy)
If set, specifies the policy to use for the child workflow executions of the workflow execution being terminated. |
TerminateWorkflowExecutionRequest |
withDetails(String details)
Optional details for terminating the workflow execution. |
TerminateWorkflowExecutionRequest |
withDomain(String domain)
The domain of the workflow execution to terminate. |
TerminateWorkflowExecutionRequest |
withReason(String reason)
An optional descriptive reason for terminating the workflow execution. |
TerminateWorkflowExecutionRequest |
withRunId(String runId)
The runId of the workflow execution to terminate. |
TerminateWorkflowExecutionRequest |
withWorkflowId(String workflowId)
The workflowId of the workflow execution to terminate. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TerminateWorkflowExecutionRequest()
Method Detail |
---|
public String getDomain()
Constraints:
Length: 1 - 256
public void setDomain(String domain)
Constraints:
Length: 1 - 256
domain
- The domain of the workflow execution to terminate.public TerminateWorkflowExecutionRequest withDomain(String domain)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
domain
- The domain of the workflow execution to terminate.
public String getWorkflowId()
Constraints:
Length: 1 - 256
public void setWorkflowId(String workflowId)
Constraints:
Length: 1 - 256
workflowId
- The workflowId of the workflow execution to terminate.public TerminateWorkflowExecutionRequest withWorkflowId(String workflowId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
workflowId
- The workflowId of the workflow execution to terminate.
public String getRunId()
Constraints:
Length: 0 - 64
public void setRunId(String runId)
Constraints:
Length: 0 - 64
runId
- The runId of the workflow execution to terminate.public TerminateWorkflowExecutionRequest withRunId(String runId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 64
runId
- The runId of the workflow execution to terminate.
public String getReason()
Constraints:
Length: 0 - 256
public void setReason(String reason)
Constraints:
Length: 0 - 256
reason
- An optional descriptive reason for terminating the workflow execution.public TerminateWorkflowExecutionRequest withReason(String reason)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
reason
- An optional descriptive reason for terminating the workflow execution.
public String getDetails()
Constraints:
Length: 0 - 32768
public void setDetails(String details)
Constraints:
Length: 0 - 32768
details
- Optional details for terminating the workflow execution.public TerminateWorkflowExecutionRequest withDetails(String details)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32768
details
- Optional details for terminating the workflow execution.
public String getChildPolicy()
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. ChildPolicy
public void setChildPolicy(String childPolicy)
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy
- 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: WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. ChildPolicy
public TerminateWorkflowExecutionRequest withChildPolicy(String childPolicy)
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy
- 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: WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. ChildPolicy
public void setChildPolicy(ChildPolicy childPolicy)
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy
- 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: WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. ChildPolicy
public TerminateWorkflowExecutionRequest withChildPolicy(ChildPolicy childPolicy)
WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
childPolicy
- 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: WorkflowExecutionCancelRequested
event in its history. It
is up to the decider to take appropriate actions when it receives an
execution history with this event. ChildPolicy
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |