/* * 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 codedeploy-2014-10-06.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.CodeDeploy.Model { /// /// Information about a deployment. /// public partial class DeploymentInfo { private string _additionalDeploymentStatusInfo; private string _applicationName; private AutoRollbackConfiguration _autoRollbackConfiguration; private BlueGreenDeploymentConfiguration _blueGreenDeploymentConfiguration; private DateTime? _completeTime; private ComputePlatform _computePlatform; private DateTime? _createTime; private DeploymentCreator _creator; private string _deploymentConfigName; private string _deploymentGroupName; private string _deploymentId; private DeploymentOverview _deploymentOverview; private List _deploymentStatusMessages = new List(); private DeploymentStyle _deploymentStyle; private string _description; private ErrorInformation _errorInformation; private string _externalId; private FileExistsBehavior _fileExistsBehavior; private bool? _ignoreApplicationStopFailures; private bool? _instanceTerminationWaitTimeStarted; private LoadBalancerInfo _loadBalancerInfo; private AlarmConfiguration _overrideAlarmConfiguration; private RevisionLocation _previousRevision; private RelatedDeployments _relatedDeployments; private RevisionLocation _revision; private RollbackInfo _rollbackInfo; private DateTime? _startTime; private DeploymentStatus _status; private TargetInstances _targetInstances; private bool? _updateOutdatedInstancesOnly; /// /// Gets and sets the property AdditionalDeploymentStatusInfo. /// /// Provides information about the results of a deployment, such as whether instances /// in the original environment in a blue/green deployment were not terminated. /// /// public string AdditionalDeploymentStatusInfo { get { return this._additionalDeploymentStatusInfo; } set { this._additionalDeploymentStatusInfo = value; } } // Check to see if AdditionalDeploymentStatusInfo property is set internal bool IsSetAdditionalDeploymentStatusInfo() { return this._additionalDeploymentStatusInfo != null; } /// /// Gets and sets the property ApplicationName. /// /// The application name. /// /// [AWSProperty(Min=1, Max=100)] public string ApplicationName { get { return this._applicationName; } set { this._applicationName = value; } } // Check to see if ApplicationName property is set internal bool IsSetApplicationName() { return this._applicationName != null; } /// /// Gets and sets the property AutoRollbackConfiguration. /// /// Information about the automatic rollback configuration associated with the deployment. /// /// public AutoRollbackConfiguration AutoRollbackConfiguration { get { return this._autoRollbackConfiguration; } set { this._autoRollbackConfiguration = value; } } // Check to see if AutoRollbackConfiguration property is set internal bool IsSetAutoRollbackConfiguration() { return this._autoRollbackConfiguration != null; } /// /// Gets and sets the property BlueGreenDeploymentConfiguration. /// /// Information about blue/green deployment options for this deployment. /// /// public BlueGreenDeploymentConfiguration BlueGreenDeploymentConfiguration { get { return this._blueGreenDeploymentConfiguration; } set { this._blueGreenDeploymentConfiguration = value; } } // Check to see if BlueGreenDeploymentConfiguration property is set internal bool IsSetBlueGreenDeploymentConfiguration() { return this._blueGreenDeploymentConfiguration != null; } /// /// Gets and sets the property CompleteTime. /// /// A timestamp that indicates when the deployment was complete. /// /// public DateTime CompleteTime { get { return this._completeTime.GetValueOrDefault(); } set { this._completeTime = value; } } // Check to see if CompleteTime property is set internal bool IsSetCompleteTime() { return this._completeTime.HasValue; } /// /// Gets and sets the property ComputePlatform. /// /// The destination platform type for the deployment (Lambda, Server, /// or ECS). /// /// public ComputePlatform ComputePlatform { get { return this._computePlatform; } set { this._computePlatform = value; } } // Check to see if ComputePlatform property is set internal bool IsSetComputePlatform() { return this._computePlatform != null; } /// /// Gets and sets the property CreateTime. /// /// A timestamp that indicates when the deployment was created. /// /// public DateTime CreateTime { get { return this._createTime.GetValueOrDefault(); } set { this._createTime = value; } } // Check to see if CreateTime property is set internal bool IsSetCreateTime() { return this._createTime.HasValue; } /// /// Gets and sets the property Creator. /// /// The means by which the deployment was created: /// ///
  • /// /// user: A user created the deployment. /// ///
  • /// /// autoscaling: Amazon EC2 Auto Scaling created the deployment. /// ///
  • /// /// codeDeployRollback: A rollback process created the deployment. /// ///
  • /// /// CodeDeployAutoUpdate: An auto-update process created the deployment /// when it detected outdated Amazon EC2 instances. /// ///
///
public DeploymentCreator Creator { get { return this._creator; } set { this._creator = value; } } // Check to see if Creator property is set internal bool IsSetCreator() { return this._creator != null; } /// /// Gets and sets the property DeploymentConfigName. /// /// The deployment configuration name. /// /// [AWSProperty(Min=1, Max=100)] public string DeploymentConfigName { get { return this._deploymentConfigName; } set { this._deploymentConfigName = value; } } // Check to see if DeploymentConfigName property is set internal bool IsSetDeploymentConfigName() { return this._deploymentConfigName != null; } /// /// Gets and sets the property DeploymentGroupName. /// /// The deployment group name. /// /// [AWSProperty(Min=1, Max=100)] public string DeploymentGroupName { get { return this._deploymentGroupName; } set { this._deploymentGroupName = value; } } // Check to see if DeploymentGroupName property is set internal bool IsSetDeploymentGroupName() { return this._deploymentGroupName != null; } /// /// Gets and sets the property DeploymentId. /// /// The unique ID of a deployment. /// /// public string DeploymentId { get { return this._deploymentId; } set { this._deploymentId = value; } } // Check to see if DeploymentId property is set internal bool IsSetDeploymentId() { return this._deploymentId != null; } /// /// Gets and sets the property DeploymentOverview. /// /// A summary of the deployment status of the instances in the deployment. /// /// public DeploymentOverview DeploymentOverview { get { return this._deploymentOverview; } set { this._deploymentOverview = value; } } // Check to see if DeploymentOverview property is set internal bool IsSetDeploymentOverview() { return this._deploymentOverview != null; } /// /// Gets and sets the property DeploymentStatusMessages. /// /// Messages that contain information about the status of a deployment. /// /// public List DeploymentStatusMessages { get { return this._deploymentStatusMessages; } set { this._deploymentStatusMessages = value; } } // Check to see if DeploymentStatusMessages property is set internal bool IsSetDeploymentStatusMessages() { return this._deploymentStatusMessages != null && this._deploymentStatusMessages.Count > 0; } /// /// Gets and sets the property DeploymentStyle. /// /// Information about the type of deployment, either in-place or blue/green, you want /// to run and whether to route deployment traffic behind a load balancer. /// /// public DeploymentStyle DeploymentStyle { get { return this._deploymentStyle; } set { this._deploymentStyle = value; } } // Check to see if DeploymentStyle property is set internal bool IsSetDeploymentStyle() { return this._deploymentStyle != null; } /// /// Gets and sets the property Description. /// /// A comment about the deployment. /// /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property ErrorInformation. /// /// Information about any error associated with this deployment. /// /// public ErrorInformation ErrorInformation { get { return this._errorInformation; } set { this._errorInformation = value; } } // Check to see if ErrorInformation property is set internal bool IsSetErrorInformation() { return this._errorInformation != null; } /// /// Gets and sets the property ExternalId. /// /// The unique ID for an external resource (for example, a CloudFormation stack ID) that /// is linked to this deployment. /// /// public string ExternalId { get { return this._externalId; } set { this._externalId = value; } } // Check to see if ExternalId property is set internal bool IsSetExternalId() { return this._externalId != null; } /// /// Gets and sets the property FileExistsBehavior. /// /// Information about how CodeDeploy handles files that already exist in a deployment /// target location but weren't part of the previous successful deployment. /// ///
  • /// /// DISALLOW: The deployment fails. This is also the default behavior if /// no option is specified. /// ///
  • /// /// OVERWRITE: The version of the file from the application revision currently /// being deployed replaces the version already on the instance. /// ///
  • /// /// RETAIN: The version of the file already on the instance is kept and /// used as part of the new deployment. /// ///
///
public FileExistsBehavior FileExistsBehavior { get { return this._fileExistsBehavior; } set { this._fileExistsBehavior = value; } } // Check to see if FileExistsBehavior property is set internal bool IsSetFileExistsBehavior() { return this._fileExistsBehavior != null; } /// /// Gets and sets the property IgnoreApplicationStopFailures. /// /// If true, then if an ApplicationStop, BeforeBlockTraffic, /// or AfterBlockTraffic deployment lifecycle event to an instance fails, /// then the deployment continues to the next deployment lifecycle event. For example, /// if ApplicationStop fails, the deployment continues with DownloadBundle. /// If BeforeBlockTraffic fails, the deployment continues with BlockTraffic. /// If AfterBlockTraffic fails, the deployment continues with ApplicationStop. /// /// /// /// /// If false or not specified, then if a lifecycle event fails during a deployment to /// an instance, that deployment fails. If deployment to that instance is part of an overall /// deployment and the number of healthy hosts is not less than the minimum number of /// healthy hosts, then a deployment to the next instance is attempted. /// /// /// /// During a deployment, the CodeDeploy agent runs the scripts specified for ApplicationStop, /// BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec /// file from the previous successful deployment. (All other scripts are run from the /// AppSpec file in the current deployment.) If one of these scripts contains an error /// and does not run successfully, the deployment can fail. /// /// /// /// If the cause of the failure is a script from the last successful deployment that /// will never run successfully, create a new deployment and use ignoreApplicationStopFailures /// to specify that the ApplicationStop, BeforeBlockTraffic, /// and AfterBlockTraffic failures should be ignored. /// /// public bool IgnoreApplicationStopFailures { get { return this._ignoreApplicationStopFailures.GetValueOrDefault(); } set { this._ignoreApplicationStopFailures = value; } } // Check to see if IgnoreApplicationStopFailures property is set internal bool IsSetIgnoreApplicationStopFailures() { return this._ignoreApplicationStopFailures.HasValue; } /// /// Gets and sets the property InstanceTerminationWaitTimeStarted. /// /// Indicates whether the wait period set for the termination of instances in the original /// environment has started. Status is 'false' if the KEEP_ALIVE option is specified. /// Otherwise, 'true' as soon as the termination wait period starts. /// /// public bool InstanceTerminationWaitTimeStarted { get { return this._instanceTerminationWaitTimeStarted.GetValueOrDefault(); } set { this._instanceTerminationWaitTimeStarted = value; } } // Check to see if InstanceTerminationWaitTimeStarted property is set internal bool IsSetInstanceTerminationWaitTimeStarted() { return this._instanceTerminationWaitTimeStarted.HasValue; } /// /// Gets and sets the property LoadBalancerInfo. /// /// Information about the load balancer used in the deployment. /// /// public LoadBalancerInfo LoadBalancerInfo { get { return this._loadBalancerInfo; } set { this._loadBalancerInfo = value; } } // Check to see if LoadBalancerInfo property is set internal bool IsSetLoadBalancerInfo() { return this._loadBalancerInfo != null; } /// /// Gets and sets the property OverrideAlarmConfiguration. /// public AlarmConfiguration OverrideAlarmConfiguration { get { return this._overrideAlarmConfiguration; } set { this._overrideAlarmConfiguration = value; } } // Check to see if OverrideAlarmConfiguration property is set internal bool IsSetOverrideAlarmConfiguration() { return this._overrideAlarmConfiguration != null; } /// /// Gets and sets the property PreviousRevision. /// /// Information about the application revision that was deployed to the deployment group /// before the most recent successful deployment. /// /// public RevisionLocation PreviousRevision { get { return this._previousRevision; } set { this._previousRevision = value; } } // Check to see if PreviousRevision property is set internal bool IsSetPreviousRevision() { return this._previousRevision != null; } /// /// Gets and sets the property RelatedDeployments. /// public RelatedDeployments RelatedDeployments { get { return this._relatedDeployments; } set { this._relatedDeployments = value; } } // Check to see if RelatedDeployments property is set internal bool IsSetRelatedDeployments() { return this._relatedDeployments != null; } /// /// Gets and sets the property Revision. /// /// Information about the location of stored application artifacts and the service from /// which to retrieve them. /// /// public RevisionLocation Revision { get { return this._revision; } set { this._revision = value; } } // Check to see if Revision property is set internal bool IsSetRevision() { return this._revision != null; } /// /// Gets and sets the property RollbackInfo. /// /// Information about a deployment rollback. /// /// public RollbackInfo RollbackInfo { get { return this._rollbackInfo; } set { this._rollbackInfo = value; } } // Check to see if RollbackInfo property is set internal bool IsSetRollbackInfo() { return this._rollbackInfo != null; } /// /// Gets and sets the property StartTime. /// /// A timestamp that indicates when the deployment was deployed to the deployment group. /// /// /// /// In some cases, the reported value of the start time might be later than the complete /// time. This is due to differences in the clock settings of backend servers that participate /// in the deployment process. /// /// public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// /// Gets and sets the property Status. /// /// The current state of the deployment as a whole. /// /// public DeploymentStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property TargetInstances. /// /// Information about the instances that belong to the replacement environment in a blue/green /// deployment. /// /// public TargetInstances TargetInstances { get { return this._targetInstances; } set { this._targetInstances = value; } } // Check to see if TargetInstances property is set internal bool IsSetTargetInstances() { return this._targetInstances != null; } /// /// Gets and sets the property UpdateOutdatedInstancesOnly. /// /// Indicates whether only instances that are not running the latest application revision /// are to be deployed to. /// /// public bool UpdateOutdatedInstancesOnly { get { return this._updateOutdatedInstancesOnly.GetValueOrDefault(); } set { this._updateOutdatedInstancesOnly = value; } } // Check to see if UpdateOutdatedInstancesOnly property is set internal bool IsSetUpdateOutdatedInstancesOnly() { return this._updateOutdatedInstancesOnly.HasValue; } } }