Skip to content
v2.274.0

AutoRollbackConfigurationProperty Struct ​

The AutoRollbackConfiguration property type configures automatic rollback for an AWS CodeDeploy deployment group when a deployment is not completed successfully.

For more information, see Automatic Rollbacks in the AWS CodeDeploy User Guide .

AutoRollbackConfiguration is a property of the DeploymentGroup resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const autoRollbackConfigurationProperty: codedeploy.CfnDeploymentGroup.AutoRollbackConfigurationProperty = {
  enabled: false,
  events: ['events'],
};

Properties ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{}#
Indicates whether a defined automatic rollback configuration is currently enabled.
eventsoptionalstring[]eventsoptionaltyping.List[str]eventsoptionalList<String>Eventsoptionalstring[]Eventsoptional*[]*string#
The event type or types that trigger a rollback.

Valid values are DEPLOYMENT_FAILURE , DEPLOYMENT_STOP_ON_ALARM , or DEPLOYMENT_STOP_ON_REQUEST .