CfnCodeDeployBlueGreenLifecycleEventHooks
- class aws_cdk.core.CfnCodeDeployBlueGreenLifecycleEventHooks(*, after_allow_test_traffic=None, after_allow_traffic=None, after_install=None, before_allow_traffic=None, before_install=None)
- Bases: - object- Lifecycle events for blue-green deployments. - The type of the {@link CfnCodeDeployBlueGreenHookProps.lifecycleEventHooks} property. - Parameters:
- after_allow_test_traffic ( - Optional[- str]) – Function to use to run tasks after the test listener serves traffic to the replacement task set. Default: - none
- after_allow_traffic ( - Optional[- str]) – Function to use to run tasks after the second target group serves traffic to the replacement task set. Default: - none
- after_install ( - Optional[- str]) – Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it. Default: - none
- before_allow_traffic ( - Optional[- str]) – 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. Default: - none
- before_install ( - Optional[- str]) – Function to use to run tasks before the replacement task set is created. Default: - none
 
- ExampleMetadata:
- fixture=_generated 
 - Example: - # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.core 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" ) - Attributes - after_allow_test_traffic
- Function to use to run tasks after the test listener serves traffic to the replacement task set. - Default:
- none 
 
 
 - after_allow_traffic
- Function to use to run tasks after the second target group serves traffic to the replacement task set. - Default:
- none 
 
 
 - after_install
- Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it. - Default:
- none 
 
 
 - before_allow_traffic
- 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. - Default:
- none 
 
 
 - before_install
- Function to use to run tasks before the replacement task set is created. - Default:
- none