ImagePipelineSchedule
- class aws_cdk.aws_imagebuilder_alpha.ImagePipelineSchedule(*, expression, auto_disable_failure_count=None, start_condition=None)
Bases:
object(experimental) The schedule settings for the image pipeline, which defines when a pipeline should be triggered.
- Parameters:
expression (
Schedule) – (experimental) The schedule expression to use. This can either be a cron expression or a rate expression.auto_disable_failure_count (
Union[int,float,None]) – (experimental) The number of consecutive failures allowed before the pipeline is automatically disabled. This value must be between 1 and 10. Default: - no auto-disable policy is configured and the pipeline is not automatically disabled on consecutive failuresstart_condition (
Optional[ScheduleStartCondition]) – (experimental) The start condition for the pipeline, indicating the condition under which a pipeline should be triggered. Default: ScheduleStartCondition.EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE
- Stability:
experimental
- ExampleMetadata:
infused
Example:
daily_pipeline = imagebuilder.ImagePipeline(self, "DailyPipeline", recipe=example_container_recipe, schedule=imagebuilder.ImagePipelineSchedule( expression=events.Schedule.rate(Duration.days(1)) ) )
Attributes
- auto_disable_failure_count
(experimental) The number of consecutive failures allowed before the pipeline is automatically disabled.
This value must be between 1 and 10.
- Default:
no auto-disable policy is configured and the pipeline is not automatically disabled on consecutive
failures
- Stability:
experimental
- expression
(experimental) The schedule expression to use.
This can either be a cron expression or a rate expression.
- Stability:
experimental
- start_condition
(experimental) The start condition for the pipeline, indicating the condition under which a pipeline should be triggered.
- Default:
ScheduleStartCondition.EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE
- Stability:
experimental