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

For a resource with Modify as the action, the * ResourceChange structure describes the changes CloudFormation will * make to that resource.

See Also:

AWS * API Reference

*/ class ResourceChangeDetail { public: AWS_CLOUDFORMATION_API ResourceChangeDetail(); AWS_CLOUDFORMATION_API ResourceChangeDetail(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API ResourceChangeDetail& 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; /** *

A ResourceTargetDefinition structure that describes the field * that CloudFormation will change and whether the resource will be recreated.

*/ inline const ResourceTargetDefinition& GetTarget() const{ return m_target; } /** *

A ResourceTargetDefinition structure that describes the field * that CloudFormation will change and whether the resource will be recreated.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

A ResourceTargetDefinition structure that describes the field * that CloudFormation will change and whether the resource will be recreated.

*/ inline void SetTarget(const ResourceTargetDefinition& value) { m_targetHasBeenSet = true; m_target = value; } /** *

A ResourceTargetDefinition structure that describes the field * that CloudFormation will change and whether the resource will be recreated.

*/ inline void SetTarget(ResourceTargetDefinition&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

A ResourceTargetDefinition structure that describes the field * that CloudFormation will change and whether the resource will be recreated.

*/ inline ResourceChangeDetail& WithTarget(const ResourceTargetDefinition& value) { SetTarget(value); return *this;} /** *

A ResourceTargetDefinition structure that describes the field * that CloudFormation will change and whether the resource will be recreated.

*/ inline ResourceChangeDetail& WithTarget(ResourceTargetDefinition&& value) { SetTarget(std::move(value)); return *this;} /** *

Indicates whether CloudFormation can determine the target value, and whether * the target value will change before you execute a change set.

For * Static evaluations, CloudFormation can determine that the target * value will change, and its value. For example, if you directly modify the * InstanceType property of an EC2 instance, CloudFormation knows that * this property value will change, and its value, so this is a Static * evaluation.

For Dynamic evaluations, can't determine the * target value because it depends on the result of an intrinsic function, such as * a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of * the resource) might change, depending on if the resource is recreated. If the * resource is recreated, it will have a new physical ID, so all references to that * resource will also be updated.

*/ inline const EvaluationType& GetEvaluation() const{ return m_evaluation; } /** *

Indicates whether CloudFormation can determine the target value, and whether * the target value will change before you execute a change set.

For * Static evaluations, CloudFormation can determine that the target * value will change, and its value. For example, if you directly modify the * InstanceType property of an EC2 instance, CloudFormation knows that * this property value will change, and its value, so this is a Static * evaluation.

For Dynamic evaluations, can't determine the * target value because it depends on the result of an intrinsic function, such as * a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of * the resource) might change, depending on if the resource is recreated. If the * resource is recreated, it will have a new physical ID, so all references to that * resource will also be updated.

*/ inline bool EvaluationHasBeenSet() const { return m_evaluationHasBeenSet; } /** *

Indicates whether CloudFormation can determine the target value, and whether * the target value will change before you execute a change set.

For * Static evaluations, CloudFormation can determine that the target * value will change, and its value. For example, if you directly modify the * InstanceType property of an EC2 instance, CloudFormation knows that * this property value will change, and its value, so this is a Static * evaluation.

For Dynamic evaluations, can't determine the * target value because it depends on the result of an intrinsic function, such as * a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of * the resource) might change, depending on if the resource is recreated. If the * resource is recreated, it will have a new physical ID, so all references to that * resource will also be updated.

*/ inline void SetEvaluation(const EvaluationType& value) { m_evaluationHasBeenSet = true; m_evaluation = value; } /** *

Indicates whether CloudFormation can determine the target value, and whether * the target value will change before you execute a change set.

For * Static evaluations, CloudFormation can determine that the target * value will change, and its value. For example, if you directly modify the * InstanceType property of an EC2 instance, CloudFormation knows that * this property value will change, and its value, so this is a Static * evaluation.

For Dynamic evaluations, can't determine the * target value because it depends on the result of an intrinsic function, such as * a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of * the resource) might change, depending on if the resource is recreated. If the * resource is recreated, it will have a new physical ID, so all references to that * resource will also be updated.

*/ inline void SetEvaluation(EvaluationType&& value) { m_evaluationHasBeenSet = true; m_evaluation = std::move(value); } /** *

Indicates whether CloudFormation can determine the target value, and whether * the target value will change before you execute a change set.

For * Static evaluations, CloudFormation can determine that the target * value will change, and its value. For example, if you directly modify the * InstanceType property of an EC2 instance, CloudFormation knows that * this property value will change, and its value, so this is a Static * evaluation.

For Dynamic evaluations, can't determine the * target value because it depends on the result of an intrinsic function, such as * a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of * the resource) might change, depending on if the resource is recreated. If the * resource is recreated, it will have a new physical ID, so all references to that * resource will also be updated.

*/ inline ResourceChangeDetail& WithEvaluation(const EvaluationType& value) { SetEvaluation(value); return *this;} /** *

Indicates whether CloudFormation can determine the target value, and whether * the target value will change before you execute a change set.

For * Static evaluations, CloudFormation can determine that the target * value will change, and its value. For example, if you directly modify the * InstanceType property of an EC2 instance, CloudFormation knows that * this property value will change, and its value, so this is a Static * evaluation.

For Dynamic evaluations, can't determine the * target value because it depends on the result of an intrinsic function, such as * a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of * the resource) might change, depending on if the resource is recreated. If the * resource is recreated, it will have a new physical ID, so all references to that * resource will also be updated.

*/ inline ResourceChangeDetail& WithEvaluation(EvaluationType&& value) { SetEvaluation(std::move(value)); return *this;} /** *

The group to which the CausingEntity value belongs. There are * five entity groups:

  • ResourceReference entities * are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }.

  • *
  • ParameterReference entities are Ref intrinsic * functions that get template parameter values, such as { "Ref" : * "MyPasswordParameter" }.

  • * ResourceAttribute entities are Fn::GetAtt intrinsic * functions that get resource attribute values, such as { "Fn::GetAtt" : [ * "MyEC2InstanceResource", "PublicDnsName" ] }.

  • * DirectModification entities are changes that are made directly to * the template.

  • Automatic entities are * AWS::CloudFormation::Stack resource types, which are also known as * nested stacks. If you made no changes to the * AWS::CloudFormation::Stack resource, CloudFormation sets the * ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible * to CloudFormation until you run an update on the parent stack.

*/ inline const ChangeSource& GetChangeSource() const{ return m_changeSource; } /** *

The group to which the CausingEntity value belongs. There are * five entity groups:

  • ResourceReference entities * are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }.

  • *
  • ParameterReference entities are Ref intrinsic * functions that get template parameter values, such as { "Ref" : * "MyPasswordParameter" }.

  • * ResourceAttribute entities are Fn::GetAtt intrinsic * functions that get resource attribute values, such as { "Fn::GetAtt" : [ * "MyEC2InstanceResource", "PublicDnsName" ] }.

  • * DirectModification entities are changes that are made directly to * the template.

  • Automatic entities are * AWS::CloudFormation::Stack resource types, which are also known as * nested stacks. If you made no changes to the * AWS::CloudFormation::Stack resource, CloudFormation sets the * ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible * to CloudFormation until you run an update on the parent stack.

*/ inline bool ChangeSourceHasBeenSet() const { return m_changeSourceHasBeenSet; } /** *

The group to which the CausingEntity value belongs. There are * five entity groups:

  • ResourceReference entities * are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }.

  • *
  • ParameterReference entities are Ref intrinsic * functions that get template parameter values, such as { "Ref" : * "MyPasswordParameter" }.

  • * ResourceAttribute entities are Fn::GetAtt intrinsic * functions that get resource attribute values, such as { "Fn::GetAtt" : [ * "MyEC2InstanceResource", "PublicDnsName" ] }.

  • * DirectModification entities are changes that are made directly to * the template.

  • Automatic entities are * AWS::CloudFormation::Stack resource types, which are also known as * nested stacks. If you made no changes to the * AWS::CloudFormation::Stack resource, CloudFormation sets the * ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible * to CloudFormation until you run an update on the parent stack.

*/ inline void SetChangeSource(const ChangeSource& value) { m_changeSourceHasBeenSet = true; m_changeSource = value; } /** *

The group to which the CausingEntity value belongs. There are * five entity groups:

  • ResourceReference entities * are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }.

  • *
  • ParameterReference entities are Ref intrinsic * functions that get template parameter values, such as { "Ref" : * "MyPasswordParameter" }.

  • * ResourceAttribute entities are Fn::GetAtt intrinsic * functions that get resource attribute values, such as { "Fn::GetAtt" : [ * "MyEC2InstanceResource", "PublicDnsName" ] }.

  • * DirectModification entities are changes that are made directly to * the template.

  • Automatic entities are * AWS::CloudFormation::Stack resource types, which are also known as * nested stacks. If you made no changes to the * AWS::CloudFormation::Stack resource, CloudFormation sets the * ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible * to CloudFormation until you run an update on the parent stack.

*/ inline void SetChangeSource(ChangeSource&& value) { m_changeSourceHasBeenSet = true; m_changeSource = std::move(value); } /** *

The group to which the CausingEntity value belongs. There are * five entity groups:

  • ResourceReference entities * are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }.

  • *
  • ParameterReference entities are Ref intrinsic * functions that get template parameter values, such as { "Ref" : * "MyPasswordParameter" }.

  • * ResourceAttribute entities are Fn::GetAtt intrinsic * functions that get resource attribute values, such as { "Fn::GetAtt" : [ * "MyEC2InstanceResource", "PublicDnsName" ] }.

  • * DirectModification entities are changes that are made directly to * the template.

  • Automatic entities are * AWS::CloudFormation::Stack resource types, which are also known as * nested stacks. If you made no changes to the * AWS::CloudFormation::Stack resource, CloudFormation sets the * ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible * to CloudFormation until you run an update on the parent stack.

*/ inline ResourceChangeDetail& WithChangeSource(const ChangeSource& value) { SetChangeSource(value); return *this;} /** *

The group to which the CausingEntity value belongs. There are * five entity groups:

  • ResourceReference entities * are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }.

  • *
  • ParameterReference entities are Ref intrinsic * functions that get template parameter values, such as { "Ref" : * "MyPasswordParameter" }.

  • * ResourceAttribute entities are Fn::GetAtt intrinsic * functions that get resource attribute values, such as { "Fn::GetAtt" : [ * "MyEC2InstanceResource", "PublicDnsName" ] }.

  • * DirectModification entities are changes that are made directly to * the template.

  • Automatic entities are * AWS::CloudFormation::Stack resource types, which are also known as * nested stacks. If you made no changes to the * AWS::CloudFormation::Stack resource, CloudFormation sets the * ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible * to CloudFormation until you run an update on the parent stack.

*/ inline ResourceChangeDetail& WithChangeSource(ChangeSource&& value) { SetChangeSource(std::move(value)); return *this;} /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline const Aws::String& GetCausingEntity() const{ return m_causingEntity; } /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline bool CausingEntityHasBeenSet() const { return m_causingEntityHasBeenSet; } /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline void SetCausingEntity(const Aws::String& value) { m_causingEntityHasBeenSet = true; m_causingEntity = value; } /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline void SetCausingEntity(Aws::String&& value) { m_causingEntityHasBeenSet = true; m_causingEntity = std::move(value); } /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline void SetCausingEntity(const char* value) { m_causingEntityHasBeenSet = true; m_causingEntity.assign(value); } /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline ResourceChangeDetail& WithCausingEntity(const Aws::String& value) { SetCausingEntity(value); return *this;} /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline ResourceChangeDetail& WithCausingEntity(Aws::String&& value) { SetCausingEntity(std::move(value)); return *this;} /** *

The identity of the entity that triggered this change. This entity is a * member of the group that's specified by the ChangeSource field. For * example, if you modified the value of the KeyPairName parameter, * the CausingEntity is the name of the parameter * (KeyPairName).

If the ChangeSource value is * DirectModification, no value is given for * CausingEntity.

*/ inline ResourceChangeDetail& WithCausingEntity(const char* value) { SetCausingEntity(value); return *this;} private: ResourceTargetDefinition m_target; bool m_targetHasBeenSet = false; EvaluationType m_evaluation; bool m_evaluationHasBeenSet = false; ChangeSource m_changeSource; bool m_changeSourceHasBeenSet = false; Aws::String m_causingEntity; bool m_causingEntityHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws