/*
* 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 cloudformation-2010-05-15.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.CloudFormation.Model
{
///
/// This is the response object from the DescribeStackDriftDetectionStatus operation.
///
public partial class DescribeStackDriftDetectionStatusResponse : AmazonWebServiceResponse
{
private StackDriftDetectionStatus _detectionStatus;
private string _detectionStatusReason;
private int? _driftedStackResourceCount;
private string _stackDriftDetectionId;
private StackDriftStatus _stackDriftStatus;
private string _stackId;
private DateTime? _timestamp;
///
/// Gets and sets the property DetectionStatus.
///
/// The status of the stack drift detection operation.
///
/// -
///
///
DETECTION_COMPLETE
: The stack drift detection operation has successfully
/// completed for all resources in the stack that support drift detection. (Resources
/// that don't currently support stack detection remain unchecked.)
///
///
///
/// If you specified logical resource IDs for CloudFormation to use as a filter for the
/// stack drift detection operation, only the resources with those logical IDs are checked
/// for drift.
///
/// -
///
///
DETECTION_FAILED
: The stack drift detection operation has failed for
/// at least one resource in the stack. Results will be available for resources on which
/// CloudFormation successfully completed drift detection.
///
/// -
///
///
DETECTION_IN_PROGRESS
: The stack drift detection operation is currently
/// in progress.
///
///
///
[AWSProperty(Required=true)]
public StackDriftDetectionStatus DetectionStatus
{
get { return this._detectionStatus; }
set { this._detectionStatus = value; }
}
// Check to see if DetectionStatus property is set
internal bool IsSetDetectionStatus()
{
return this._detectionStatus != null;
}
///
/// Gets and sets the property DetectionStatusReason.
///
/// The reason the stack drift detection operation has its current status.
///
///
public string DetectionStatusReason
{
get { return this._detectionStatusReason; }
set { this._detectionStatusReason = value; }
}
// Check to see if DetectionStatusReason property is set
internal bool IsSetDetectionStatusReason()
{
return this._detectionStatusReason != null;
}
///
/// Gets and sets the property DriftedStackResourceCount.
///
/// Total number of stack resources that have drifted. This is NULL until the drift detection
/// operation reaches a status of DETECTION_COMPLETE
. This value will be
/// 0 for stacks whose drift status is IN_SYNC
.
///
///
public int DriftedStackResourceCount
{
get { return this._driftedStackResourceCount.GetValueOrDefault(); }
set { this._driftedStackResourceCount = value; }
}
// Check to see if DriftedStackResourceCount property is set
internal bool IsSetDriftedStackResourceCount()
{
return this._driftedStackResourceCount.HasValue;
}
///
/// Gets and sets the property StackDriftDetectionId.
///
/// The ID of the drift detection results of this operation.
///
///
///
/// CloudFormation generates new results, with a new drift detection ID, each time this
/// operation is run. However, the number of reports CloudFormation retains for any given
/// stack, and for how long, may vary.
///
///
[AWSProperty(Required=true, Min=1, Max=36)]
public string StackDriftDetectionId
{
get { return this._stackDriftDetectionId; }
set { this._stackDriftDetectionId = value; }
}
// Check to see if StackDriftDetectionId property is set
internal bool IsSetStackDriftDetectionId()
{
return this._stackDriftDetectionId != null;
}
///
/// Gets and sets the property StackDriftStatus.
///
/// Status of the stack's actual configuration compared to its expected configuration.
///
/// -
///
///
DRIFTED
: The stack differs from its expected template configuration.
/// A stack is considered to have drifted if one or more of its resources have drifted.
///
/// -
///
///
NOT_CHECKED
: CloudFormation hasn't checked if the stack differs from
/// its expected template configuration.
///
/// -
///
///
IN_SYNC
: The stack's actual configuration matches its expected template
/// configuration.
///
/// -
///
///
UNKNOWN
: This value is reserved for future use.
///
///
///
public StackDriftStatus StackDriftStatus
{
get { return this._stackDriftStatus; }
set { this._stackDriftStatus = value; }
}
// Check to see if StackDriftStatus property is set
internal bool IsSetStackDriftStatus()
{
return this._stackDriftStatus != null;
}
///
/// Gets and sets the property StackId.
///
/// The ID of the stack.
///
///
[AWSProperty(Required=true)]
public string StackId
{
get { return this._stackId; }
set { this._stackId = value; }
}
// Check to see if StackId property is set
internal bool IsSetStackId()
{
return this._stackId != null;
}
///
/// Gets and sets the property Timestamp.
///
/// Time at which the stack drift detection operation was initiated.
///
///
[AWSProperty(Required=true)]
public DateTime Timestamp
{
get { return this._timestamp.GetValueOrDefault(); }
set { this._timestamp = value; }
}
// Check to see if Timestamp property is set
internal bool IsSetTimestamp()
{
return this._timestamp.HasValue;
}
}
}