ScheduleProperty
A schedule configures when and how often a pipeline will automatically create a new image.
| Source | |
|---|---|
| Type last changed |
Example
// 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',
};
# 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"
)
// 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();
// 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"
};
// 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.auto_disable_policyoptionaltyping.Union[IResolvable, AutoDisablePolicyProperty]autoDisablePolicyoptionalIResolvableAutoDisablePolicyoptionalIResolvableAutoDisablePolicyoptionalinterface{} #pipelineExecutionStartConditionoptionalstringpipeline_execution_start_conditionoptionalstrpipelineExecutionStartConditionoptionalStringPipelineExecutionStartConditionoptionalstringPipelineExecutionStartConditionoptional*string #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 #For information on how to format a cron expression in Image Builder, see Use cron expressions in EC2 Image Builder .
timezoneoptionalstringtimezoneoptionalstrtimezoneoptionalStringTimezoneoptionalstringTimezoneoptional*string #If not specified, this defaults to UTC.