Interface LambdaDeploymentGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LambdaDeploymentGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.384Z")
@Stability(Stable)
public interface LambdaDeploymentGroupProps
extends software.amazon.jsii.JsiiSerializable
Construction properties for
LambdaDeploymentGroup
.
Example:
LambdaApplication application; Alias alias; CustomLambdaDeploymentConfig config = CustomLambdaDeploymentConfig.Builder.create(this, "CustomConfig") .type(CustomLambdaDeploymentConfigType.CANARY) .interval(Duration.minutes(1)) .percentage(5) .build(); LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment") .application(application) .alias(alias) .deploymentConfig(config) .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 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
invalid @link
#addAlarm
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.
-
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
-