# ImageBuildConfigurationProperty

- 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 imageBuildConfigurationProperty: elasticbeanstalk.CfnApplicationVersion.ImageBuildConfigurationProperty = {
  codeBuildServiceRole: 'codeBuildServiceRole',
  type: 'type',

  // the properties below are optional
  architecture: 'architecture',
  buildpack: 'buildpack',
  computeType: 'computeType',
  dockerfileLocation: 'dockerfileLocation',
  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

image_build_configuration_property = elasticbeanstalk.CfnApplicationVersion.ImageBuildConfigurationProperty(
    code_build_service_role="codeBuildServiceRole",
    type="type",

    # the properties below are optional
    architecture="architecture",
    buildpack="buildpack",
    compute_type="computeType",
    dockerfile_location="dockerfileLocation",
    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.*;

ImageBuildConfigurationProperty imageBuildConfigurationProperty = ImageBuildConfigurationProperty.builder()
        .codeBuildServiceRole("codeBuildServiceRole")
        .type("type")

        // the properties below are optional
        .architecture("architecture")
        .buildpack("buildpack")
        .computeType("computeType")
        .dockerfileLocation("dockerfileLocation")
        .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 imageBuildConfigurationProperty = new ImageBuildConfigurationProperty {
    CodeBuildServiceRole = "codeBuildServiceRole",
    Type = "type",

    // the properties below are optional
    Architecture = "architecture",
    Buildpack = "buildpack",
    ComputeType = "computeType",
    DockerfileLocation = "dockerfileLocation",
    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"

imageBuildConfigurationProperty := &ImageBuildConfigurationProperty{
	CodeBuildServiceRole: jsii.String("codeBuildServiceRole"),
	Type: jsii.String("type"),

	// the properties below are optional
	Architecture: jsii.String("architecture"),
	Buildpack: jsii.String("buildpack"),
	ComputeType: jsii.String("computeType"),
	DockerfileLocation: jsii.String("dockerfileLocation"),
	TimeoutInMinutes: jsii.Number(123),
}
```

## Properties

- `architecture`: string — The target architecture for the built container image.

- `buildpack`: string — The buildpack to use for building the image.

- `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.

- `dockerfileLocation`: string — The path to the Dockerfile, relative to the source root.

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

- `type`: string (required) — The type of image build: docker or buildpack.
