# ImageConfigurationProperty

- 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 imageConfigurationProperty: elasticbeanstalk.CfnApplicationVersion.ImageConfigurationProperty = {
  buildProperty: {
    codeBuildServiceRole: 'codeBuildServiceRole',
    type: 'type',

    // the properties below are optional
    architecture: 'architecture',
    buildpack: 'buildpack',
    computeType: 'computeType',
    dockerfileLocation: 'dockerfileLocation',
    timeoutInMinutes: 123,
  },
  source: {
    uri: 'uri',
  },
};
```

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_configuration_property = elasticbeanstalk.CfnApplicationVersion.ImageConfigurationProperty(
    build_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
    ),
    source=elasticbeanstalk.CfnApplicationVersion.ImageSourceProperty(
        uri="uri"
    )
)
```

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

ImageConfigurationProperty imageConfigurationProperty = ImageConfigurationProperty.builder()
        .buildProperty(ImageBuildConfigurationProperty.builder()
                .codeBuildServiceRole("codeBuildServiceRole")
                .type("type")

                // the properties below are optional
                .architecture("architecture")
                .buildpack("buildpack")
                .computeType("computeType")
                .dockerfileLocation("dockerfileLocation")
                .timeoutInMinutes(123)
                .build())
        .source(ImageSourceProperty.builder()
                .uri("uri")
                .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.ElasticBeanstalk;

var imageConfigurationProperty = new ImageConfigurationProperty {
    BuildProperty = new ImageBuildConfigurationProperty {
        CodeBuildServiceRole = "codeBuildServiceRole",
        Type = "type",

        // the properties below are optional
        Architecture = "architecture",
        Buildpack = "buildpack",
        ComputeType = "computeType",
        DockerfileLocation = "dockerfileLocation",
        TimeoutInMinutes = 123
    },
    Source = new ImageSourceProperty {
        Uri = "uri"
    }
};
```

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"

imageConfigurationProperty := &ImageConfigurationProperty{
	BuildProperty: &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),
	},
	Source: &ImageSourceProperty{
		Uri: jsii.String("uri"),
	},
}
```

## Properties

- `buildProperty`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationVersion.ImageBuildConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticbeanstalk.CfnApplicationVersion.ImageBuildConfigurationProperty.html)

- `source`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnApplicationVersion.ImageSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_elasticbeanstalk.CfnApplicationVersion.ImageSourceProperty.html)
