/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

Detailed information about the drift status of the stack set.

For * stack sets, contains information about the last completed drift operation * performed on the stack set. Information about drift operations in-progress isn't * included.

For stack set operations, includes information about drift * operations currently being performed on the stack set.

For more * information, see Detecting * unmanaged changes in stack sets in the CloudFormation User * Guide.

See Also:

AWS * API Reference

*/ class StackSetDriftDetectionDetails { public: AWS_CLOUDFORMATION_API StackSetDriftDetectionDetails(); AWS_CLOUDFORMATION_API StackSetDriftDetectionDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API StackSetDriftDetectionDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Status of the stack set's actual configuration compared to its expected * template and parameter configuration. A stack set is considered to have drifted * if one or more of its stack instances have drifted from their expected template * and parameter configuration.

  • DRIFTED: One or more * of the stack instances belonging to the stack set stack differs from the * expected template and parameter configuration. A stack instance is considered to * have drifted if one or more of the resources in the associated stack have * drifted.

  • NOT_CHECKED: CloudFormation hasn't * checked the stack set for drift.

  • IN_SYNC: All of * the stack instances belonging to the stack set stack match from the expected * template and parameter configuration.

*/ inline const StackSetDriftStatus& GetDriftStatus() const{ return m_driftStatus; } /** *

Status of the stack set's actual configuration compared to its expected * template and parameter configuration. A stack set is considered to have drifted * if one or more of its stack instances have drifted from their expected template * and parameter configuration.

  • DRIFTED: One or more * of the stack instances belonging to the stack set stack differs from the * expected template and parameter configuration. A stack instance is considered to * have drifted if one or more of the resources in the associated stack have * drifted.

  • NOT_CHECKED: CloudFormation hasn't * checked the stack set for drift.

  • IN_SYNC: All of * the stack instances belonging to the stack set stack match from the expected * template and parameter configuration.

*/ inline bool DriftStatusHasBeenSet() const { return m_driftStatusHasBeenSet; } /** *

Status of the stack set's actual configuration compared to its expected * template and parameter configuration. A stack set is considered to have drifted * if one or more of its stack instances have drifted from their expected template * and parameter configuration.

  • DRIFTED: One or more * of the stack instances belonging to the stack set stack differs from the * expected template and parameter configuration. A stack instance is considered to * have drifted if one or more of the resources in the associated stack have * drifted.

  • NOT_CHECKED: CloudFormation hasn't * checked the stack set for drift.

  • IN_SYNC: All of * the stack instances belonging to the stack set stack match from the expected * template and parameter configuration.

*/ inline void SetDriftStatus(const StackSetDriftStatus& value) { m_driftStatusHasBeenSet = true; m_driftStatus = value; } /** *

Status of the stack set's actual configuration compared to its expected * template and parameter configuration. A stack set is considered to have drifted * if one or more of its stack instances have drifted from their expected template * and parameter configuration.

  • DRIFTED: One or more * of the stack instances belonging to the stack set stack differs from the * expected template and parameter configuration. A stack instance is considered to * have drifted if one or more of the resources in the associated stack have * drifted.

  • NOT_CHECKED: CloudFormation hasn't * checked the stack set for drift.

  • IN_SYNC: All of * the stack instances belonging to the stack set stack match from the expected * template and parameter configuration.

*/ inline void SetDriftStatus(StackSetDriftStatus&& value) { m_driftStatusHasBeenSet = true; m_driftStatus = std::move(value); } /** *

Status of the stack set's actual configuration compared to its expected * template and parameter configuration. A stack set is considered to have drifted * if one or more of its stack instances have drifted from their expected template * and parameter configuration.

  • DRIFTED: One or more * of the stack instances belonging to the stack set stack differs from the * expected template and parameter configuration. A stack instance is considered to * have drifted if one or more of the resources in the associated stack have * drifted.

  • NOT_CHECKED: CloudFormation hasn't * checked the stack set for drift.

  • IN_SYNC: All of * the stack instances belonging to the stack set stack match from the expected * template and parameter configuration.

*/ inline StackSetDriftDetectionDetails& WithDriftStatus(const StackSetDriftStatus& value) { SetDriftStatus(value); return *this;} /** *

Status of the stack set's actual configuration compared to its expected * template and parameter configuration. A stack set is considered to have drifted * if one or more of its stack instances have drifted from their expected template * and parameter configuration.

  • DRIFTED: One or more * of the stack instances belonging to the stack set stack differs from the * expected template and parameter configuration. A stack instance is considered to * have drifted if one or more of the resources in the associated stack have * drifted.

  • NOT_CHECKED: CloudFormation hasn't * checked the stack set for drift.

  • IN_SYNC: All of * the stack instances belonging to the stack set stack match from the expected * template and parameter configuration.

*/ inline StackSetDriftDetectionDetails& WithDriftStatus(StackSetDriftStatus&& value) { SetDriftStatus(std::move(value)); return *this;} /** *

The status of the stack set drift detection operation.

  • * COMPLETED: The drift detection operation completed without failing * on any stack instances.

  • FAILED: The drift * detection operation exceeded the specified failure tolerance.

  • * PARTIAL_SUCCESS: The drift detection operation completed without * exceeding the failure tolerance for the operation.

  • * IN_PROGRESS: The drift detection operation is currently being * performed.

  • STOPPED: The user has canceled the * drift detection operation.

*/ inline const StackSetDriftDetectionStatus& GetDriftDetectionStatus() const{ return m_driftDetectionStatus; } /** *

The status of the stack set drift detection operation.

  • * COMPLETED: The drift detection operation completed without failing * on any stack instances.

  • FAILED: The drift * detection operation exceeded the specified failure tolerance.

  • * PARTIAL_SUCCESS: The drift detection operation completed without * exceeding the failure tolerance for the operation.

  • * IN_PROGRESS: The drift detection operation is currently being * performed.

  • STOPPED: The user has canceled the * drift detection operation.

*/ inline bool DriftDetectionStatusHasBeenSet() const { return m_driftDetectionStatusHasBeenSet; } /** *

The status of the stack set drift detection operation.

  • * COMPLETED: The drift detection operation completed without failing * on any stack instances.

  • FAILED: The drift * detection operation exceeded the specified failure tolerance.

  • * PARTIAL_SUCCESS: The drift detection operation completed without * exceeding the failure tolerance for the operation.

  • * IN_PROGRESS: The drift detection operation is currently being * performed.

  • STOPPED: The user has canceled the * drift detection operation.

*/ inline void SetDriftDetectionStatus(const StackSetDriftDetectionStatus& value) { m_driftDetectionStatusHasBeenSet = true; m_driftDetectionStatus = value; } /** *

The status of the stack set drift detection operation.

  • * COMPLETED: The drift detection operation completed without failing * on any stack instances.

  • FAILED: The drift * detection operation exceeded the specified failure tolerance.

  • * PARTIAL_SUCCESS: The drift detection operation completed without * exceeding the failure tolerance for the operation.

  • * IN_PROGRESS: The drift detection operation is currently being * performed.

  • STOPPED: The user has canceled the * drift detection operation.

*/ inline void SetDriftDetectionStatus(StackSetDriftDetectionStatus&& value) { m_driftDetectionStatusHasBeenSet = true; m_driftDetectionStatus = std::move(value); } /** *

The status of the stack set drift detection operation.

  • * COMPLETED: The drift detection operation completed without failing * on any stack instances.

  • FAILED: The drift * detection operation exceeded the specified failure tolerance.

  • * PARTIAL_SUCCESS: The drift detection operation completed without * exceeding the failure tolerance for the operation.

  • * IN_PROGRESS: The drift detection operation is currently being * performed.

  • STOPPED: The user has canceled the * drift detection operation.

*/ inline StackSetDriftDetectionDetails& WithDriftDetectionStatus(const StackSetDriftDetectionStatus& value) { SetDriftDetectionStatus(value); return *this;} /** *

The status of the stack set drift detection operation.

  • * COMPLETED: The drift detection operation completed without failing * on any stack instances.

  • FAILED: The drift * detection operation exceeded the specified failure tolerance.

  • * PARTIAL_SUCCESS: The drift detection operation completed without * exceeding the failure tolerance for the operation.

  • * IN_PROGRESS: The drift detection operation is currently being * performed.

  • STOPPED: The user has canceled the * drift detection operation.

*/ inline StackSetDriftDetectionDetails& WithDriftDetectionStatus(StackSetDriftDetectionStatus&& value) { SetDriftDetectionStatus(std::move(value)); return *this;} /** *

Most recent time when CloudFormation performed a drift detection operation on * the stack set. This value will be NULL for any stack set on which * drift detection hasn't yet been performed.

*/ inline const Aws::Utils::DateTime& GetLastDriftCheckTimestamp() const{ return m_lastDriftCheckTimestamp; } /** *

Most recent time when CloudFormation performed a drift detection operation on * the stack set. This value will be NULL for any stack set on which * drift detection hasn't yet been performed.

*/ inline bool LastDriftCheckTimestampHasBeenSet() const { return m_lastDriftCheckTimestampHasBeenSet; } /** *

Most recent time when CloudFormation performed a drift detection operation on * the stack set. This value will be NULL for any stack set on which * drift detection hasn't yet been performed.

*/ inline void SetLastDriftCheckTimestamp(const Aws::Utils::DateTime& value) { m_lastDriftCheckTimestampHasBeenSet = true; m_lastDriftCheckTimestamp = value; } /** *

Most recent time when CloudFormation performed a drift detection operation on * the stack set. This value will be NULL for any stack set on which * drift detection hasn't yet been performed.

*/ inline void SetLastDriftCheckTimestamp(Aws::Utils::DateTime&& value) { m_lastDriftCheckTimestampHasBeenSet = true; m_lastDriftCheckTimestamp = std::move(value); } /** *

Most recent time when CloudFormation performed a drift detection operation on * the stack set. This value will be NULL for any stack set on which * drift detection hasn't yet been performed.

*/ inline StackSetDriftDetectionDetails& WithLastDriftCheckTimestamp(const Aws::Utils::DateTime& value) { SetLastDriftCheckTimestamp(value); return *this;} /** *

Most recent time when CloudFormation performed a drift detection operation on * the stack set. This value will be NULL for any stack set on which * drift detection hasn't yet been performed.

*/ inline StackSetDriftDetectionDetails& WithLastDriftCheckTimestamp(Aws::Utils::DateTime&& value) { SetLastDriftCheckTimestamp(std::move(value)); return *this;} /** *

The total number of stack instances belonging to this stack set.

The * total number of stack instances is equal to the total of:

  • Stack * instances that match the stack set configuration.

  • Stack * instances that have drifted from the stack set configuration.

  • *

    Stack instances where the drift detection operation has failed.

  • *
  • Stack instances currently being checked for drift.

*/ inline int GetTotalStackInstancesCount() const{ return m_totalStackInstancesCount; } /** *

The total number of stack instances belonging to this stack set.

The * total number of stack instances is equal to the total of:

  • Stack * instances that match the stack set configuration.

  • Stack * instances that have drifted from the stack set configuration.

  • *

    Stack instances where the drift detection operation has failed.

  • *
  • Stack instances currently being checked for drift.

*/ inline bool TotalStackInstancesCountHasBeenSet() const { return m_totalStackInstancesCountHasBeenSet; } /** *

The total number of stack instances belonging to this stack set.

The * total number of stack instances is equal to the total of:

  • Stack * instances that match the stack set configuration.

  • Stack * instances that have drifted from the stack set configuration.

  • *

    Stack instances where the drift detection operation has failed.

  • *
  • Stack instances currently being checked for drift.

*/ inline void SetTotalStackInstancesCount(int value) { m_totalStackInstancesCountHasBeenSet = true; m_totalStackInstancesCount = value; } /** *

The total number of stack instances belonging to this stack set.

The * total number of stack instances is equal to the total of:

  • Stack * instances that match the stack set configuration.

  • Stack * instances that have drifted from the stack set configuration.

  • *

    Stack instances where the drift detection operation has failed.

  • *
  • Stack instances currently being checked for drift.

*/ inline StackSetDriftDetectionDetails& WithTotalStackInstancesCount(int value) { SetTotalStackInstancesCount(value); return *this;} /** *

The number of stack instances that have drifted from the expected template * and parameter configuration of the stack set. A stack instance is considered to * have drifted if one or more of the resources in the associated stack don't match * their expected configuration.

*/ inline int GetDriftedStackInstancesCount() const{ return m_driftedStackInstancesCount; } /** *

The number of stack instances that have drifted from the expected template * and parameter configuration of the stack set. A stack instance is considered to * have drifted if one or more of the resources in the associated stack don't match * their expected configuration.

*/ inline bool DriftedStackInstancesCountHasBeenSet() const { return m_driftedStackInstancesCountHasBeenSet; } /** *

The number of stack instances that have drifted from the expected template * and parameter configuration of the stack set. A stack instance is considered to * have drifted if one or more of the resources in the associated stack don't match * their expected configuration.

*/ inline void SetDriftedStackInstancesCount(int value) { m_driftedStackInstancesCountHasBeenSet = true; m_driftedStackInstancesCount = value; } /** *

The number of stack instances that have drifted from the expected template * and parameter configuration of the stack set. A stack instance is considered to * have drifted if one or more of the resources in the associated stack don't match * their expected configuration.

*/ inline StackSetDriftDetectionDetails& WithDriftedStackInstancesCount(int value) { SetDriftedStackInstancesCount(value); return *this;} /** *

The number of stack instances which match the expected template and parameter * configuration of the stack set.

*/ inline int GetInSyncStackInstancesCount() const{ return m_inSyncStackInstancesCount; } /** *

The number of stack instances which match the expected template and parameter * configuration of the stack set.

*/ inline bool InSyncStackInstancesCountHasBeenSet() const { return m_inSyncStackInstancesCountHasBeenSet; } /** *

The number of stack instances which match the expected template and parameter * configuration of the stack set.

*/ inline void SetInSyncStackInstancesCount(int value) { m_inSyncStackInstancesCountHasBeenSet = true; m_inSyncStackInstancesCount = value; } /** *

The number of stack instances which match the expected template and parameter * configuration of the stack set.

*/ inline StackSetDriftDetectionDetails& WithInSyncStackInstancesCount(int value) { SetInSyncStackInstancesCount(value); return *this;} /** *

The number of stack instances that are currently being checked for drift.

*/ inline int GetInProgressStackInstancesCount() const{ return m_inProgressStackInstancesCount; } /** *

The number of stack instances that are currently being checked for drift.

*/ inline bool InProgressStackInstancesCountHasBeenSet() const { return m_inProgressStackInstancesCountHasBeenSet; } /** *

The number of stack instances that are currently being checked for drift.

*/ inline void SetInProgressStackInstancesCount(int value) { m_inProgressStackInstancesCountHasBeenSet = true; m_inProgressStackInstancesCount = value; } /** *

The number of stack instances that are currently being checked for drift.

*/ inline StackSetDriftDetectionDetails& WithInProgressStackInstancesCount(int value) { SetInProgressStackInstancesCount(value); return *this;} /** *

The number of stack instances for which the drift detection operation * failed.

*/ inline int GetFailedStackInstancesCount() const{ return m_failedStackInstancesCount; } /** *

The number of stack instances for which the drift detection operation * failed.

*/ inline bool FailedStackInstancesCountHasBeenSet() const { return m_failedStackInstancesCountHasBeenSet; } /** *

The number of stack instances for which the drift detection operation * failed.

*/ inline void SetFailedStackInstancesCount(int value) { m_failedStackInstancesCountHasBeenSet = true; m_failedStackInstancesCount = value; } /** *

The number of stack instances for which the drift detection operation * failed.

*/ inline StackSetDriftDetectionDetails& WithFailedStackInstancesCount(int value) { SetFailedStackInstancesCount(value); return *this;} private: StackSetDriftStatus m_driftStatus; bool m_driftStatusHasBeenSet = false; StackSetDriftDetectionStatus m_driftDetectionStatus; bool m_driftDetectionStatusHasBeenSet = false; Aws::Utils::DateTime m_lastDriftCheckTimestamp; bool m_lastDriftCheckTimestampHasBeenSet = false; int m_totalStackInstancesCount; bool m_totalStackInstancesCountHasBeenSet = false; int m_driftedStackInstancesCount; bool m_driftedStackInstancesCountHasBeenSet = false; int m_inSyncStackInstancesCount; bool m_inSyncStackInstancesCountHasBeenSet = false; int m_inProgressStackInstancesCount; bool m_inProgressStackInstancesCountHasBeenSet = false; int m_failedStackInstancesCount; bool m_failedStackInstancesCountHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws