/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the drift information for a resource that has been checked for
* drift. This includes actual and expected property values for resources in which
* CloudFormation has detected drift. Only resource properties explicitly defined
* in the stack template are checked for drift. For more information, see Detecting
* Unregulated Configuration Changes to Stacks and Resources. Resources
* that don't currently support drift detection can't be checked. For a list of
* resources that support drift detection, see Resources
* that Support Drift Detection. Use DetectStackResourceDrift to
* detect drift on individual resources, or DetectStackDrift to detect drift
* on all resources in a given stack that support drift detection.See
* Also:
AWS
* API Reference
The ID of the stack.
*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *The ID of the stack.
*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *The ID of the stack.
*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *The ID of the stack.
*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *The ID of the stack.
*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *The ID of the stack.
*/ inline StackResourceDrift& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *The ID of the stack.
*/ inline StackResourceDrift& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *The ID of the stack.
*/ inline StackResourceDrift& WithStackId(const char* value) { SetStackId(value); return *this;} /** *The logical name of the resource specified in the template.
*/ inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; } /** *The logical name of the resource specified in the template.
*/ inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; } /** *The logical name of the resource specified in the template.
*/ inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; } /** *The logical name of the resource specified in the template.
*/ inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); } /** *The logical name of the resource specified in the template.
*/ inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); } /** *The logical name of the resource specified in the template.
*/ inline StackResourceDrift& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;} /** *The logical name of the resource specified in the template.
*/ inline StackResourceDrift& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;} /** *The logical name of the resource specified in the template.
*/ inline StackResourceDrift& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;} /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; } /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; } /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; } /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); } /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); } /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline StackResourceDrift& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;} /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline StackResourceDrift& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;} /** *The name or unique identifier that corresponds to a physical instance ID of a * resource supported by CloudFormation.
*/ inline StackResourceDrift& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;} /** *Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline const Aws::VectorContext information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline bool PhysicalResourceIdContextHasBeenSet() const { return m_physicalResourceIdContextHasBeenSet; } /** *Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline void SetPhysicalResourceIdContext(const Aws::VectorContext information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline void SetPhysicalResourceIdContext(Aws::VectorContext information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline StackResourceDrift& WithPhysicalResourceIdContext(const Aws::VectorContext information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline StackResourceDrift& WithPhysicalResourceIdContext(Aws::VectorContext information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline StackResourceDrift& AddPhysicalResourceIdContext(const PhysicalResourceIdContextKeyValuePair& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext.push_back(value); return *this; } /** *Context information that enables CloudFormation to uniquely identify a * resource. CloudFormation uses context key-value pairs in cases where a * resource's logical and physical IDs aren't enough to uniquely identify that * resource. Each context key-value pair specifies a unique resource that contains * the targeted resource.
*/ inline StackResourceDrift& AddPhysicalResourceIdContext(PhysicalResourceIdContextKeyValuePair&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext.push_back(std::move(value)); return *this; } /** *The type of the resource.
*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *The type of the resource.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of the resource.
*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of the resource.
*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of the resource.
*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *The type of the resource.
*/ inline StackResourceDrift& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *The type of the resource.
*/ inline StackResourceDrift& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *The type of the resource.
*/ inline StackResourceDrift& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the expected property values of the stack * resource, as defined in the stack template and any values specified as template * parameters.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A JSON structure containing the actual property values of the stack * resource.
For resources whose StackResourceDriftStatus
is
* DELETED
, this structure will not be present.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
A collection of the resource properties whose actual values differ from their
* expected values. These will be present only for resources whose
* StackResourceDriftStatus
is MODIFIED
.
Status of the resource's actual configuration compared to its expected * configuration.
DELETED
: The resource differs from
* its expected template configuration because the resource has been deleted.
MODIFIED
: One or more resource properties differ
* from their expected values (as defined in the stack template and any values
* specified as template parameters).
IN_SYNC
: The
* resource's actual configuration matches its expected template configuration.
NOT_CHECKED
: CloudFormation does not currently
* return this value.
Status of the resource's actual configuration compared to its expected * configuration.
DELETED
: The resource differs from
* its expected template configuration because the resource has been deleted.
MODIFIED
: One or more resource properties differ
* from their expected values (as defined in the stack template and any values
* specified as template parameters).
IN_SYNC
: The
* resource's actual configuration matches its expected template configuration.
NOT_CHECKED
: CloudFormation does not currently
* return this value.
Status of the resource's actual configuration compared to its expected * configuration.
DELETED
: The resource differs from
* its expected template configuration because the resource has been deleted.
MODIFIED
: One or more resource properties differ
* from their expected values (as defined in the stack template and any values
* specified as template parameters).
IN_SYNC
: The
* resource's actual configuration matches its expected template configuration.
NOT_CHECKED
: CloudFormation does not currently
* return this value.
Status of the resource's actual configuration compared to its expected * configuration.
DELETED
: The resource differs from
* its expected template configuration because the resource has been deleted.
MODIFIED
: One or more resource properties differ
* from their expected values (as defined in the stack template and any values
* specified as template parameters).
IN_SYNC
: The
* resource's actual configuration matches its expected template configuration.
NOT_CHECKED
: CloudFormation does not currently
* return this value.
Status of the resource's actual configuration compared to its expected * configuration.
DELETED
: The resource differs from
* its expected template configuration because the resource has been deleted.
MODIFIED
: One or more resource properties differ
* from their expected values (as defined in the stack template and any values
* specified as template parameters).
IN_SYNC
: The
* resource's actual configuration matches its expected template configuration.
NOT_CHECKED
: CloudFormation does not currently
* return this value.
Status of the resource's actual configuration compared to its expected * configuration.
DELETED
: The resource differs from
* its expected template configuration because the resource has been deleted.
MODIFIED
: One or more resource properties differ
* from their expected values (as defined in the stack template and any values
* specified as template parameters).
IN_SYNC
: The
* resource's actual configuration matches its expected template configuration.
NOT_CHECKED
: CloudFormation does not currently
* return this value.
Time at which CloudFormation performed drift detection on the stack * resource.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *Time at which CloudFormation performed drift detection on the stack * resource.
*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *Time at which CloudFormation performed drift detection on the stack * resource.
*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *Time at which CloudFormation performed drift detection on the stack * resource.
*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *Time at which CloudFormation performed drift detection on the stack * resource.
*/ inline StackResourceDrift& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *Time at which CloudFormation performed drift detection on the stack * resource.
*/ inline StackResourceDrift& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *Contains information about the module from which the resource was created, if * the resource was created from a module included in the stack template.
*/ inline const ModuleInfo& GetModuleInfo() const{ return m_moduleInfo; } /** *Contains information about the module from which the resource was created, if * the resource was created from a module included in the stack template.
*/ inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; } /** *Contains information about the module from which the resource was created, if * the resource was created from a module included in the stack template.
*/ inline void SetModuleInfo(const ModuleInfo& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = value; } /** *Contains information about the module from which the resource was created, if * the resource was created from a module included in the stack template.
*/ inline void SetModuleInfo(ModuleInfo&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::move(value); } /** *Contains information about the module from which the resource was created, if * the resource was created from a module included in the stack template.
*/ inline StackResourceDrift& WithModuleInfo(const ModuleInfo& value) { SetModuleInfo(value); return *this;} /** *Contains information about the module from which the resource was created, if * the resource was created from a module included in the stack template.
*/ inline StackResourceDrift& WithModuleInfo(ModuleInfo&& value) { SetModuleInfo(std::move(value)); return *this;} private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_logicalResourceId; bool m_logicalResourceIdHasBeenSet = false; Aws::String m_physicalResourceId; bool m_physicalResourceIdHasBeenSet = false; Aws::Vector