LambdaDeploymentConfigProps

class aws_cdk.aws_codedeploy.LambdaDeploymentConfigProps(*, deployment_config_name=None, traffic_routing=None)

Bases: BaseDeploymentConfigOptions

Construction properties of LambdaDeploymentConfig.

Parameters:
  • deployment_config_name (Optional[str]) – The physical, human-readable name of the Deployment Configuration. Default: - automatically generated name

  • traffic_routing (Optional[TrafficRouting]) – The configuration that specifies how traffic is shifted from the ‘blue’ target group to the ‘green’ target group during a deployment. Default: AllAtOnce

ExampleMetadata:

infused

Example:

# application: codedeploy.LambdaApplication
# alias: lambda.Alias
config = codedeploy.LambdaDeploymentConfig(self, "CustomConfig",
    traffic_routing=codedeploy.TimeBasedCanaryTrafficRouting(
        interval=Duration.minutes(15),
        percentage=5
    )
)
deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment",
    application=application,
    alias=alias,
    deployment_config=config
)

Attributes

deployment_config_name

The physical, human-readable name of the Deployment Configuration.

Default:
  • automatically generated name

traffic_routing

The configuration that specifies how traffic is shifted from the ‘blue’ target group to the ‘green’ target group during a deployment.

Default:

AllAtOnce