Class LambdaDeploymentConfig
A custom Deployment Configuration for a Lambda Deployment Group.
Inheritance
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.AWS.CodeDeploy.dll
Syntax (csharp)
public class LambdaDeploymentConfig : DeputyBase
Syntax (vb)
Public Class LambdaDeploymentConfig
Inherits DeputyBase
Remarks
Note: This class currently stands as namespaced container of the default configurations until CloudFormation supports custom Lambda Deployment Configs. Until then it is closed (private constructor) and does not extend {@link cdk.Construct}
Resource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: infused
Examples
LambdaApplication myApplication;
Function func;
var version = func.CurrentVersion;
var version1Alias = new Alias(this, "alias", new AliasProps {
AliasName = "prod",
Version = version
});
var deploymentGroup = new LambdaDeploymentGroup(this, "BlueGreenDeployment", new LambdaDeploymentGroupProps {
Application = myApplication, // optional property: one will be created for you if not provided
Alias = version1Alias,
DeploymentConfig = LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE
});
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 |
Properties
Methods
Import(Construct, String, ILambdaDeploymentConfigImportProps) | Import a custom 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
Properties
ALL_AT_ONCE
CANARY_10PERCENT_10MINUTES
public static ILambdaDeploymentConfig CANARY_10PERCENT_10MINUTES { get; }
Property Value
CANARY_10PERCENT_15MINUTES
public static ILambdaDeploymentConfig CANARY_10PERCENT_15MINUTES { get; }
Property Value
CANARY_10PERCENT_30MINUTES
public static ILambdaDeploymentConfig CANARY_10PERCENT_30MINUTES { get; }
Property Value
CANARY_10PERCENT_5MINUTES
public static ILambdaDeploymentConfig CANARY_10PERCENT_5MINUTES { get; }
Property Value
LINEAR_10PERCENT_EVERY_10MINUTES
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_10MINUTES { get; }
Property Value
LINEAR_10PERCENT_EVERY_1MINUTE
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_1MINUTE { get; }
Property Value
LINEAR_10PERCENT_EVERY_2MINUTES
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_2MINUTES { get; }
Property Value
LINEAR_10PERCENT_EVERY_3MINUTES
public static ILambdaDeploymentConfig LINEAR_10PERCENT_EVERY_3MINUTES { get; }
Property Value
Methods
Import(Construct, String, ILambdaDeploymentConfigImportProps)
Import a custom 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