CustomLambdaDeploymentConfigProps Struct
Properties of a reference to a CodeDeploy Lambda Deployment Configuration.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const customLambdaDeploymentConfigProps: codedeploy.CustomLambdaDeploymentConfigProps = {
interval: cdk.Duration.minutes(30),
percentage: 123,
type: codedeploy.CustomLambdaDeploymentConfigType.CANARY,
// the properties below are optional
deploymentConfigName: 'deploymentConfigName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_codedeploy as codedeploy
custom_lambda_deployment_config_props = codedeploy.CustomLambdaDeploymentConfigProps(
interval=cdk.Duration.minutes(30),
percentage=123,
type=codedeploy.CustomLambdaDeploymentConfigType.CANARY,
# the properties below are optional
deployment_config_name="deploymentConfigName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.codedeploy.*;
CustomLambdaDeploymentConfigProps customLambdaDeploymentConfigProps = CustomLambdaDeploymentConfigProps.builder()
.interval(Duration.minutes(30))
.percentage(123)
.type(CustomLambdaDeploymentConfigType.CANARY)
// the properties below are optional
.deploymentConfigName("deploymentConfigName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.CodeDeploy;
var customLambdaDeploymentConfigProps = new CustomLambdaDeploymentConfigProps {
Interval = Duration.Minutes(30),
Percentage = 123,
Type = CustomLambdaDeploymentConfigType.CANARY,
// the properties below are optional
DeploymentConfigName = "deploymentConfigName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"),
}
Properties
deploymentConfigNameoptionalstringdeployment_config_nameoptionalstrdeploymentConfigNameoptionalStringDeploymentConfigNameoptionalstringDeploymentConfigNameoptional*stringdeprecated#Use `LambdaDeploymentConfig`
Default: automatically generated name
Must be unique per account/region. Other parameters cannot be updated if this name is provided.
Use `LambdaDeploymentConfig`
percentagenumberpercentageint | floatpercentageNumberPercentagedoublePercentage*float64requireddeprecated#Use `LambdaDeploymentConfig`
typeCustomLambdaDeploymentConfigTypetypeCustomLambdaDeploymentConfigTypetypeCustomLambdaDeploymentConfigTypeTypeCustomLambdaDeploymentConfigTypeTypeCustomLambdaDeploymentConfigTyperequireddeprecated#Use `LambdaDeploymentConfig`