ImageBuildConfigurationProperty Struct
| Source | |
|---|---|
| Type last changed |
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 imageBuildConfigurationProperty: elasticbeanstalk.CfnApplicationVersion.ImageBuildConfigurationProperty = {
codeBuildServiceRole: 'codeBuildServiceRole',
type: 'type',
// the properties below are optional
architecture: 'architecture',
buildpack: 'buildpack',
computeType: 'computeType',
dockerfileLocation: 'dockerfileLocation',
timeoutInMinutes: 123,
};
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
// 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();
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
};
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
architectureoptionalstringarchitectureoptionalstrarchitectureoptionalStringArchitectureoptionalstringArchitectureoptional*string #The target architecture for the built container image.
buildpackoptionalstringbuildpackoptionalstrbuildpackoptionalStringBuildpackoptionalstringBuildpackoptional*string #The buildpack to use for building the image.
codeBuildServiceRolestringcode_build_service_rolestrcodeBuildServiceRoleStringCodeBuildServiceRolestringCodeBuildServiceRole*string required #The ARN of the IAM role that AWS CodeBuild assumes to build the application version.
computeTypeoptionalstringcompute_typeoptionalstrcomputeTypeoptionalStringComputeTypeoptionalstringComputeTypeoptional*string #The compute type for the CodeBuild build environment.
dockerfileLocationoptionalstringdockerfile_locationoptionalstrdockerfileLocationoptionalStringDockerfileLocationoptionalstringDockerfileLocationoptional*string #The path to the Dockerfile, relative to the source root.
timeoutInMinutesoptionalnumbertimeout_in_minutesoptionalint | floattimeoutInMinutesoptionalNumberTimeoutInMinutesoptionaldoubleTimeoutInMinutesoptional*float64 #The timeout for the CodeBuild build, in minutes.
The type of image build: docker or buildpack.