# CodeBuildStartBuild

Use an AWS CodeBuild as a target for AWS EventBridge Scheduler.

Extends: [ScheduleTargetBase](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scheduler_targets.ScheduleTargetBase.html) › CodeBuildStartBuild
Implements: [IScheduleTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scheduler.IScheduleTarget.html)

- Source: [`aws-scheduler-targets/lib/codebuild-start-build.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-scheduler-targets/lib/codebuild-start-build.ts#L11)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```ts
import * as codebuild from 'aws-cdk-lib/aws-codebuild';

declare const project: codebuild.Project;

new Schedule(this, 'Schedule', {
  schedule: ScheduleExpression.rate(Duration.minutes(60)),
  target: new targets.CodeBuildStartBuild(project),
});
```

Python:

```python
import aws_cdk.aws_codebuild as codebuild

# project: codebuild.Project

Schedule(self, "Schedule",
    schedule=ScheduleExpression.rate(Duration.minutes(60)),
    target=targets.CodeBuildStartBuild(project)
)
```

Java:

```java
import software.amazon.awscdk.services.codebuild.*;

Project project;

Schedule.Builder.create(this, "Schedule")
        .schedule(ScheduleExpression.rate(Duration.minutes(60)))
        .target(new CodeBuildStartBuild(project))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.CodeBuild;

Project project;

new Schedule(this, "Schedule", new ScheduleProps {
    Schedule = ScheduleExpression.Rate(Duration.Minutes(60)),
    Target = new CodeBuildStartBuild(project)
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import codebuild "github.com/aws/aws-cdk-go/awscdk"

var project Project

awscdk.NewSchedule(this, jsii.String("Schedule"), &ScheduleProps{
	Schedule: awscdk.ScheduleExpression_Rate(awscdk.Duration_Minutes(jsii.Number(60))),
	Target: targets.NewCodeBuildStartBuild(project),
})
```

## Initializer

TypeScript:

```ts
new CodeBuildStartBuild(project: IProjectRef, props?: ScheduleTargetBaseProps)
```

Python:

```python
CodeBuildStartBuild(project: IProjectRef, props: typing.Optional[ScheduleTargetBaseProps] = None)
```

Java:

```java
new CodeBuildStartBuild(IProjectRef project, ScheduleTargetBaseProps props)
```

C# / .NET:

```csharp
new CodeBuildStartBuild(IProjectRef project, ScheduleTargetBaseProps? props = null)
```

Golang:

```go
NewCodeBuildStartBuild(Project IProjectRef, Props ScheduleTargetBaseProps)
```

## Methods

- `bind(schedule: ISchedule): ScheduleTargetConfig` — Create a return a Schedule Target Configuration for the given schedule.

  **Returns:** a Schedule Target Configuration
