Class CodeBuildStartBuild
Start a CodeBuild Build as a task.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.AWS.StepFunctions.Tasks.dll
Syntax (csharp)
public class CodeBuildStartBuild : TaskStateBase, IConstruct, IDependable, IChainable, INextable
Syntax (vb)
Public Class CodeBuildStartBuild
Inherits TaskStateBase
Implements IConstruct, IDependable, IChainable, INextable
Remarks
See: https://docs.aws.amazon.com/step-functions/latest/dg/connect-codebuild.html
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CodeBuild;
var codebuildProject = new Project(this, "Project", new ProjectProps {
ProjectName = "MyTestProject",
BuildSpec = BuildSpec.FromObject(new Dictionary<string, object> {
{ "version", "0.2" },
{ "phases", new Dictionary<string, IDictionary<string, string[]>> {
{ "build", new Struct {
Commands = new [] { "echo \"Hello, CodeBuild!\"" }
} }
} }
})
});
var task = new CodeBuildStartBuild(this, "Task", new CodeBuildStartBuildProps {
Project = codebuildProject,
IntegrationPattern = IntegrationPattern.RUN_JOB,
EnvironmentVariablesOverride = new Dictionary<string, BuildEnvironmentVariable> {
{ "ZONE", new BuildEnvironmentVariable {
Type = BuildEnvironmentVariableType.PLAINTEXT,
Value = JsonPath.StringAt("$.envVariables.zone")
} }
}
});
Synopsis
Constructors
CodeBuildStartBuild(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CodeBuildStartBuild(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CodeBuildStartBuild(Construct, String, ICodeBuildStartBuildProps) |
Properties
TaskMetrics | |
TaskPolicies |
Constructors
CodeBuildStartBuild(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CodeBuildStartBuild(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CodeBuildStartBuild(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CodeBuildStartBuild(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CodeBuildStartBuild(Construct, String, ICodeBuildStartBuildProps)
public CodeBuildStartBuild(Construct scope, string id, ICodeBuildStartBuildProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ICodeBuildStartBuildProps
Properties
TaskMetrics
protected override ITaskMetricsConfig TaskMetrics { get; }
Property Value
Overrides
TaskPolicies
protected override PolicyStatement[] TaskPolicies { get; }
Property Value
Overrides
Implements
Constructs.IConstruct