Skip to content
v2.273.0

CfnCodeDeployBlueGreenLifecycleEventHooks Struct ​

Lifecycle events for blue-green deployments.

The type of the CfnCodeDeployBlueGreenHookProps.lifecycleEventHooks property.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnCodeDeployBlueGreenLifecycleEventHooks: cdk.CfnCodeDeployBlueGreenLifecycleEventHooks = {
  afterAllowTestTraffic: 'afterAllowTestTraffic',
  afterAllowTraffic: 'afterAllowTraffic',
  afterInstall: 'afterInstall',
  beforeAllowTraffic: 'beforeAllowTraffic',
  beforeInstall: 'beforeInstall',
};

Properties ​

afterAllowTestTrafficstringafter_allow_test_trafficstrafterAllowTestTrafficStringAfterAllowTestTrafficstringAfterAllowTestTraffic*string= none#
Function to use to run tasks after the test listener serves traffic to the replacement task set.
afterAllowTrafficstringafter_allow_trafficstrafterAllowTrafficStringAfterAllowTrafficstringAfterAllowTraffic*string= none#
Function to use to run tasks after the second target group serves traffic to the replacement task set.
afterInstallstringafter_installstrafterInstallStringAfterInstallstringAfterInstall*string= none#
Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it.
beforeAllowTrafficstringbefore_allow_trafficstrbeforeAllowTrafficStringBeforeAllowTrafficstringBeforeAllowTraffic*string= none#
Function to use to run tasks after the second target group is associated with the replacement task set, but before traffic is shifted to the replacement task set.
beforeInstallstringbefore_installstrbeforeInstallStringBeforeInstallstringBeforeInstall*string= none#
Function to use to run tasks before the replacement task set is created.