Class LambdaDeploymentGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.codedeploy.LambdaDeploymentGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,ILambdaDeploymentGroup
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.382Z")
@Stability(Stable)
public class LambdaDeploymentGroup
extends Resource
implements ILambdaDeploymentGroup
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
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codedeploy.ILambdaDeploymentGroup
ILambdaDeploymentGroup.Jsii$Default, ILambdaDeploymentGroup.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
LambdaDeploymentGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
LambdaDeploymentGroup
(software.amazon.jsii.JsiiObjectRef objRef) LambdaDeploymentGroup
(software.constructs.Construct scope, String id, LambdaDeploymentGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Associates an additional alarm with this Deployment Group.void
addPostHook
(IFunction postHook) Associate a function to run after deployment completes.void
addPreHook
(IFunction preHook) Associate a function to run before deployment begins.static ILambdaDeploymentGroup
fromLambdaDeploymentGroupAttributes
(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 this Deployment Group.The physical name of the CodeDeploy Deployment Group.getRole()
Grant a principal permission to codedeploy:PutLifecycleEventHookExecutionStatus on this deployment group resource.validate()
Validate the current construct.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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.- 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.
-
validate
Validate the current construct.This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
-
getApplication
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.- Specified by:
getApplication
in interfaceILambdaDeploymentGroup
-
getDeploymentConfig
The Deployment Configuration this Group uses.- Specified by:
getDeploymentConfig
in interfaceILambdaDeploymentGroup
-
getDeploymentGroupArn
The ARN of this Deployment Group.- Specified by:
getDeploymentGroupArn
in interfaceILambdaDeploymentGroup
-
getDeploymentGroupName
The physical name of the CodeDeploy Deployment Group.- Specified by:
getDeploymentGroupName
in interfaceILambdaDeploymentGroup
-
getRole
-