37 lines
2.0 KiB
TypeScript
37 lines
2.0 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { Stack, IEnvironmentAware } from '../../../core';
|
|
import type { IAlarmRef } from '../../../interfaces/generated/aws-cloudwatch-interfaces.generated';
|
|
import type { IBaseDeploymentConfig, IBindableDeploymentConfig } from '../base-deployment-config';
|
|
import type { CfnDeploymentGroup } from '../codedeploy.generated';
|
|
import type { AutoRollbackConfig } from '../rollback-config';
|
|
export declare function arnForApplication(stack: Stack, applicationName: string): string;
|
|
export declare function nameFromDeploymentGroupArn(deploymentGroupArn: string): string;
|
|
export declare function arnForDeploymentConfig(name: string, resource?: IEnvironmentAware): string;
|
|
export interface renderAlarmConfigProps {
|
|
/**
|
|
* Array of Cloudwatch alarms
|
|
*/
|
|
readonly alarms: IAlarmRef[];
|
|
/**
|
|
* Whether to ignore failure to fetch the status of alarms from CloudWatch
|
|
*/
|
|
readonly ignorePollAlarmFailure?: boolean;
|
|
/**
|
|
* When no alarms are provided on an update, removes previously existing alarms from the construct.
|
|
* @see {@link https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/cx-api/FEATURE_FLAGS.md#aws-cdkaws-codedeployremovealarmsfromdeploymentgroup}
|
|
*
|
|
* @default true
|
|
*/
|
|
readonly removeAlarms?: boolean;
|
|
/**
|
|
* Whether to skip the step of checking CloudWatch alarms during the deployment process
|
|
*
|
|
* @default false
|
|
*/
|
|
ignoreAlarmConfiguration?: boolean;
|
|
}
|
|
export declare function renderAlarmConfiguration(props: renderAlarmConfigProps): CfnDeploymentGroup.AlarmConfigurationProperty | undefined;
|
|
export declare function deploymentConfig(name: string): IBaseDeploymentConfig & IBindableDeploymentConfig;
|
|
export declare function renderAutoRollbackConfiguration(scope: Construct, alarms: IAlarmRef[], autoRollbackConfig?: AutoRollbackConfig): CfnDeploymentGroup.AutoRollbackConfigurationProperty | undefined;
|
|
export declare function validateName(type: 'Application' | 'Deployment group' | 'Deployment config', name: string): string[];
|