/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFormation.Model { /// /// Container for the parameters to the RollbackStack operation. /// When specifying RollbackStack, you preserve the state of previously provisioned /// resources when an operation fails. You can check the status of the stack through the /// DescribeStacks operation. /// /// /// /// Rolls back the specified stack to the last known stable state from CREATE_FAILED /// or UPDATE_FAILED stack statuses. /// /// /// /// This operation will delete a stack if it doesn't contain a last known stable state. /// A last known stable state includes any status in a *_COMPLETE. This includes /// the following stack statuses. /// /// /// public partial class RollbackStackRequest : AmazonCloudFormationRequest { private string _clientRequestToken; private bool? _retainExceptOnCreate; private string _roleARN; private string _stackName; /// /// Gets and sets the property ClientRequestToken. /// /// A unique identifier for this RollbackStack request. /// /// [AWSProperty(Min=1, Max=128)] public string ClientRequestToken { get { return this._clientRequestToken; } set { this._clientRequestToken = value; } } // Check to see if ClientRequestToken property is set internal bool IsSetClientRequestToken() { return this._clientRequestToken != null; } /// /// Gets and sets the property RetainExceptOnCreate. /// /// This deletion policy deletes newly created resources, but retains existing resources, /// when a stack operation is rolled back. This ensures new, empty, and unused resources /// are deleted, while critical resources and their data are retained. RetainExceptOnCreate /// can be specified for any resource that supports the /// DeletionPolicy attribute. /// /// public bool RetainExceptOnCreate { get { return this._retainExceptOnCreate.GetValueOrDefault(); } set { this._retainExceptOnCreate = value; } } // Check to see if RetainExceptOnCreate property is set internal bool IsSetRetainExceptOnCreate() { return this._retainExceptOnCreate.HasValue; } /// /// Gets and sets the property RoleARN. /// /// The Amazon Resource Name (ARN) of an Identity and Access Management role that CloudFormation /// assumes to rollback the stack. /// /// [AWSProperty(Min=20, Max=2048)] public string RoleARN { get { return this._roleARN; } set { this._roleARN = value; } } // Check to see if RoleARN property is set internal bool IsSetRoleARN() { return this._roleARN != null; } /// /// Gets and sets the property StackName. /// /// The name that's associated with the stack. /// /// [AWSProperty(Required=true, Min=1)] public string StackName { get { return this._stackName; } set { this._stackName = value; } } // Check to see if StackName property is set internal bool IsSetStackName() { return this._stackName != null; } } }