|
|||||||
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 | |
---|---|
java.util.List<java.lang.String> |
getCapabilities()
The list of capabilities that you want to allow in the stack. |
java.util.List<Parameter> |
getParameters()
A list of Parameter structures that specify input
parameters for the stack. |
java.lang.String |
getStackName()
The name or stack ID of the stack to update. |
java.lang.String |
getTemplateBody()
Structure containing the template body. |
java.lang.String |
getTemplateURL()
Location of file containing the template body. |
void |
setCapabilities(java.util.Collection<java.lang.String> capabilities)
The list of capabilities that you want to allow in the stack. |
void |
setParameters(java.util.Collection<Parameter> parameters)
A list of Parameter structures that specify input
parameters for the stack. |
void |
setStackName(java.lang.String stackName)
The name or stack ID of the stack to update. |
void |
setTemplateBody(java.lang.String templateBody)
Structure containing the template body. |
void |
setTemplateURL(java.lang.String templateURL)
Location of file containing the template body. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
UpdateStackRequest |
withCapabilities(java.util.Collection<java.lang.String> capabilities)
The list of capabilities that you want to allow in the stack. |
UpdateStackRequest |
withCapabilities(java.lang.String... capabilities)
The list of capabilities that you want to allow in the stack. |
UpdateStackRequest |
withParameters(java.util.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(java.lang.String stackName)
The name or stack ID of the stack to update. |
UpdateStackRequest |
withTemplateBody(java.lang.String templateBody)
Structure containing the template body. |
UpdateStackRequest |
withTemplateURL(java.lang.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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UpdateStackRequest()
Method Detail |
---|
public java.lang.String getStackName()
public void setStackName(java.lang.String stackName)
stackName
- The name or stack ID of the stack to update. public UpdateStackRequest withStackName(java.lang.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 java.lang.String getTemplateBody()
Condition: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
Constraints:
Length: 1 -
Condition: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
public void setTemplateBody(java.lang.String templateBody)
Condition: 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.) Condition: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
public UpdateStackRequest withTemplateBody(java.lang.String templateBody)
Condition: 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.) Condition: You must pass
TemplateBody
or TemplateURL
. If both are
passed, only TemplateBody
is used.
public java.lang.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(java.lang.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(java.lang.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 java.util.List<Parameter> getParameters()
Parameter
structures that specify input
parameters for the stack.
Parameter
structures that specify input
parameters for the stack.public void setParameters(java.util.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(java.util.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 java.util.List<java.lang.String> getCapabilities()
public void setCapabilities(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |