-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_CfnTrafficRoutingConfig.go
36 lines (33 loc) · 1.48 KB
/
awscdk_CfnTrafficRoutingConfig.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
// Version 2 of the AWS Cloud Development Kit library
package awscdk
// Traffic routing configuration settings.
//
// The type of the {@link CfnCodeDeployBlueGreenHookProps.trafficRoutingConfig} 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"
//
// cfnTrafficRoutingConfig := &cfnTrafficRoutingConfig{
// type: cdk.cfnTrafficRoutingType_ALL_AT_ONCE,
//
// // the properties below are optional
// timeBasedCanary: &cfnTrafficRoutingTimeBasedCanary{
// bakeTimeMins: jsii.Number(123),
// stepPercentage: jsii.Number(123),
// },
// timeBasedLinear: &cfnTrafficRoutingTimeBasedLinear{
// bakeTimeMins: jsii.Number(123),
// stepPercentage: jsii.Number(123),
// },
// }
//
type CfnTrafficRoutingConfig struct {
// The type of traffic shifting used by the blue-green deployment configuration.
Type CfnTrafficRoutingType `field:"required" json:"type" yaml:"type"`
// The configuration for traffic routing when {@link type} is {@link CfnTrafficRoutingType.TIME_BASED_CANARY}.
TimeBasedCanary *CfnTrafficRoutingTimeBasedCanary `field:"optional" json:"timeBasedCanary" yaml:"timeBasedCanary"`
// The configuration for traffic routing when {@link type} is {@link CfnTrafficRoutingType.TIME_BASED_LINEAR}.
TimeBasedLinear *CfnTrafficRoutingTimeBasedLinear `field:"optional" json:"timeBasedLinear" yaml:"timeBasedLinear"`
}