-
Notifications
You must be signed in to change notification settings - Fork 17
/
LambdaDeploymentConfigProps.go
31 lines (28 loc) · 1.21 KB
/
LambdaDeploymentConfigProps.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
package awscodedeploy
// Construction properties of `LambdaDeploymentConfig`.
//
// Example:
// var application lambdaApplication
// var alias alias
// config := codedeploy.NewLambdaDeploymentConfig(this, jsii.String("CustomConfig"), &LambdaDeploymentConfigProps{
// TrafficRouting: codedeploy.NewTimeBasedCanaryTrafficRouting(&TimeBasedCanaryTrafficRoutingProps{
// Interval: awscdk.Duration_Minutes(jsii.Number(15)),
// Percentage: jsii.Number(5),
// }),
// })
// deploymentGroup := codedeploy.NewLambdaDeploymentGroup(this, jsii.String("BlueGreenDeployment"), &LambdaDeploymentGroupProps{
// Application: Application,
// Alias: Alias,
// DeploymentConfig: config,
// })
//
type LambdaDeploymentConfigProps struct {
// The physical, human-readable name of the Deployment Configuration.
// Default: - automatically generated name.
//
DeploymentConfigName *string `field:"optional" json:"deploymentConfigName" yaml:"deploymentConfigName"`
// The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.
// Default: AllAtOnce.
//
TrafficRouting TrafficRouting `field:"optional" json:"trafficRouting" yaml:"trafficRouting"`
}