ScheduleStartCondition

class aws_cdk.aws_imagebuilder_alpha.ScheduleStartCondition(*values)

Bases: Enum

(experimental) The start condition for the pipeline, indicating the condition under which a pipeline should be triggered.

Stability:

experimental

ExampleMetadata:

infused

Example:

advanced_schedule_pipeline = imagebuilder.ImagePipeline(self, "AdvancedSchedulePipeline",
    recipe=example_image_recipe,
    schedule=imagebuilder.ImagePipelineSchedule(
        expression=events.Schedule.rate(Duration.days(7)),
        # Only trigger when dependencies are updated (new base images, components, etc.)
        start_condition=imagebuilder.ScheduleStartCondition.EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE,
        # Automatically disable after 3 consecutive failures
        auto_disable_failure_count=3
    ),
    # Start enabled
    status=imagebuilder.ImagePipelineStatus.ENABLED
)

Attributes

EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE

(experimental) Indicates to trigger a pipeline whenever its schedule is met, and there are matching dependency updates available, such as new versions of components or images to use in the pipeline build.

Stability:

experimental

EXPRESSION_MATCH_ONLY

(experimental) Indicates to trigger a pipeline whenever its schedule is met.

Stability:

experimental