25 lines
773 B
TypeScript
25 lines
773 B
TypeScript
/**
|
|
* The configuration for automatically rolling back deployments in a given Deployment Group.
|
|
*/
|
|
export interface AutoRollbackConfig {
|
|
/**
|
|
* Whether to automatically roll back a deployment that fails.
|
|
*
|
|
* @default true
|
|
*/
|
|
readonly failedDeployment?: boolean;
|
|
/**
|
|
* Whether to automatically roll back a deployment that was manually stopped.
|
|
*
|
|
* @default false
|
|
*/
|
|
readonly stoppedDeployment?: boolean;
|
|
/**
|
|
* Whether to automatically roll back a deployment during which one of the configured
|
|
* CloudWatch alarms for this Deployment Group went off.
|
|
*
|
|
* @default true if you've provided any Alarms with the `alarms` property, false otherwise
|
|
*/
|
|
readonly deploymentInAlarm?: boolean;
|
|
}
|