Skip to content
v2.277.0

BuildConfigurationProperty 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 buildConfigurationProperty: elasticbeanstalk.CfnApplicationVersion.BuildConfigurationProperty = {
  codeBuildServiceRole: 'codeBuildServiceRole',
  image: 'image',

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

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

artifactNameoptionalstringartifact_nameoptionalstrartifactNameoptionalStringArtifactNameoptionalstringArtifactNameoptional*string #
The name of the build artifact.
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.
imagestringimagestrimageStringImagestringImage*string required #
The CodeBuild image used for the build environment.
timeoutInMinutesoptionalnumbertimeout_in_minutesoptionalint | floattimeoutInMinutesoptionalNumberTimeoutInMinutesoptionaldoubleTimeoutInMinutesoptional*float64 #
The timeout for the CodeBuild build, in minutes.