-
Notifications
You must be signed in to change notification settings - Fork 17
/
CustomLambdaDeploymentConfigProps.go
44 lines (41 loc) · 1.96 KB
/
CustomLambdaDeploymentConfigProps.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
38
39
40
41
42
43
package awscodedeploy
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties of a reference to a CodeDeploy Lambda Deployment Configuration.
//
// 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"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// customLambdaDeploymentConfigProps := &CustomLambdaDeploymentConfigProps{
// Interval: cdk.Duration_Minutes(jsii.Number(30)),
// Percentage: jsii.Number(123),
// Type: awscdk.Aws_codedeploy.CustomLambdaDeploymentConfigType_CANARY,
//
// // the properties below are optional
// DeploymentConfigName: jsii.String("deploymentConfigName"),
// }
//
// Deprecated: Use `LambdaDeploymentConfig`.
type CustomLambdaDeploymentConfigProps struct {
// The interval, in number of minutes: - For LINEAR, how frequently additional traffic is shifted - For CANARY, how long to shift traffic before the full deployment.
// Deprecated: Use `LambdaDeploymentConfig`.
Interval awscdk.Duration `field:"required" json:"interval" yaml:"interval"`
// The integer percentage of traffic to shift: - For LINEAR, the percentage to shift every interval - For CANARY, the percentage to shift until the interval passes, before the full deployment.
// Deprecated: Use `LambdaDeploymentConfig`.
Percentage *float64 `field:"required" json:"percentage" yaml:"percentage"`
// The type of deployment config, either CANARY or LINEAR.
// Deprecated: Use `LambdaDeploymentConfig`.
Type CustomLambdaDeploymentConfigType `field:"required" json:"type" yaml:"type"`
// The verbatim name of the deployment config.
//
// Must be unique per account/region.
// Other parameters cannot be updated if this name is provided.
// Default: - automatically generated name.
//
// Deprecated: Use `LambdaDeploymentConfig`.
DeploymentConfigName *string `field:"optional" json:"deploymentConfigName" yaml:"deploymentConfigName"`
}