# CustomLambdaDeploymentConfigProps

Properties of a reference to a CodeDeploy Lambda Deployment Configuration.

Used as props by: [CustomLambdaDeploymentConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CustomLambdaDeploymentConfig.html)

- Source: [`aws-codedeploy/lib/lambda/custom-deployment-config.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-codedeploy/lib/lambda/custom-deployment-config.ts#L35)
- Type last changed: v2.45.0 · 6 Oct 2022

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const customLambdaDeploymentConfigProps: codedeploy.CustomLambdaDeploymentConfigProps = {
  interval: cdk.Duration.minutes(30),
  percentage: 123,
  type: codedeploy.CustomLambdaDeploymentConfigType.CANARY,

  // the properties below are optional
  deploymentConfigName: 'deploymentConfigName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_codedeploy as codedeploy

custom_lambda_deployment_config_props = codedeploy.CustomLambdaDeploymentConfigProps(
    interval=cdk.Duration.minutes(30),
    percentage=123,
    type=codedeploy.CustomLambdaDeploymentConfigType.CANARY,

    # the properties below are optional
    deployment_config_name="deploymentConfigName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.codedeploy.*;

CustomLambdaDeploymentConfigProps customLambdaDeploymentConfigProps = CustomLambdaDeploymentConfigProps.builder()
        .interval(Duration.minutes(30))
        .percentage(123)
        .type(CustomLambdaDeploymentConfigType.CANARY)

        // the properties below are optional
        .deploymentConfigName("deploymentConfigName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.CodeDeploy;

var customLambdaDeploymentConfigProps = new CustomLambdaDeploymentConfigProps {
    Interval = Duration.Minutes(30),
    Percentage = 123,
    Type = CustomLambdaDeploymentConfigType.CANARY,

    // the properties below are optional
    DeploymentConfigName = "deploymentConfigName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

customLambdaDeploymentConfigProps := &CustomLambdaDeploymentConfigProps{
	Interval: cdk.Duration_Minutes(jsii.Number(30)),
	Percentage: jsii.Number(123),
	Type: awscdk.Aws_codedeploy.CustomLambdaDeploymentConfigType_CANARY,

	// the properties below are optional
	DeploymentConfigName: jsii.String("deploymentConfigName"),
}
```

## Properties

- `deploymentConfigName`: string — Use `LambdaDeploymentConfig`

  **Default:** automatically generated name

  Must be unique per account/region.
  Other parameters cannot be updated if this name is provided.

- `interval`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) (required) — Use `LambdaDeploymentConfig`

- `percentage`: number (required) — Use `LambdaDeploymentConfig`

- `type`: [CustomLambdaDeploymentConfigType](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CustomLambdaDeploymentConfigType.html) (required) — Use `LambdaDeploymentConfig`
