public class TerminateWorkflowExecutionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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. 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 .
NOOP
Constructor and Description |
---|
TerminateWorkflowExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
TerminateWorkflowExecutionRequest |
clone()
Creates a shallow clone of this request.
|
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()
Optional. A 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)
Optional. A 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)
Optional. A 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.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
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
- Optional. A 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
- Optional. A 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()
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.
Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON
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(String childPolicy)
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.
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)
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.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)
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.
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)
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.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 TerminateWorkflowExecutionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.