AWS SDK for .NET Documentation
UpdateStackRequest Class
AmazonAmazon.CloudFormation.ModelUpdateStackRequest Did this page help you?   Yes   No    Tell us about it...
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.

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 .

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.

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 .

Declaration Syntax
C#
public class UpdateStackRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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.
Note:
Must contain only alphanumeric characters (case sensitive) and start with an alpha character. Maximum length of the name is 255 characters.

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:

Length
1 - 16384


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:

Length
1 - 16384


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:

Length
1 - 1350


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:

Length
1 - 1350


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:

Length
1 -


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:

Length
1 - 1024


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

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 UpdateStackRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)