-
Notifications
You must be signed in to change notification settings - Fork 17
/
TrafficRoutingConfig.go
37 lines (34 loc) · 1.48 KB
/
TrafficRoutingConfig.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
package awscodedeploy
// Represents the structure to pass into the underlying CfnDeploymentConfig class.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// trafficRoutingConfig := &TrafficRoutingConfig{
// Type: jsii.String("type"),
//
// // the properties below are optional
// TimeBasedCanary: &CanaryTrafficRoutingConfig{
// CanaryInterval: jsii.Number(123),
// CanaryPercentage: jsii.Number(123),
// },
// TimeBasedLinear: &LinearTrafficRoutingConfig{
// LinearInterval: jsii.Number(123),
// LinearPercentage: jsii.Number(123),
// },
// }
//
type TrafficRoutingConfig struct {
// The type of traffic shifting ( `TimeBasedCanary` or `TimeBasedLinear` ) used by a deployment configuration.
Type *string `field:"required" json:"type" yaml:"type"`
// A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments.
// Default: none.
//
TimeBasedCanary *CanaryTrafficRoutingConfig `field:"optional" json:"timeBasedCanary" yaml:"timeBasedCanary"`
// A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment.
// Default: none.
//
TimeBasedLinear *LinearTrafficRoutingConfig `field:"optional" json:"timeBasedLinear" yaml:"timeBasedLinear"`
}