You can view a change set of a stack to understand the impacts of changes that Resource Orchestration Service (ROS) will apply to the stack by executing the change set. This topic describes JSON changes that are contained in a change set.
Elements in JSON changes
The JSON changes of a change set consists of the following elements. For more information about the elements, see the "Data structures of JSON changes" section of this topic.
Change: the details of the change operation that you want ROS to perform, including the change type and the entity.
ResourceChange: the details of the resource that you want ROS to change and the change operation, including the resource name, resource type, and change operation.
ResourceChangeDetail: the details of resource changes, including the resource properties and the status of the resource before and after the change operation.
ResourceTargetDefinition: the definition of the resource that you want ROS to change, including the properties and configurations of the resource.
ResourcePropertyChange: the details of a change to a resource property, including the property values and names of before and after the change.
ModuleInfo: the information about the modules.
Data structures of JSON changes
Change
Parameter | Type | Description |
ResourceChange | Structure | The resource that you want ROS to change and the operation that you want ROS to perform on the resource. |
Type | String | The type of the entity that you want ROS to change. Set the value to |
ResourceChange
Parameter | Type | Description |
Action | String | The operation that you want ROS to perform on the resource. Valid values:
|
Details | Array | The details of changes to the resource. This parameter takes effect only when the Note This parameter is available only for stacks of the ROS type. |
LogicalResourceId | String | The logical ID of the resource. The logical ID is the resource name that is defined in the template. |
PhysicalResourceId | String | The physical ID of the resource. This parameter takes effect only when the |
Replacement | String | Specifies whether to change the resource by creating a new resource and deleting the existing resource. This parameter takes effect only when the
|
ResourceType | String | The resource type. |
Scope | Array of strings | The parameter for which ROS triggers an update. This parameter takes effect only when the
Note This parameter is available only for stacks of the ROS type. |
PropertyChanges | Structure array of ResourcePropertyChange | The changes to a resource property. This parameter takes effect only when the Note This parameter is available only for stacks of the Terraform type. |
ModuleInfo | Structure array of ModuleInfo | The information about the modules from which the resource is created. This parameter is returned only if the resource is created from modules. For more information, see ModuleInfo. Note This parameter is available only for stacks of the ROS type. |
ResourceChangeDetail
Parameter | Type | Description |
ChangeSource | String | The reason why ROS triggers an update. Valid values:
|
CausingEntity | String | The entity that is associated with the
|
Evaluation | String | Specifies whether ROS can determine the desired value, and whether the desired value is changed before you execute a change set. Valid values:
|
Target | Structure | The details of the entity for which ROS triggers an update. |
ResourceTargetDefinition
Parameter | Type | Description |
Attribute | String | The parameter for which ROS triggers an update. Valid values:
|
Name | String | If you set the |
RequiresRecreation | String | Specifies whether a change to the property causes the resource to be recreated. This parameter takes effect only when the
|
ResourcePropertyChange
Parameter | Type | Description |
Name | String. | The property name. |
BeforeValue | The data type varies based on the property. | The value of the property before ROS updates the property. |
AfterValue | The data type varies based on the property. | The value of the property after the property is updated. Note
|
ModuleInfo
Parameter | Type | Description |
LogicalIdHierarchy | String | The concatenated logical IDs of one or more modules that contain the resource. The modules are listed from the outermost layer and are separated by forward slashes In the following example, the resource is created from Module B nested within Parent Module A:
|
TypeHierarchy | String | The concatenated types of one or more modules that contain the resource. The module types are listed from the outermost layer and are separated by forward slashes In the following example, the resource is created from a module of the
|
References
For more information about how to view JSON changes, see View a change set.