Interface CodeBuildStartBuildProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
CodeBuildStartBuildProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.902Z")
@Stability(Stable)
public interface CodeBuildStartBuildProps
extends software.amazon.jsii.JsiiSerializable, TaskStateBaseProps
Properties for CodeBuildStartBuild.
Example:
import software.amazon.awscdk.services.codebuild.*; Project codebuildProject = Project.Builder.create(this, "Project") .projectName("MyTestProject") .buildSpec(BuildSpec.fromObject(Map.of( "version", "0.2", "phases", Map.of( "build", Map.of( "commands", List.of("echo \"Hello, CodeBuild!\"")))))) .build(); CodeBuildStartBuild task = CodeBuildStartBuild.Builder.create(this, "Task") .project(codebuildProject) .integrationPattern(IntegrationPattern.RUN_JOB) .environmentVariablesOverride(Map.of( "ZONE", BuildEnvironmentVariable.builder() .type(BuildEnvironmentVariableType.PLAINTEXT) .value(JsonPath.stringAt("$.envVariables.zone")) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCodeBuildStartBuildProps
static final class
An implementation forCodeBuildStartBuildProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Map<String,
BuildEnvironmentVariable> A set of environment variables to be used for this build only.CodeBuild project to start.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getHeartbeat, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getTimeout
-
Method Details
-
getProject
CodeBuild project to start. -
getEnvironmentVariablesOverride
@Stability(Stable) @Nullable default Map<String,BuildEnvironmentVariable> getEnvironmentVariablesOverride()A set of environment variables to be used for this build only.Default: - the latest environment variables already defined in the build project.
-
builder
- Returns:
- a
CodeBuildStartBuildProps.Builder
ofCodeBuildStartBuildProps
-