public static final class LambdaDeploymentGroupProps.Builder extends Object
LambdaDeploymentGroupProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LambdaDeploymentGroupProps |
build()
Builds the configured instance.
|
LambdaDeploymentGroupProps.Builder |
withAlarms(List<software.amazon.awscdk.services.cloudwatch.Alarm> value)
Sets the value of Alarms
|
LambdaDeploymentGroupProps.Builder |
withAlias(software.amazon.awscdk.services.lambda.Alias value)
Sets the value of Alias
|
LambdaDeploymentGroupProps.Builder |
withApplication(LambdaApplication value)
Sets the value of Application
|
LambdaDeploymentGroupProps.Builder |
withAutoRollback(AutoRollbackConfig value)
Sets the value of AutoRollback
|
LambdaDeploymentGroupProps.Builder |
withDeploymentConfig(ILambdaDeploymentConfig value)
Sets the value of DeploymentConfig
|
LambdaDeploymentGroupProps.Builder |
withDeploymentGroupName(String value)
Sets the value of DeploymentGroupName
|
LambdaDeploymentGroupProps.Builder |
withIgnorePollAlarmsFailure(Boolean value)
Sets the value of IgnorePollAlarmsFailure
|
LambdaDeploymentGroupProps.Builder |
withPostHook(software.amazon.awscdk.services.lambda.IFunction value)
Sets the value of PostHook
|
LambdaDeploymentGroupProps.Builder |
withPreHook(software.amazon.awscdk.services.lambda.IFunction value)
Sets the value of PreHook
|
LambdaDeploymentGroupProps.Builder |
withRole(software.amazon.awscdk.services.iam.Role value)
Sets the value of Role
|
public LambdaDeploymentGroupProps.Builder withAlias(software.amazon.awscdk.services.lambda.Alias value)
value - Lambda Alias to shift traffic. Updating the version
of the alias will trigger a CodeDeploy deployment.thispublic LambdaDeploymentGroupProps.Builder withAlarms(@Nullable List<software.amazon.awscdk.services.cloudwatch.Alarm> value)
value - The CloudWatch alarms associated with this Deployment Group.
CodeDeploy will stop (and optionally roll back)
a deployment if during it any of the alarms trigger.
Alarms can also be added after the Deployment Group is created using the #addAlarm method.thispublic LambdaDeploymentGroupProps.Builder withApplication(@Nullable LambdaApplication value)
value - The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.thispublic LambdaDeploymentGroupProps.Builder withAutoRollback(@Nullable AutoRollbackConfig value)
value - The auto-rollback configuration for this Deployment Group.thispublic LambdaDeploymentGroupProps.Builder withDeploymentConfig(@Nullable ILambdaDeploymentConfig value)
value - The Deployment Configuration this Deployment Group uses.thispublic LambdaDeploymentGroupProps.Builder withDeploymentGroupName(@Nullable String value)
value - The physical, human-readable name of the CodeDeploy Deployment Group.thispublic LambdaDeploymentGroupProps.Builder withIgnorePollAlarmsFailure(@Nullable Boolean value)
value - Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.thispublic LambdaDeploymentGroupProps.Builder withPostHook(@Nullable software.amazon.awscdk.services.lambda.IFunction value)
value - The Lambda function to run after traffic routing starts.thispublic LambdaDeploymentGroupProps.Builder withPreHook(@Nullable software.amazon.awscdk.services.lambda.IFunction value)
value - The Lambda function to run before traffic routing starts.thispublic LambdaDeploymentGroupProps.Builder withRole(@Nullable software.amazon.awscdk.services.iam.Role value)
value - The service Role of this Deployment Group.thispublic LambdaDeploymentGroupProps build()
LambdaDeploymentGroupPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.