/** * 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 { /** *

Summarizes information about whether the resource's actual configuration * differs, or has drifted, from its expected configuration.

See * Also:

AWS * API Reference

*/ class StackResourceDriftInformationSummary { public: AWS_CLOUDFORMATION_API StackResourceDriftInformationSummary(); AWS_CLOUDFORMATION_API StackResourceDriftInformationSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API StackResourceDriftInformationSummary& 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 hasn't checked if the * resource differs from its expected configuration.

    Any resources that * don't currently support drift detection have a status of * NOT_CHECKED. For more information, see Resources * that Support Drift Detection. If you performed an * ContinueUpdateRollback operation on a stack, any resources included in * ResourcesToSkip will also have a status of * NOT_CHECKED. For more information about skipping resources during * rollback operations, see Continue * Rolling Back an Update in the CloudFormation User Guide.

  • * 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 hasn't checked if the * resource differs from its expected configuration.

    Any resources that * don't currently support drift detection have a status of * NOT_CHECKED. For more information, see Resources * that Support Drift Detection. If you performed an * ContinueUpdateRollback operation on a stack, any resources included in * ResourcesToSkip will also have a status of * NOT_CHECKED. For more information about skipping resources during * rollback operations, see Continue * Rolling Back an Update in the CloudFormation User Guide.

  • * 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 hasn't checked if the * resource differs from its expected configuration.

    Any resources that * don't currently support drift detection have a status of * NOT_CHECKED. For more information, see Resources * that Support Drift Detection. If you performed an * ContinueUpdateRollback operation on a stack, any resources included in * ResourcesToSkip will also have a status of * NOT_CHECKED. For more information about skipping resources during * rollback operations, see Continue * Rolling Back an Update in the CloudFormation User Guide.

  • * 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 hasn't checked if the * resource differs from its expected configuration.

    Any resources that * don't currently support drift detection have a status of * NOT_CHECKED. For more information, see Resources * that Support Drift Detection. If you performed an * ContinueUpdateRollback operation on a stack, any resources included in * ResourcesToSkip will also have a status of * NOT_CHECKED. For more information about skipping resources during * rollback operations, see Continue * Rolling Back an Update in the CloudFormation User Guide.

  • * 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 hasn't checked if the * resource differs from its expected configuration.

    Any resources that * don't currently support drift detection have a status of * NOT_CHECKED. For more information, see Resources * that Support Drift Detection. If you performed an * ContinueUpdateRollback operation on a stack, any resources included in * ResourcesToSkip will also have a status of * NOT_CHECKED. For more information about skipping resources during * rollback operations, see Continue * Rolling Back an Update in the CloudFormation User Guide.

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

*/ inline StackResourceDriftInformationSummary& 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 hasn't checked if the * resource differs from its expected configuration.

    Any resources that * don't currently support drift detection have a status of * NOT_CHECKED. For more information, see Resources * that Support Drift Detection. If you performed an * ContinueUpdateRollback operation on a stack, any resources included in * ResourcesToSkip will also have a status of * NOT_CHECKED. For more information about skipping resources during * rollback operations, see Continue * Rolling Back an Update in the CloudFormation User Guide.

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

*/ inline StackResourceDriftInformationSummary& 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 StackResourceDriftInformationSummary& WithLastCheckTimestamp(const Aws::Utils::DateTime& value) { SetLastCheckTimestamp(value); return *this;} /** *

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

*/ inline StackResourceDriftInformationSummary& 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