@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:59.466Z") 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 . |
ILambdaDeploymentGroup.Jsii$Default, ILambdaDeploymentGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
LambdaDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LambdaDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
LambdaDeploymentGroup(software.constructs.Construct scope,
java.lang.String id,
LambdaDeploymentGroupProps props) |
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,
java.lang.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.
|
java.lang.String |
getDeploymentGroupArn()
The ARN of this Deployment Group.
|
java.lang.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 java.util.List<java.lang.String> |
validate()
Validate the current construct.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected LambdaDeploymentGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected LambdaDeploymentGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public LambdaDeploymentGroup(software.constructs.Construct scope, java.lang.String id, LambdaDeploymentGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static ILambdaDeploymentGroup fromLambdaDeploymentGroupAttributes(software.constructs.Construct scope, java.lang.String id, 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.public void addAlarm(IAlarm alarm)
alarm
- the alarm to associate with this Deployment Group. This parameter is required.public void addPostHook(IFunction postHook)
postHook
- function to run after deployment completes. This parameter is required.public void addPreHook(IFunction preHook)
preHook
- function to run before deployment beings. This parameter is required.public Grant grantPutLifecycleEventHookExecutionStatus(IGrantable grantee)
grantee
- to grant permission to. This parameter is required.protected java.util.List<java.lang.String> validate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
public ILambdaApplication getApplication()
getApplication
in interface ILambdaDeploymentGroup
public ILambdaDeploymentConfig getDeploymentConfig()
getDeploymentConfig
in interface ILambdaDeploymentGroup
public java.lang.String getDeploymentGroupArn()
getDeploymentGroupArn
in interface ILambdaDeploymentGroup
public java.lang.String getDeploymentGroupName()
getDeploymentGroupName
in interface ILambdaDeploymentGroup
public IRole getRole()