# BuildConfigProperty

The build configuration for the revision.

- Source: Generated at build time
- Type last changed: v2.273.0 · 8 Oct 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const buildConfigProperty: lambda.CfnWebFunctionRevision.BuildConfigProperty = {
  codeConfig: {
    s3Object: {
      bucket: 'bucket',
      key: 'key',

      // the properties below are optional
      versionId: 'versionId',
    },
  },
  runtimeConfig: {
    runtime: 'runtime',
  },
};
```

Python:

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

build_config_property = lambda.CfnWebFunctionRevision.BuildConfigProperty(
    code_config=lambda.CfnWebFunctionRevision.CodeConfigProperty(
        s3_object=lambda.CfnWebFunctionRevision.S3ObjectProperty(
            bucket="bucket",
            key="key",

            # the properties below are optional
            version_id="versionId"
        )
    ),
    runtime_config=lambda.CfnWebFunctionRevision.RuntimeConfigProperty(
        runtime="runtime"
    )
)
```

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.services.lambda.*;

BuildConfigProperty buildConfigProperty = BuildConfigProperty.builder()
        .codeConfig(CodeConfigProperty.builder()
                .s3Object(S3ObjectProperty.builder()
                        .bucket("bucket")
                        .key("key")

                        // the properties below are optional
                        .versionId("versionId")
                        .build())
                .build())
        .runtimeConfig(RuntimeConfigProperty.builder()
                .runtime("runtime")
                .build())
        .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.AWS.Lambda;

var buildConfigProperty = new BuildConfigProperty {
    CodeConfig = new CodeConfigProperty {
        S3Object = new S3ObjectProperty {
            Bucket = "bucket",
            Key = "key",

            // the properties below are optional
            VersionId = "versionId"
        }
    },
    RuntimeConfig = new RuntimeConfigProperty {
        Runtime = "runtime"
    }
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

buildConfigProperty := &BuildConfigProperty{
	CodeConfig: &CodeConfigProperty{
		S3Object: &S3ObjectProperty{
			Bucket: jsii.String("bucket"),
			Key: jsii.String("key"),

			// the properties below are optional
			VersionId: jsii.String("versionId"),
		},
	},
	RuntimeConfig: &RuntimeConfigProperty{
		Runtime: jsii.String("runtime"),
	},
}
```

## Properties

- `codeConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWebFunctionRevision.CodeConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnWebFunctionRevision.CodeConfigProperty.html) (required) — The code configuration for the revision.

- `runtimeConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnWebFunctionRevision.RuntimeConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnWebFunctionRevision.RuntimeConfigProperty.html) (required) — The runtime configuration for the revision.
