/** * 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 resource's actual configuration * differs, or has drifted, from its expected configuration.

See * Also:

AWS * API Reference

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

  • DELETED: The resource differs from * its expected configuration in that it has been deleted.

  • * MODIFIED: The resource differs from its expected configuration.

    *
  • NOT_CHECKED: CloudFormation has not checked if the * resource differs from its expected configuration.

    Any resources that do * not currently support drift detection have a status of NOT_CHECKED. * For more information, see Resources * that Support Drift Detection.

  • IN_SYNC: The * resource's actual configuration matches its expected configuration.

  • *
*/ inline const StackResourceDriftStatus& GetStackResourceDriftStatus() const{ return m_stackResourceDriftStatus; } /** *

Status of the resource's actual configuration compared to its expected * configuration

  • DELETED: The resource differs from * its expected configuration in that it has been deleted.

  • * MODIFIED: The resource differs from its expected configuration.

    *
  • NOT_CHECKED: CloudFormation has not checked if the * resource differs from its expected configuration.

    Any resources that do * not currently support drift detection have a status of NOT_CHECKED. * For more information, see Resources * that Support Drift Detection.

  • IN_SYNC: The * resource's actual configuration matches its expected configuration.

  • *
*/ inline bool StackResourceDriftStatusHasBeenSet() const { return m_stackResourceDriftStatusHasBeenSet; } /** *

Status of the resource's actual configuration compared to its expected * configuration

  • DELETED: The resource differs from * its expected configuration in that it has been deleted.

  • * MODIFIED: The resource differs from its expected configuration.

    *
  • NOT_CHECKED: CloudFormation has not checked if the * resource differs from its expected configuration.

    Any resources that do * not currently support drift detection have a status of NOT_CHECKED. * For more information, see Resources * that Support Drift Detection.

  • IN_SYNC: The * resource's actual configuration matches its expected configuration.

  • *
*/ inline void SetStackResourceDriftStatus(const StackResourceDriftStatus& value) { m_stackResourceDriftStatusHasBeenSet = true; m_stackResourceDriftStatus = value; } /** *

Status of the resource's actual configuration compared to its expected * configuration

  • DELETED: The resource differs from * its expected configuration in that it has been deleted.

  • * MODIFIED: The resource differs from its expected configuration.

    *
  • NOT_CHECKED: CloudFormation has not checked if the * resource differs from its expected configuration.

    Any resources that do * not currently support drift detection have a status of NOT_CHECKED. * For more information, see Resources * that Support Drift Detection.

  • IN_SYNC: The * resource's actual configuration matches its expected configuration.

  • *
*/ inline void SetStackResourceDriftStatus(StackResourceDriftStatus&& value) { m_stackResourceDriftStatusHasBeenSet = true; m_stackResourceDriftStatus = std::move(value); } /** *

Status of the resource's actual configuration compared to its expected * configuration

  • DELETED: The resource differs from * its expected configuration in that it has been deleted.

  • * MODIFIED: The resource differs from its expected configuration.

    *
  • NOT_CHECKED: CloudFormation has not checked if the * resource differs from its expected configuration.

    Any resources that do * not currently support drift detection have a status of NOT_CHECKED. * For more information, see Resources * that Support Drift Detection.

  • IN_SYNC: The * resource's actual configuration matches its expected configuration.

  • *
*/ inline StackResourceDriftInformation& WithStackResourceDriftStatus(const StackResourceDriftStatus& value) { SetStackResourceDriftStatus(value); return *this;} /** *

Status of the resource's actual configuration compared to its expected * configuration

  • DELETED: The resource differs from * its expected configuration in that it has been deleted.

  • * MODIFIED: The resource differs from its expected configuration.

    *
  • NOT_CHECKED: CloudFormation has not checked if the * resource differs from its expected configuration.

    Any resources that do * not currently support drift detection have a status of NOT_CHECKED. * For more information, see Resources * that Support Drift Detection.

  • IN_SYNC: The * resource's actual configuration matches its expected configuration.

  • *
*/ inline StackResourceDriftInformation& WithStackResourceDriftStatus(StackResourceDriftStatus&& value) { SetStackResourceDriftStatus(std::move(value)); return *this;} /** *

When CloudFormation last checked if the resource had drifted from its * expected configuration.

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

When CloudFormation last checked if the resource had drifted from its * expected configuration.

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

When CloudFormation last checked if the resource had drifted from its * expected configuration.

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

When CloudFormation last checked if the resource had drifted from its * expected configuration.

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

When CloudFormation last checked if the resource had drifted from its * expected configuration.

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

When CloudFormation last checked if the resource had drifted from its * expected configuration.

*/ inline StackResourceDriftInformation& WithLastCheckTimestamp(Aws::Utils::DateTime&& value) { SetLastCheckTimestamp(std::move(value)); return *this;} private: StackResourceDriftStatus m_stackResourceDriftStatus; bool m_stackResourceDriftStatusHasBeenSet = false; Aws::Utils::DateTime m_lastCheckTimestamp; bool m_lastCheckTimestampHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws