Skip to content
v2.277.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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_code_deploy_blue_green_lifecycle_event_hooks = cdk.CfnCodeDeployBlueGreenLifecycleEventHooks(
    after_allow_test_traffic="afterAllowTestTraffic",
    after_allow_traffic="afterAllowTraffic",
    after_install="afterInstall",
    before_allow_traffic="beforeAllowTraffic",
    before_install="beforeInstall"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnCodeDeployBlueGreenLifecycleEventHooks cfnCodeDeployBlueGreenLifecycleEventHooks = CfnCodeDeployBlueGreenLifecycleEventHooks.builder()
        .afterAllowTestTraffic("afterAllowTestTraffic")
        .afterAllowTraffic("afterAllowTraffic")
        .afterInstall("afterInstall")
        .beforeAllowTraffic("beforeAllowTraffic")
        .beforeInstall("beforeInstall")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var cfnCodeDeployBlueGreenLifecycleEventHooks = new CfnCodeDeployBlueGreenLifecycleEventHooks {
    AfterAllowTestTraffic = "afterAllowTestTraffic",
    AfterAllowTraffic = "afterAllowTraffic",
    AfterInstall = "afterInstall",
    BeforeAllowTraffic = "beforeAllowTraffic",
    BeforeInstall = "beforeInstall"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

cfnCodeDeployBlueGreenLifecycleEventHooks := &CfnCodeDeployBlueGreenLifecycleEventHooks{
	AfterAllowTestTraffic: jsii.String("afterAllowTestTraffic"),
	AfterAllowTraffic: jsii.String("afterAllowTraffic"),
	AfterInstall: jsii.String("afterInstall"),
	BeforeAllowTraffic: jsii.String("beforeAllowTraffic"),
	BeforeInstall: jsii.String("beforeInstall"),
}

Properties ​

afterAllowTestTrafficoptionalstringafter_allow_test_trafficoptionalstrafterAllowTestTrafficoptionalStringAfterAllowTestTrafficoptionalstringAfterAllowTestTrafficoptional*string= none#
Function to use to run tasks after the test listener serves traffic to the replacement task set.
afterAllowTrafficoptionalstringafter_allow_trafficoptionalstrafterAllowTrafficoptionalStringAfterAllowTrafficoptionalstringAfterAllowTrafficoptional*string= none#
Function to use to run tasks after the second target group serves traffic to the replacement task set.
afterInstalloptionalstringafter_installoptionalstrafterInstalloptionalStringAfterInstalloptionalstringAfterInstalloptional*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.
beforeAllowTrafficoptionalstringbefore_allow_trafficoptionalstrbeforeAllowTrafficoptionalStringBeforeAllowTrafficoptionalstringBeforeAllowTrafficoptional*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.
beforeInstalloptionalstringbefore_installoptionalstrbeforeInstalloptionalStringBeforeInstalloptionalstringBeforeInstalloptional*string= none#
Function to use to run tasks before the replacement task set is created.