Skip to content
v2.278.0

ScheduleProperty ​

Struct External

A schedule configures when and how often a pipeline will automatically create a new image.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const scheduleProperty: imagebuilder.CfnImagePipeline.ScheduleProperty = {
  autoDisablePolicy: {
    failureCount: 123,
  },
  pipelineExecutionStartCondition: 'pipelineExecutionStartCondition',
  scheduleExpression: 'scheduleExpression',
  timezone: 'timezone',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_imagebuilder as imagebuilder

schedule_property = imagebuilder.CfnImagePipeline.ScheduleProperty(
    auto_disable_policy=imagebuilder.CfnImagePipeline.AutoDisablePolicyProperty(
        failure_count=123
    ),
    pipeline_execution_start_condition="pipelineExecutionStartCondition",
    schedule_expression="scheduleExpression",
    timezone="timezone"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.imagebuilder.*;

ScheduleProperty scheduleProperty = ScheduleProperty.builder()
        .autoDisablePolicy(AutoDisablePolicyProperty.builder()
                .failureCount(123)
                .build())
        .pipelineExecutionStartCondition("pipelineExecutionStartCondition")
        .scheduleExpression("scheduleExpression")
        .timezone("timezone")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;

var scheduleProperty = new ScheduleProperty {
    AutoDisablePolicy = new AutoDisablePolicyProperty {
        FailureCount = 123
    },
    PipelineExecutionStartCondition = "pipelineExecutionStartCondition",
    ScheduleExpression = "scheduleExpression",
    Timezone = "timezone"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

scheduleProperty := &ScheduleProperty{
	AutoDisablePolicy: &AutoDisablePolicyProperty{
		FailureCount: jsii.Number(123),
	},
	PipelineExecutionStartCondition: jsii.String("pipelineExecutionStartCondition"),
	ScheduleExpression: jsii.String("scheduleExpression"),
	Timezone: jsii.String("timezone"),
}

Properties ​

autoDisablePolicyoptionalIResolvable | CfnImagePipeline.AutoDisablePolicyPropertyauto_disable_policyoptionaltyping.Union[IResolvable, AutoDisablePolicyProperty]autoDisablePolicyoptionalIResolvableAutoDisablePolicyoptionalIResolvableAutoDisablePolicyoptionalinterface{} #
The policy that configures when Image Builder should automatically disable a pipeline that is failing.
pipelineExecutionStartConditionoptionalstringpipeline_execution_start_conditionoptionalstrpipelineExecutionStartConditionoptionalStringPipelineExecutionStartConditionoptionalstringPipelineExecutionStartConditionoptional*string #
The condition configures when the pipeline should trigger a new image build.
notes

When the pipelineExecutionStartCondition is set to EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE , and you use semantic version filters on the base image or components in your image recipe, Image Builder will build a new image only when there are new versions of the image or components in your recipe that match the semantic version filter. When it is set to EXPRESSION_MATCH_ONLY , it will build a new image every time the CRON expression matches the current time. For semantic version syntax, see CreateComponent in the Image Builder API Reference .

scheduleExpressionoptionalstringschedule_expressionoptionalstrscheduleExpressionoptionalStringScheduleExpressionoptionalstringScheduleExpressionoptional*string #
The cron expression determines how often EC2 Image Builder evaluates your `pipelineExecutionStartCondition` .

For information on how to format a cron expression in Image Builder, see Use cron expressions in EC2 Image Builder .

timezoneoptionalstringtimezoneoptionalstrtimezoneoptionalStringTimezoneoptionalstringTimezoneoptional*string #
The timezone that applies to the scheduling expression, for example "Etc/UTC" or "America/Los_Angeles" in IANA timezone format.

If not specified, this defaults to UTC.