-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_CfnTrafficRouting.go
38 lines (35 loc) · 1.41 KB
/
awscdk_CfnTrafficRouting.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
// An experiment to bundle the entire CDK into a single module
package awscdk
// Type of the {@link CfnCodeDeployBlueGreenEcsAttributes.trafficRouting} 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"
//
// cfnTrafficRouting := &cfnTrafficRouting{
// prodTrafficRoute: &cfnTrafficRoute{
// logicalId: jsii.String("logicalId"),
// type: jsii.String("type"),
// },
// targetGroups: []*string{
// jsii.String("targetGroups"),
// },
// testTrafficRoute: &cfnTrafficRoute{
// logicalId: jsii.String("logicalId"),
// type: jsii.String("type"),
// },
// }
//
// Experimental.
type CfnTrafficRouting struct {
// The listener to be used by your load balancer to direct traffic to your target groups.
// Experimental.
ProdTrafficRoute *CfnTrafficRoute `field:"required" json:"prodTrafficRoute" yaml:"prodTrafficRoute"`
// The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
// Experimental.
TargetGroups *[]*string `field:"required" json:"targetGroups" yaml:"targetGroups"`
// The listener to be used by your load balancer to direct traffic to your target groups.
// Experimental.
TestTrafficRoute *CfnTrafficRoute `field:"required" json:"testTrafficRoute" yaml:"testTrafficRoute"`
}