# BuildConfigurationProperty

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 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_elasticbeanstalk as elasticbeanstalk } from 'aws-cdk-lib';
const buildConfigurationProperty: elasticbeanstalk.CfnApplicationVersion.BuildConfigurationProperty = {
  codeBuildServiceRole: 'codeBuildServiceRole',
  image: 'image',

  // the properties below are optional
  artifactName: 'artifactName',
  computeType: 'computeType',
  timeoutInMinutes: 123,
};
```

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_elasticbeanstalk as elasticbeanstalk

build_configuration_property = elasticbeanstalk.CfnApplicationVersion.BuildConfigurationProperty(
    code_build_service_role="codeBuildServiceRole",
    image="image",

    # the properties below are optional
    artifact_name="artifactName",
    compute_type="computeType",
    timeout_in_minutes=123
)
```

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.elasticbeanstalk.*;

BuildConfigurationProperty buildConfigurationProperty = BuildConfigurationProperty.builder()
        .codeBuildServiceRole("codeBuildServiceRole")
        .image("image")

        // the properties below are optional
        .artifactName("artifactName")
        .computeType("computeType")
        .timeoutInMinutes(123)
        .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.ElasticBeanstalk;

var buildConfigurationProperty = new BuildConfigurationProperty {
    CodeBuildServiceRole = "codeBuildServiceRole",
    Image = "image",

    // the properties below are optional
    ArtifactName = "artifactName",
    ComputeType = "computeType",
    TimeoutInMinutes = 123
};
```

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"

buildConfigurationProperty := &BuildConfigurationProperty{
	CodeBuildServiceRole: jsii.String("codeBuildServiceRole"),
	Image: jsii.String("image"),

	// the properties below are optional
	ArtifactName: jsii.String("artifactName"),
	ComputeType: jsii.String("computeType"),
	TimeoutInMinutes: jsii.Number(123),
}
```

## Properties

- `artifactName`: string — The name of the build artifact.

- `codeBuildServiceRole`: string (required) — The ARN of the IAM role that AWS CodeBuild assumes to build the application version.

- `computeType`: string — The compute type for the CodeBuild build environment.

- `image`: string (required) — The CodeBuild image used for the build environment.

- `timeoutInMinutes`: number — The timeout for the CodeBuild build, in minutes.
