Show / Hide Table of Contents

Class LambdaDeploymentConfig

A custom Deployment Configuration for a Lambda Deployment Group.

Inheritance
object
Resource
BaseDeploymentConfig
LambdaDeploymentConfig
Implements
IResource
IConstruct
IDependable
ILambdaDeploymentConfig
IBaseDeploymentConfig
Inherited Members
BaseDeploymentConfig.FromDeploymentConfigName(Construct, string, string)
BaseDeploymentConfig.DeploymentConfigArn
BaseDeploymentConfig.DeploymentConfigName
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LambdaDeploymentConfig : BaseDeploymentConfig, IResource, IConstruct, IDependable, ILambdaDeploymentConfig, IBaseDeploymentConfig
Syntax (vb)
Public Class LambdaDeploymentConfig Inherits BaseDeploymentConfig Implements IResource, IConstruct, IDependable, 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(Construct, string, ILambdaDeploymentConfigProps?)

A custom Deployment Configuration for a Lambda Deployment Group.

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.

PROPERTY_INJECTION_ID

Uniquely identifies this class.

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(Construct, string, ILambdaDeploymentConfigProps?)

A custom Deployment Configuration for a Lambda Deployment Group.

public LambdaDeploymentConfig(Construct scope, string id, ILambdaDeploymentConfigProps? props = null)
Parameters
scope Construct
id string
props ILambdaDeploymentConfigProps
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
             });

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

ILambdaDeploymentConfig

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

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

ILambdaDeploymentConfig

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

ILambdaDeploymentConfig

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

ILambdaDeploymentConfig

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

ILambdaDeploymentConfig

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

ILambdaDeploymentConfig

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

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

ILambdaDeploymentConfig

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

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

ILambdaDeploymentConfig

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

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

ILambdaDeploymentConfig

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

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 Construct

the parent Construct for this new Construct.

id string

the logical ID of this new Construct.

lambdaDeploymentConfigName string

the name of the Lambda Deployment Configuration to import.

Returns

ILambdaDeploymentConfig

a Construct representing a reference to an existing Lambda Deployment Configuration

Remarks

Resource: AWS::CodeDeploy::DeploymentConfig

ExampleMetadata: infused

Import(Construct, string, ILambdaDeploymentConfigImportProps)

(deprecated) Import a Deployment Configuration for a Lambda Deployment Group defined outside the CDK.

[Obsolete("use `fromLambdaDeploymentConfigName`")]
public static ILambdaDeploymentConfig Import(Construct scope, string id, ILambdaDeploymentConfigImportProps props)
Parameters
scope Construct

the parent Construct for this new Construct.

id string

the logical ID of this new Construct.

props ILambdaDeploymentConfigImportProps

the properties of the referenced custom Deployment Configuration.

Returns

ILambdaDeploymentConfig

a Construct representing a reference to an existing custom Deployment Configuration

Remarks

Stability: Deprecated

Implements

IResource
Constructs.IConstruct
Constructs.IDependable
ILambdaDeploymentConfig
IBaseDeploymentConfig
Back to top Generated by DocFX