Class LambdaDeploymentGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroup
- All Implemented Interfaces:
IResource,ILambdaDeploymentGroup,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.951Z")
@Stability(Stable)
public class LambdaDeploymentGroup
extends Resource
implements ILambdaDeploymentGroup
Example:
LambdaApplication application;
Alias alias;
LambdaDeploymentConfig config = LambdaDeploymentConfig.Builder.create(this, "CustomConfig")
.trafficRouting(TimeBasedCanaryTrafficRouting.Builder.create()
.interval(Duration.minutes(15))
.percentage(5)
.build())
.build();
LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment")
.application(application)
.alias(alias)
.deploymentConfig(config)
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.ILambdaDeploymentGroup
ILambdaDeploymentGroup.Jsii$Default, ILambdaDeploymentGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLambdaDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedLambdaDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) LambdaDeploymentGroup(software.constructs.Construct scope, String id, LambdaDeploymentGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidAssociates an additional alarm with this Deployment Group.voidaddPostHook(IFunction postHook) Associate a function to run after deployment completes.voidaddPreHook(IFunction preHook) Associate a function to run before deployment begins.static ILambdaDeploymentGroupfromLambdaDeploymentGroupAttributes(software.constructs.Construct scope, String id, LambdaDeploymentGroupAttributes attrs) Import an Lambda Deployment Group defined either outside the CDK app, or in a different AWS region.The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.The Deployment Configuration this Group uses.The ARN of the Deployment Group.The name of the Deployment Group.getRole()The service Role of this Deployment Group.Grant a principal permission to codedeploy:PutLifecycleEventHookExecutionStatus on this deployment group resource.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
LambdaDeploymentGroup
protected LambdaDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) -
LambdaDeploymentGroup
protected LambdaDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
LambdaDeploymentGroup
@Stability(Stable) public LambdaDeploymentGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LambdaDeploymentGroupProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromLambdaDeploymentGroupAttributes
@Stability(Stable) @NotNull public static ILambdaDeploymentGroup fromLambdaDeploymentGroupAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LambdaDeploymentGroupAttributes attrs) Import an Lambda Deployment Group defined either outside the CDK app, or in a different AWS region.Account and region for the DeploymentGroup are taken from the application.
- Parameters:
scope- the parent Construct for this new Construct. This parameter is required.id- the logical ID of this new Construct. This parameter is required.attrs- the properties of the referenced Deployment Group. This parameter is required.- Returns:
- a Construct representing a reference to an existing Deployment Group
-
addAlarm
Associates an additional alarm with this Deployment Group.- Parameters:
alarm- the alarm to associate with this Deployment Group. This parameter is required.
-
addPostHook
Associate a function to run after deployment completes.- Parameters:
postHook- function to run after deployment completes. This parameter is required.
-
addPreHook
Associate a function to run before deployment begins.- Parameters:
preHook- function to run before deployment beings. This parameter is required.
-
grantPutLifecycleEventHookExecutionStatus
@Stability(Stable) @NotNull public Grant grantPutLifecycleEventHookExecutionStatus(@NotNull IGrantable grantee) Grant a principal permission to codedeploy:PutLifecycleEventHookExecutionStatus on this deployment group resource.- Parameters:
grantee- to grant permission to. This parameter is required.
-
getApplication
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.- Specified by:
getApplicationin interfaceILambdaDeploymentGroup
-
getDeploymentConfig
The Deployment Configuration this Group uses.- Specified by:
getDeploymentConfigin interfaceILambdaDeploymentGroup
-
getDeploymentGroupArn
The ARN of the Deployment Group.- Specified by:
getDeploymentGroupArnin interfaceILambdaDeploymentGroup
-
getDeploymentGroupName
The name of the Deployment Group.- Specified by:
getDeploymentGroupNamein interfaceILambdaDeploymentGroup
-
getRole
The service Role of this Deployment Group.
-