ImagePipelineStatus

class aws_cdk.aws_imagebuilder_alpha.ImagePipelineStatus(*values)

Bases: Enum

(experimental) Indicates whether the pipeline is enabled to be triggered by the provided schedule.

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

DISABLED

(experimental) Indicates that the pipeline is disabled and will not be triggered on the schedule.

Stability:

experimental

ENABLED

(experimental) Indicates that the pipeline is enabled for scheduling.

Stability:

experimental