@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-05-04T20:14:15.351Z") @Stability(value=Stable) public class LambdaDeploymentGroup extends Resource implements ILambdaDeploymentGroup
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
LambdaDeploymentGroup.Builder
A fluent builder for
LambdaDeploymentGroup. |
software.amazon.jsii.JsiiObject.InitializationModeILambdaDeploymentGroup.Jsii$Default, ILambdaDeploymentGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LambdaDeploymentGroup(software.constructs.Construct scope,
String id,
LambdaDeploymentGroupProps props) |
protected |
LambdaDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlarm(IAlarm alarm)
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.
|
ILambdaApplication |
getApplication()
The reference to the CodeDeploy Lambda Application that this Deployment Group belongs to.
|
ILambdaDeploymentConfig |
getDeploymentConfig()
The Deployment Configuration this Group uses.
|
String |
getDeploymentGroupArn()
The ARN of this Deployment Group.
|
String |
getDeploymentGroupName()
The physical name of the CodeDeploy Deployment Group.
|
IRole |
getRole() |
Grant |
grantPutLifecycleEventHookExecutionStatus(IGrantable grantee)
Grant a principal permission to codedeploy:PutLifecycleEventHookExecutionStatus on this deployment group resource.
|
protected List<String> |
validate()
Validate the current construct.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected LambdaDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public LambdaDeploymentGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
LambdaDeploymentGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static ILambdaDeploymentGroup fromLambdaDeploymentGroupAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LambdaDeploymentGroupAttributes attrs)
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.@Stability(value=Stable)
public void addAlarm(@NotNull
IAlarm alarm)
alarm - the alarm to associate with this Deployment Group. This parameter is required.@Stability(value=Stable)
public void addPostHook(@NotNull
IFunction postHook)
postHook - function to run after deployment completes. This parameter is required.@Stability(value=Stable)
public void addPreHook(@NotNull
IFunction preHook)
preHook - function to run before deployment beings. This parameter is required.@Stability(value=Stable) @NotNull public Grant grantPutLifecycleEventHookExecutionStatus(@NotNull IGrantable grantee)
grantee - to grant permission to. This parameter is required.@Stability(value=Stable) @NotNull protected List<String> validate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
@Stability(value=Stable) @NotNull public ILambdaApplication getApplication()
getApplication in interface ILambdaDeploymentGroup@Stability(value=Stable) @NotNull public ILambdaDeploymentConfig getDeploymentConfig()
getDeploymentConfig in interface ILambdaDeploymentGroup@Stability(value=Stable) @NotNull public String getDeploymentGroupArn()
getDeploymentGroupArn in interface ILambdaDeploymentGroup@Stability(value=Stable) @NotNull public String getDeploymentGroupName()
getDeploymentGroupName in interface ILambdaDeploymentGroup@Stability(value=Stable) @NotNull public IRole getRole()
Copyright © 2022. All rights reserved.