Interface LambdaDeploymentGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LambdaDeploymentGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:55.087Z")
@Stability(Stable)
public interface LambdaDeploymentGroupProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for
LambdaDeploymentGroup
.
Example:
LambdaApplication myApplication; Function func; Version version = func.getCurrentVersion(); Alias version1Alias = Alias.Builder.create(this, "alias") .aliasName("prod") .version(version) .build(); LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment") .application(myApplication) // optional property: one will be created for you if not provided .alias(version1Alias) .deploymentConfig(LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forLambdaDeploymentGroupProps
static final class
An implementation forLambdaDeploymentGroupProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The CloudWatch alarms associated with this Deployment Group.getAlias()
Lambda Alias to shift traffic.default ILambdaApplication
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.default AutoRollbackConfig
The auto-rollback configuration for this Deployment Group.default ILambdaDeploymentConfig
The Deployment Configuration this Deployment Group uses.default String
The physical, human-readable name of the CodeDeploy Deployment Group.default Boolean
Whether to skip the step of checking CloudWatch alarms during the deployment process.default Boolean
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.default IFunction
The Lambda function to run after traffic routing starts.default IFunction
The Lambda function to run before traffic routing starts.default IRole
getRole()
The service Role of this Deployment Group.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlias
Lambda Alias to shift traffic. Updating the version of the alias will trigger a CodeDeploy deployment.[disable-awslint:ref-via-interface] since we need to modify the alias CFN resource update policy
-
getAlarms
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.Default: []
- See Also:
-
getApplication
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.Default: - One will be created for you.
-
getAutoRollback
The auto-rollback configuration for this Deployment Group.Default: - default AutoRollbackConfig.
-
getDeploymentConfig
The Deployment Configuration this Deployment Group uses.Default: LambdaDeploymentConfig.CANARY_10PERCENT_5MINUTES
-
getDeploymentGroupName
The physical, human-readable name of the CodeDeploy Deployment Group.Default: - An auto-generated name will be used.
-
getIgnoreAlarmConfiguration
Whether to skip the step of checking CloudWatch alarms during the deployment process.Default: - false
-
getIgnorePollAlarmsFailure
Whether to continue a deployment even if fetching the alarm status from CloudWatch failed.Default: false
-
getPostHook
The Lambda function to run after traffic routing starts.Default: - None.
-
getPreHook
The Lambda function to run before traffic routing starts.Default: - None.
-
getRole
The service Role of this Deployment Group.Default: - A new Role will be created.
-
builder
- Returns:
- a
LambdaDeploymentGroupProps.Builder
ofLambdaDeploymentGroupProps
-