/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the imagebuilder-2019-12-02.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Imagebuilder.Model
{
///
/// A schedule configures how often and when a pipeline will automatically create a new
/// image.
///
public partial class Schedule
{
private PipelineExecutionStartCondition _pipelineExecutionStartCondition;
private string _scheduleExpression;
private string _timezone;
///
/// Gets and sets the property PipelineExecutionStartCondition.
///
/// The condition configures when the pipeline should trigger a new image build. 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, EC2 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 EC2 Image Builder API Reference.
///
///
public PipelineExecutionStartCondition PipelineExecutionStartCondition
{
get { return this._pipelineExecutionStartCondition; }
set { this._pipelineExecutionStartCondition = value; }
}
// Check to see if PipelineExecutionStartCondition property is set
internal bool IsSetPipelineExecutionStartCondition()
{
return this._pipelineExecutionStartCondition != null;
}
///
/// Gets and sets the property ScheduleExpression.
///
/// 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.
///
///
[AWSProperty(Min=1, Max=1024)]
public string ScheduleExpression
{
get { return this._scheduleExpression; }
set { this._scheduleExpression = value; }
}
// Check to see if ScheduleExpression property is set
internal bool IsSetScheduleExpression()
{
return this._scheduleExpression != null;
}
///
/// Gets and sets the property Timezone.
///
/// The timezone that applies to the scheduling expression. For example, "Etc/UTC", "America/Los_Angeles"
/// in the IANA timezone format.
/// If not specified this defaults to UTC.
///
///
[AWSProperty(Min=3, Max=100)]
public string Timezone
{
get { return this._timezone; }
set { this._timezone = value; }
}
// Check to see if Timezone property is set
internal bool IsSetTimezone()
{
return this._timezone != null;
}
}
}