-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_CfnCodeDeployBlueGreenLifecycleEventHooks.go
40 lines (37 loc) · 1.98 KB
/
awscdk_CfnCodeDeployBlueGreenLifecycleEventHooks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// An experiment to bundle the entire CDK into a single module
package awscdk
// 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 monocdk "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"),
// }
//
// Experimental.
type CfnCodeDeployBlueGreenLifecycleEventHooks struct {
// Function to use to run tasks after the test listener serves traffic to the replacement task set.
// Experimental.
AfterAllowTestTraffic *string `field:"optional" json:"afterAllowTestTraffic" yaml:"afterAllowTestTraffic"`
// Function to use to run tasks after the second target group serves traffic to the replacement task set.
// Experimental.
AfterAllowTraffic *string `field:"optional" json:"afterAllowTraffic" yaml:"afterAllowTraffic"`
// Function to use to run tasks after the replacement task set is created and one of the target groups is associated with it.
// Experimental.
AfterInstall *string `field:"optional" json:"afterInstall" yaml:"afterInstall"`
// 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.
// Experimental.
BeforeAllowTraffic *string `field:"optional" json:"beforeAllowTraffic" yaml:"beforeAllowTraffic"`
// Function to use to run tasks before the replacement task set is created.
// Experimental.
BeforeInstall *string `field:"optional" json:"beforeInstall" yaml:"beforeInstall"`
}