-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnTrafficRouting.go
33 lines (30 loc) · 1.27 KB
/
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
package awscdk
// Type of the `CfnCodeDeployBlueGreenEcsAttributes.trafficRouting` property.
//
// Example:
// // 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"
//
// 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"),
// },
// }
//
type CfnTrafficRouting struct {
// The listener to be used by your load balancer to direct traffic to your target groups.
ProdTrafficRoute *CfnTrafficRoute `field:"required" json:"prodTrafficRoute" yaml:"prodTrafficRoute"`
// The logical IDs of the blue and green, respectively, AWS::ElasticLoadBalancingV2::TargetGroup target groups.
TargetGroups *[]*string `field:"required" json:"targetGroups" yaml:"targetGroups"`
// The listener to be used by your load balancer to direct traffic to your target groups.
TestTrafficRoute *CfnTrafficRoute `field:"required" json:"testTrafficRoute" yaml:"testTrafficRoute"`
}