Class LambdaDeploymentConfig
A custom Deployment Configuration for a Lambda Deployment Group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaDeploymentConfig : BaseDeploymentConfig, IResource, ILambdaDeploymentConfig, IBaseDeploymentConfig
Syntax (vb)
Public Class LambdaDeploymentConfig
Inherits BaseDeploymentConfig
Implements IResource, ILambdaDeploymentConfig, IBaseDeploymentConfig
Remarks
Resource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: infused
Examples
LambdaApplication application;
Alias alias;
var config = new LambdaDeploymentConfig(this, "CustomConfig", new LambdaDeploymentConfigProps {
TrafficRouting = new TimeBasedCanaryTrafficRouting(new TimeBasedCanaryTrafficRoutingProps {
Interval = Duration.Minutes(15),
Percentage = 5
})
});
var deploymentGroup = new LambdaDeploymentGroup(this, "BlueGreenDeployment", new LambdaDeploymentGroupProps {
Application = application,
Alias = alias,
DeploymentConfig = config
});
Synopsis
Constructors
LambdaDeploymentConfig(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LambdaDeploymentConfig(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
LambdaDeploymentConfig(Construct, String, ILambdaDeploymentConfigProps) |
Properties
ALL_AT_ONCE | CodeDeploy predefined deployment configuration that shifts all traffic to the updated Lambda function at once. |
CANARY_10PERCENT_10MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment. |
CANARY_10PERCENT_15MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment. |
CANARY_10PERCENT_30MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment. |
CANARY_10PERCENT_5MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment. |
LINEAR_10PERCENT_EVERY_10MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every 10 minutes until all traffic is shifted. |
LINEAR_10PERCENT_EVERY_1MINUTE | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every minute until all traffic is shifted. |
LINEAR_10PERCENT_EVERY_2MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every two minutes until all traffic is shifted. |
LINEAR_10PERCENT_EVERY_3MINUTES | CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every three minutes until all traffic is shifted. |
Methods
FromLambdaDeploymentConfigName(Construct, String, String) | Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK. |
Import(Construct, String, ILambdaDeploymentConfigImportProps) | (deprecated) Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK. |
Constructors
LambdaDeploymentConfig(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LambdaDeploymentConfig(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LambdaDeploymentConfig(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LambdaDeploymentConfig(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
LambdaDeploymentConfig(Construct, String, ILambdaDeploymentConfigProps)
public LambdaDeploymentConfig(Construct scope, string id, ILambdaDeploymentConfigProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props ILambdaDeploymentConfigProps
Properties
ALL_AT_ONCE
CodeDeploy predefined deployment configuration that shifts all traffic to the updated Lambda function at once.
public static ILambdaDeploymentConfig ALL_AT_ONCE { get; }
Property Value
CANARY_10PERCENT_10MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.
public static ILambdaDeploymentConfig CANARY_10PERCENT_10MINUTES { get; }
Property Value
Remarks
The remaining 90 percent is deployed 10 minutes later.
CANARY_10PERCENT_15MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.
public static ILambdaDeploymentConfig CANARY_10PERCENT_15MINUTES { get; }
Property Value
Remarks
The remaining 90 percent is deployed 15 minutes later.
CANARY_10PERCENT_30MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.
public static ILambdaDeploymentConfig CANARY_10PERCENT_30MINUTES { get; }
Property Value
Remarks
The remaining 90 percent is deployed 30 minutes later.
CANARY_10PERCENT_5MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic in the first increment.
public static ILambdaDeploymentConfig CANARY_10PERCENT_5MINUTES { get; }
Property Value
Remarks
The remaining 90 percent is deployed five minutes later.
LINEAR_10PERCENT_EVERY_10MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every 10 minutes until all traffic is shifted.
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_10MINUTES { get; }
Property Value
LINEAR_10PERCENT_EVERY_1MINUTE
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every minute until all traffic is shifted.
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_1MINUTE { get; }
Property Value
LINEAR_10PERCENT_EVERY_2MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every two minutes until all traffic is shifted.
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_2MINUTES { get; }
Property Value
LINEAR_10PERCENT_EVERY_3MINUTES
CodeDeploy predefined deployment configuration that shifts 10 percent of traffic every three minutes until all traffic is shifted.
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_3MINUTES { get; }
Property Value
Methods
FromLambdaDeploymentConfigName(Construct, String, String)
Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK.
public static ILambdaDeploymentConfig FromLambdaDeploymentConfigName(Construct scope, string id, string lambdaDeploymentConfigName)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- lambdaDeploymentConfigName System.String
the name of the Lambda Deployment Configuration to import.
Returns
a Construct representing a reference to an existing Lambda Deployment Configuration
Import(Construct, String, ILambdaDeploymentConfigImportProps)
(deprecated) Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK.
public static ILambdaDeploymentConfig Import(Construct scope, string id, ILambdaDeploymentConfigImportProps props)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- props ILambdaDeploymentConfigImportProps
the properties of the referenced custom Deployment Configuration.
Returns
a Construct representing a reference to an existing custom Deployment Configuration
Remarks
Stability: Deprecated