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.
Note: You cannot update AWS::S3::Bucket resources, for example, to add or modify tags.
To get a copy of the template for an existing stack, you can use the GetTemplate action.
Tags that were associated with this stack during creation time will still be associated with the stack after an UpdateStack operation.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack .
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.
Note: You cannot update AWS::S3::Bucket resources, for example, to add or modify tags.
To get a copy of the template for an existing stack, you can use the GetTemplate action.
Tags that were associated with this stack during creation time will still be associated with the stack after an UpdateStack operation.
For more information about creating an update template, updating a stack, and monitoring the progress of the update, see Updating a Stack .

C# |
public class UpdateStackRequest : AmazonWebServiceRequest

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description | ||
---|---|---|---|---|
![]() | UpdateStackRequest()()()() | Initializes a new instance of the UpdateStackRequest class | ||
![]() | 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.
| ||
![]() | Equals(Object) | (Inherited from Object.) | ||
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | ||
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | ||
![]() | NotificationARNs | |||
![]() | Parameters |
A list of Parameter structures that specify input parameters for the stack.
| ||
![]() | StackName |
The name or stack ID of the stack to update.
| ||
![]() | StackPolicyBody |
Structure containing the updated stack policy body. If you pass StackPolicyBody and StackPolicyURL, only
StackPolicyBody is used. If you want to update a stack policy during a stack update, specify an updated stack policy. For example,
you can include an updated stack policy to protect a new resource created in the stack update. If you do not specify a stack policy, the
current policy that is associated with the stack is unchanged.
Constraints: | ||
![]() | StackPolicyDuringUpdateBody |
Structure containing the temporary overriding stack policy body. If you pass StackPolicyDuringUpdateBody and
StackPolicyDuringUpdateURL, only StackPolicyDuringUpdateBody is used. If you want to update protected resources, specify a
temporary overriding stack policy during this update. If you do not specify a stack policy, the current policy that associated with the
stack will be used.
Constraints: | ||
![]() | StackPolicyDuringUpdateURL |
Location of a file containing the temporary overriding stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket
in the same region as the stack. If you pass StackPolicyDuringUpdateBody and StackPolicyDuringUpdateURL, only
StackPolicyDuringUpdateBody is used. If you want to update protected resources, specify a temporary overriding stack policy during
this update. If you do not specify a stack policy, the current policy that is associated with the stack will be used.
Constraints: | ||
![]() | StackPolicyURL |
Location of a file containing the updated stack policy. The URL must point to a policy (max size: 16KB) located in an S3 bucket in the same
region as the stack. If you pass StackPolicyBody and StackPolicyURL, only StackPolicyBody is used. If you want to
update a stack policy during a stack update, specify an updated stack policy. For example, you can include an updated stack policy to
protect a new resource created in the stack update. If you do not specify a stack policy, the current policy that is associated with the
stack is unchanged.
Constraints: | ||
![]() | TemplateBody |
Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation
User Guide.) Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.
Constraints: | ||
![]() | 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 Template Anatomy
in the AWS CloudFormation User Guide. Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only
TemplateBody is used.
Constraints: | ||
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | ||
![]() | UsePreviousTemplate | |||
![]() | WithCapabilities(array<String>[]()[][]) | Obsolete.
Adds elements to the Capabilities collection
| ||
![]() | WithCapabilities(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the Capabilities collection
| ||
![]() | WithNotificationARNs(array<String>[]()[][]) | Obsolete.
Adds elements to the NotificationARNs collection
| ||
![]() | WithNotificationARNs(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the NotificationARNs collection
| ||
![]() | WithParameters(array<Parameter>[]()[][]) | Obsolete.
Adds elements to the Parameters collection
| ||
![]() | WithParameters(IEnumerable<(Of <<'(Parameter>)>>)) | Obsolete.
Adds elements to the Parameters collection
| ||
![]() | WithStackName(String) | Obsolete.
Sets the StackName property
| ||
![]() | WithStackPolicyBody(String) | Obsolete.
Sets the StackPolicyBody property
| ||
![]() | WithStackPolicyDuringUpdateBody(String) | Obsolete.
Sets the StackPolicyDuringUpdateBody property
| ||
![]() | WithStackPolicyDuringUpdateURL(String) | Obsolete.
Sets the StackPolicyDuringUpdateURL property
| ||
![]() | WithStackPolicyURL(String) | Obsolete.
Sets the StackPolicyURL property
| ||
![]() | WithTemplateBody(String) | Obsolete.
Sets the TemplateBody property
| ||
![]() | WithTemplateURL(String) | Obsolete.
Sets the TemplateURL property
| ||
![]() | WithUsePreviousTemplate(Boolean) | Obsolete.
Sets the UsePreviousTemplate property
|

Object | ||
![]() | AmazonWebServiceRequest | |
![]() | UpdateStackRequest |