interface CfnCodeDeployBlueGreenLifecycleEventHooks
Language | Type name |
---|---|
.NET | Amazon.CDK.CfnCodeDeployBlueGreenLifecycleEventHooks |
Java | software.amazon.awscdk.core.CfnCodeDeployBlueGreenLifecycleEventHooks |
Python | aws_cdk.core.CfnCodeDeployBlueGreenLifecycleEventHooks |
TypeScript (source) | @aws-cdk/core » CfnCodeDeployBlueGreenLifecycleEventHooks |
Lifecycle events for blue-green deployments.
The type of the {@link CfnCodeDeployBlueGreenHookProps.lifecycleEventHooks} property.
Example
// 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/core';
const cfnCodeDeployBlueGreenLifecycleEventHooks: cdk.CfnCodeDeployBlueGreenLifecycleEventHooks = {
afterAllowTestTraffic: 'afterAllowTestTraffic',
afterAllowTraffic: 'afterAllowTraffic',
afterInstall: 'afterInstall',
beforeAllowTraffic: 'beforeAllowTraffic',
beforeInstall: 'beforeInstall',
};
Properties
Name | Type | Description |
---|---|---|
after | string | Function to use to run tasks after the test listener serves traffic to the replacement task set. |
after | string | Function to use to run tasks after the second target group serves traffic to the replacement task set. |
after | string | Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it. |
before | string | 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. |
before | string | Function to use to run tasks before the replacement task set is created. |
afterAllowTestTraffic?
Type:
string
(optional, default: none)
Function to use to run tasks after the test listener serves traffic to the replacement task set.
afterAllowTraffic?
Type:
string
(optional, default: none)
Function to use to run tasks after the second target group serves traffic to the replacement task set.
afterInstall?
Type:
string
(optional, default: none)
Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it.
beforeAllowTraffic?
Type:
string
(optional, default: 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.
beforeInstall?
Type:
string
(optional, default: none)
Function to use to run tasks before the replacement task set is created.