public static final class CustomLambdaDeploymentConfig.Builder
extends java.lang.Object
CustomLambdaDeploymentConfig
.Modifier and Type | Method and Description |
---|---|
CustomLambdaDeploymentConfig |
build() |
static CustomLambdaDeploymentConfig.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
CustomLambdaDeploymentConfig.Builder |
deploymentConfigName(java.lang.String deploymentConfigName)
The verbatim name of the deployment config.
|
CustomLambdaDeploymentConfig.Builder |
interval(Duration interval)
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.
|
CustomLambdaDeploymentConfig.Builder |
percentage(java.lang.Number percentage)
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.
|
CustomLambdaDeploymentConfig.Builder |
type(CustomLambdaDeploymentConfigType type)
The type of deployment config, either CANARY or LINEAR.
|
public static CustomLambdaDeploymentConfig.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.CustomLambdaDeploymentConfig.Builder
.public CustomLambdaDeploymentConfig.Builder interval(Duration interval)
interval
- 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. This parameter is required.this
public CustomLambdaDeploymentConfig.Builder percentage(java.lang.Number percentage)
percentage
- 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. This parameter is required.this
public CustomLambdaDeploymentConfig.Builder type(CustomLambdaDeploymentConfigType type)
type
- The type of deployment config, either CANARY or LINEAR. This parameter is required.this
public CustomLambdaDeploymentConfig.Builder deploymentConfigName(java.lang.String deploymentConfigName)
Must be unique per account/region. Other parameters cannot be updated if this name is provided.
Default: - automatically generated name
deploymentConfigName
- The verbatim name of the deployment config. This parameter is required.this
public CustomLambdaDeploymentConfig build()