public class SignalResourceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SignalResource operation
.
Sends a signal to the specified resource with a success or failure status. You can use the SignalResource API in conjunction with a creation policy or update policy. AWS CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource API is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.
NOOP
Constructor and Description |
---|
SignalResourceRequest() |
Modifier and Type | Method and Description |
---|---|
SignalResourceRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getLogicalResourceId()
The logical ID of the resource that you want to signal.
|
String |
getStackName()
The stack name or unique stack ID that includes the resource that you
want to signal.
|
String |
getStatus()
The status of the signal, which is either success or failure.
|
String |
getUniqueId()
A unique ID of the signal.
|
int |
hashCode() |
void |
setLogicalResourceId(String logicalResourceId)
The logical ID of the resource that you want to signal.
|
void |
setStackName(String stackName)
The stack name or unique stack ID that includes the resource that you
want to signal.
|
void |
setStatus(ResourceSignalStatus status)
The status of the signal, which is either success or failure.
|
void |
setStatus(String status)
The status of the signal, which is either success or failure.
|
void |
setUniqueId(String uniqueId)
A unique ID of the signal.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SignalResourceRequest |
withLogicalResourceId(String logicalResourceId)
The logical ID of the resource that you want to signal.
|
SignalResourceRequest |
withStackName(String stackName)
The stack name or unique stack ID that includes the resource that you
want to signal.
|
SignalResourceRequest |
withStatus(ResourceSignalStatus status)
The status of the signal, which is either success or failure.
|
SignalResourceRequest |
withStatus(String status)
The status of the signal, which is either success or failure.
|
SignalResourceRequest |
withUniqueId(String uniqueId)
A unique ID of the signal.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getStackName()
Constraints:
Length: 1 -
Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*)
public void setStackName(String stackName)
Constraints:
Length: 1 -
Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*)
stackName
- The stack name or unique stack ID that includes the resource that you
want to signal.public SignalResourceRequest withStackName(String stackName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
Pattern: ([a-zA-Z][-a-zA-Z0-9]*)|(arn:\b(aws|aws-us-gov|aws-cn)\b:[-a-zA-Z0-9:/._+]*)
stackName
- The stack name or unique stack ID that includes the resource that you
want to signal.public String getLogicalResourceId()
public void setLogicalResourceId(String logicalResourceId)
logicalResourceId
- The logical ID of the resource that you want to signal. The logical ID
is the name of the resource that given in the template.public SignalResourceRequest withLogicalResourceId(String logicalResourceId)
Returns a reference to this object so that method calls can be chained together.
logicalResourceId
- The logical ID of the resource that you want to signal. The logical ID
is the name of the resource that given in the template.public String getUniqueId()
Constraints:
Length: 1 - 64
public void setUniqueId(String uniqueId)
Constraints:
Length: 1 - 64
uniqueId
- A unique ID of the signal. When you signal Amazon EC2 instances or
Auto Scaling groups, specify the instance ID that you are signaling as
the unique ID. If you send multiple signals to a single resource (such
as signaling a wait condition), each signal requires a different
unique ID.public SignalResourceRequest withUniqueId(String uniqueId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
uniqueId
- A unique ID of the signal. When you signal Amazon EC2 instances or
Auto Scaling groups, specify the instance ID that you are signaling as
the unique ID. If you send multiple signals to a single resource (such
as signaling a wait condition), each signal requires a different
unique ID.public String getStatus()
Constraints:
Allowed Values: SUCCESS, FAILURE
ResourceSignalStatus
public void setStatus(String status)
Constraints:
Allowed Values: SUCCESS, FAILURE
status
- The status of the signal, which is either success or failure. A
failure signal causes AWS CloudFormation to immediately fail the stack
creation or update.ResourceSignalStatus
public SignalResourceRequest withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUCCESS, FAILURE
status
- The status of the signal, which is either success or failure. A
failure signal causes AWS CloudFormation to immediately fail the stack
creation or update.ResourceSignalStatus
public void setStatus(ResourceSignalStatus status)
Constraints:
Allowed Values: SUCCESS, FAILURE
status
- The status of the signal, which is either success or failure. A
failure signal causes AWS CloudFormation to immediately fail the stack
creation or update.ResourceSignalStatus
public SignalResourceRequest withStatus(ResourceSignalStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUCCESS, FAILURE
status
- The status of the signal, which is either success or failure. A
failure signal causes AWS CloudFormation to immediately fail the stack
creation or update.ResourceSignalStatus
public String toString()
toString
in class Object
Object.toString()
public SignalResourceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.