Class CfnDeploymentGroup.AutoRollbackConfigurationProperty
The AutoRollbackConfiguration
property type configures automatic rollback for an AWS CodeDeploy deployment group when a deployment is not completed successfully.
Inheritance
System.Object
CfnDeploymentGroup.AutoRollbackConfigurationProperty
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AutoRollbackConfigurationProperty : Object, CfnDeploymentGroup.IAutoRollbackConfigurationProperty
Syntax (vb)
Public Class AutoRollbackConfigurationProperty
Inherits Object
Implements CfnDeploymentGroup.IAutoRollbackConfigurationProperty
Remarks
For more information, see Automatic Rollbacks in the AWS CodeDeploy User Guide .
AutoRollbackConfiguration
is a property of the DeploymentGroup resource.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var autoRollbackConfigurationProperty = new AutoRollbackConfigurationProperty {
Enabled = false,
Events = new [] { "events" }
};
Synopsis
Constructors
AutoRollbackConfigurationProperty() |
Properties
Enabled | Indicates whether a defined automatic rollback configuration is currently enabled. |
Events | The event type or types that trigger a rollback. |
Constructors
AutoRollbackConfigurationProperty()
public AutoRollbackConfigurationProperty()
Properties
Enabled
Indicates whether a defined automatic rollback configuration is currently enabled.
public object Enabled { get; set; }
Property Value
System.Object
Remarks
Events
The event type or types that trigger a rollback.
public string[] Events { get; set; }
Property Value
System.String[]
Remarks
Valid values are DEPLOYMENT_FAILURE
, DEPLOYMENT_STOP_ON_ALARM
, or DEPLOYMENT_STOP_ON_REQUEST
.