|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudformation.model.UpdateStackRequest
public class UpdateStackRequest
Container for the parameters to the UpdateStack operation
.
Updates a stack as specified in the template. After the call completes successfully, the stack update starts. You can check the status of the stack via the DescribeStacks action.
To get a copy of the template for an existing stack, you can use the GetTemplate action.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack .
AmazonCloudFormation.updateStack(UpdateStackRequest)
Constructor Summary | |
---|---|
UpdateStackRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
List<String> |
getCapabilities()
The list of capabilities that you want to allow in the stack. |
List<Parameter> |
getParameters()
A list of Parameter structures that specify input
parameters for the stack. |
String |
getStackName()
The name or stack ID of the stack to update. |
String |
getTemplateBody()
Structure containing the template body. |
String |
getTemplateURL()
Location of file containing the template body. |
int |
hashCode()
|
void |
setCapabilities(Collection<String> capabilities)
The list of capabilities that you want to allow in the stack. |
void |
setParameters(Collection<Parameter> parameters)
A list of Parameter structures that specify input
parameters for the stack. |
void |
setStackName(String stackName)
The name or stack ID of the stack to update. |
void |
setTemplateBody(String templateBody)
Structure containing the template body. |
void |
setTemplateURL(String templateURL)
Location of file containing the template body. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
UpdateStackRequest |
withCapabilities(Collection<String> capabilities)
The list of capabilities that you want to allow in the stack. |
UpdateStackRequest |
withCapabilities(String... capabilities)
The list of capabilities that you want to allow in the stack. |
UpdateStackRequest |
withParameters(Collection<Parameter> parameters)
A list of Parameter structures that specify input
parameters for the stack. |
UpdateStackRequest |
withParameters(Parameter... parameters)
A list of Parameter structures that specify input
parameters for the stack. |
UpdateStackRequest |
withStackName(String stackName)
The name or stack ID of the stack to update. |
UpdateStackRequest |
withTemplateBody(String templateBody)
Structure containing the template body. |
UpdateStackRequest |
withTemplateURL(String templateURL)
Location of file containing the template body. |
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 UpdateStackRequest()
Method Detail |
---|
public String getStackName()
public void setStackName(String stackName)
stackName
- The name or stack ID of the stack to update. public UpdateStackRequest withStackName(String stackName)
Returns a reference to this object so that method calls can be chained together.
stackName
- The name or stack ID of the stack to update. public String getTemplateBody()
Conditional: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
Constraints:
Length: 1 -
Conditional: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
public void setTemplateBody(String templateBody)
Conditional: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
Constraints:
Length: 1 -
templateBody
- Structure containing the template body. (For more information, go to
the AWS
CloudFormation User Guide.) Conditional: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
public UpdateStackRequest withTemplateBody(String templateBody)
Conditional: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
templateBody
- Structure containing the template body. (For more information, go to
the AWS
CloudFormation User Guide.) Conditional: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
public String getTemplateURL()
Conditional: You must pass
TemplateURL
or TemplateBody
. If both are
passed, only TemplateBody
is used.
Constraints:
Length: 1 - 1024
Conditional: You must pass
TemplateURL
or TemplateBody
. If both are
passed, only TemplateBody
is used.
public void setTemplateURL(String templateURL)
Conditional: You must pass
TemplateURL
or TemplateBody
. If both are
passed, only TemplateBody
is used.
Constraints:
Length: 1 - 1024
templateURL
- Location of file containing the template body. The URL must point to a
template located in an S3 bucket in the same region as the stack. For
more information, go to the AWS
CloudFormation User Guide. Conditional: You must pass
TemplateURL
or TemplateBody
. If both are
passed, only TemplateBody
is used.
public UpdateStackRequest withTemplateURL(String templateURL)
Conditional: You must pass
TemplateURL
or TemplateBody
. If both are
passed, only TemplateBody
is used.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
templateURL
- Location of file containing the template body. The URL must point to a
template located in an S3 bucket in the same region as the stack. For
more information, go to the AWS
CloudFormation User Guide. Conditional: You must pass
TemplateURL
or TemplateBody
. If both are
passed, only TemplateBody
is used.
public List<Parameter> getParameters()
Parameter
structures that specify input
parameters for the stack.
Parameter
structures that specify input
parameters for the stack.public void setParameters(Collection<Parameter> parameters)
Parameter
structures that specify input
parameters for the stack.
parameters
- A list of Parameter
structures that specify input
parameters for the stack.public UpdateStackRequest withParameters(Parameter... parameters)
Parameter
structures that specify input
parameters for the stack.
Returns a reference to this object so that method calls can be chained together.
parameters
- A list of Parameter
structures that specify input
parameters for the stack.
public UpdateStackRequest withParameters(Collection<Parameter> parameters)
Parameter
structures that specify input
parameters for the stack.
Returns a reference to this object so that method calls can be chained together.
parameters
- A list of Parameter
structures that specify input
parameters for the stack.
public List<String> getCapabilities()
public void setCapabilities(Collection<String> capabilities)
capabilities
- The list of capabilities that you want to allow in the stack. If your
stack contains IAM resources, you must specify the CAPABILITY_IAM
value for this parameter; otherwise, this action returns an
InsufficientCapabilities error. IAM resources are the following: AWS::IAM::AccessKey,
AWS::IAM::Group,
AWS::IAM::Policy,
AWS::IAM::User,
and AWS::IAM::UserToGroupAddition.public UpdateStackRequest withCapabilities(String... capabilities)
Returns a reference to this object so that method calls can be chained together.
capabilities
- The list of capabilities that you want to allow in the stack. If your
stack contains IAM resources, you must specify the CAPABILITY_IAM
value for this parameter; otherwise, this action returns an
InsufficientCapabilities error. IAM resources are the following: AWS::IAM::AccessKey,
AWS::IAM::Group,
AWS::IAM::Policy,
AWS::IAM::User,
and AWS::IAM::UserToGroupAddition.
public UpdateStackRequest withCapabilities(Collection<String> capabilities)
Returns a reference to this object so that method calls can be chained together.
capabilities
- The list of capabilities that you want to allow in the stack. If your
stack contains IAM resources, you must specify the CAPABILITY_IAM
value for this parameter; otherwise, this action returns an
InsufficientCapabilities error. IAM resources are the following: AWS::IAM::AccessKey,
AWS::IAM::Group,
AWS::IAM::Policy,
AWS::IAM::User,
and AWS::IAM::UserToGroupAddition.
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 |