CustomLambdaDeploymentConfigProps
- class aws_cdk.aws_codedeploy.CustomLambdaDeploymentConfigProps(*, interval, percentage, type, deployment_config_name=None)
Bases:
object
Properties of a reference to a CodeDeploy Lambda Deployment Configuration.
- Parameters:
interval (
Duration
) – 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.percentage (
Union
[int
,float
]) – 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.type (
CustomLambdaDeploymentConfigType
) – The type of deployment config, either CANARY or LINEAR.deployment_config_name (
Optional
[str
]) – 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
- ExampleMetadata:
infused
Example:
# application: codedeploy.LambdaApplication # alias: lambda.Alias config = codedeploy.CustomLambdaDeploymentConfig(self, "CustomConfig", type=codedeploy.CustomLambdaDeploymentConfigType.CANARY, interval=Duration.minutes(1), percentage=5 ) deployment_group = codedeploy.LambdaDeploymentGroup(self, "BlueGreenDeployment", application=application, alias=alias, deployment_config=config )
Attributes
- deployment_config_name
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
- interval
For LINEAR, how frequently additional traffic is shifted - For CANARY, how long to shift traffic before the full deployment.
- Type:
The interval, in number of minutes
- percentage
For LINEAR, the percentage to shift every interval - For CANARY, the percentage to shift until the interval passes, before the full deployment.
- Type:
The integer percentage of traffic to shift
- type
The type of deployment config, either CANARY or LINEAR.