Skip to content
v2.278.0

ImageConfigurationProperty Struct ​

Example ​

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
# 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
// 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();
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"
    }
};
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 ​

buildPropertyoptionalIResolvable | CfnApplicationVersion.ImageBuildConfigurationPropertybuild_propertyoptionaltyping.Union[IResolvable, ImageBuildConfigurationProperty]buildPropertyoptionalIResolvableBuildPropertyoptionalIResolvableBuildPropertyoptionalinterface{} #
sourceoptionalIResolvable | CfnApplicationVersion.ImageSourcePropertysourceoptionaltyping.Union[IResolvable, ImageSourceProperty]sourceoptionalIResolvableSourceoptionalIResolvableSourceoptionalinterface{} #