> **Experimental**
>
> `@aws-cdk/aws-imagebuilder-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# ImagePipelineSchedule

The schedule settings for the image pipeline, which defines when a pipeline should be triggered.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/image-pipeline.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-imagebuilder-alpha/lib/image-pipeline.ts#L295)

## Example

TypeScript:

```ts
const dailyPipeline = new imagebuilder.ImagePipeline(this, 'DailyPipeline', {
  recipe: exampleContainerRecipe,
  schedule: {
    expression: events.Schedule.rate(Duration.days(1))
  }
});
```

Python:

```python
daily_pipeline = imagebuilder.ImagePipeline(self, "DailyPipeline",
    recipe=example_container_recipe,
    schedule=imagebuilder.ImagePipelineSchedule(
        expression=events.Schedule.rate(Duration.days(1))
    )
)
```

Java:

```java
ImagePipeline dailyPipeline = ImagePipeline.Builder.create(this, "DailyPipeline")
        .recipe(exampleContainerRecipe)
        .schedule(ImagePipelineSchedule.builder()
                .expression(Schedule.rate(Duration.days(1)))
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.ImageBuilder.Alpha
var dailyPipeline = new ImagePipeline(this, "DailyPipeline", new ImagePipelineProps {
    Recipe = exampleContainerRecipe,
    Schedule = new ImagePipelineSchedule {
        Expression = Schedule.Rate(Duration.Days(1))
    }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsimagebuilderalpha/v2
dailyPipeline := imagebuilder.NewImagePipeline(this, jsii.String("DailyPipeline"), &ImagePipelineProps{
	Recipe: exampleContainerRecipe,
	Schedule: &ImagePipelineSchedule{
		Expression: events.Schedule_Rate(awscdk.Duration_Days(jsii.Number(1))),
	},
})
```

## Properties

- `autoDisableFailureCount`: number — The number of consecutive failures allowed before the pipeline is automatically disabled.

  **Default:** no auto-disable policy is configured and the pipeline is not automatically disabled on consecutive failures

  This value must be
  between 1 and 10.

- `expression`: [Schedule](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Schedule.html) (required) — The schedule expression to use.

  This can either be a cron expression or a rate expression.

- `startCondition`: [ScheduleStartCondition](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-imagebuilder-alpha.ScheduleStartCondition.html) — The start condition for the pipeline, indicating the condition under which a pipeline should be triggered.

  **Default:** ScheduleStartCondition.EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE
