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

Contains information about whether the stack's actual configuration differs, * or has drifted, from its expected configuration, as defined in the stack * template and any values specified as template parameters. A stack is considered * to have drifted if one or more of its resources have drifted.

See * Also:

AWS * API Reference

*/ class StackDriftInformationSummary { public: AWS_CLOUDFORMATION_API StackDriftInformationSummary(); AWS_CLOUDFORMATION_API StackDriftInformationSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API StackDriftInformationSummary& 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's actual configuration compared to its expected template * 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.

*/ inline const StackDriftStatus& GetStackDriftStatus() const{ return m_stackDriftStatus; } /** *

Status of the stack's actual configuration compared to its expected template * 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.

*/ inline bool StackDriftStatusHasBeenSet() const { return m_stackDriftStatusHasBeenSet; } /** *

Status of the stack's actual configuration compared to its expected template * 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.

*/ inline void SetStackDriftStatus(const StackDriftStatus& value) { m_stackDriftStatusHasBeenSet = true; m_stackDriftStatus = value; } /** *

Status of the stack's actual configuration compared to its expected template * 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.

*/ inline void SetStackDriftStatus(StackDriftStatus&& value) { m_stackDriftStatusHasBeenSet = true; m_stackDriftStatus = std::move(value); } /** *

Status of the stack's actual configuration compared to its expected template * 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.

*/ inline StackDriftInformationSummary& WithStackDriftStatus(const StackDriftStatus& value) { SetStackDriftStatus(value); return *this;} /** *

Status of the stack's actual configuration compared to its expected template * 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.

*/ inline StackDriftInformationSummary& WithStackDriftStatus(StackDriftStatus&& value) { SetStackDriftStatus(std::move(value)); return *this;} /** *

Most recent time when a drift detection operation was initiated on the stack, * or any of its individual resources that support drift detection.

*/ inline const Aws::Utils::DateTime& GetLastCheckTimestamp() const{ return m_lastCheckTimestamp; } /** *

Most recent time when a drift detection operation was initiated on the stack, * or any of its individual resources that support drift detection.

*/ inline bool LastCheckTimestampHasBeenSet() const { return m_lastCheckTimestampHasBeenSet; } /** *

Most recent time when a drift detection operation was initiated on the stack, * or any of its individual resources that support drift detection.

*/ inline void SetLastCheckTimestamp(const Aws::Utils::DateTime& value) { m_lastCheckTimestampHasBeenSet = true; m_lastCheckTimestamp = value; } /** *

Most recent time when a drift detection operation was initiated on the stack, * or any of its individual resources that support drift detection.

*/ inline void SetLastCheckTimestamp(Aws::Utils::DateTime&& value) { m_lastCheckTimestampHasBeenSet = true; m_lastCheckTimestamp = std::move(value); } /** *

Most recent time when a drift detection operation was initiated on the stack, * or any of its individual resources that support drift detection.

*/ inline StackDriftInformationSummary& WithLastCheckTimestamp(const Aws::Utils::DateTime& value) { SetLastCheckTimestamp(value); return *this;} /** *

Most recent time when a drift detection operation was initiated on the stack, * or any of its individual resources that support drift detection.

*/ inline StackDriftInformationSummary& WithLastCheckTimestamp(Aws::Utils::DateTime&& value) { SetLastCheckTimestamp(std::move(value)); return *this;} private: StackDriftStatus m_stackDriftStatus; bool m_stackDriftStatusHasBeenSet = false; Aws::Utils::DateTime m_lastCheckTimestamp; bool m_lastCheckTimestampHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws