Change sets contain JSON changes that describe how ROS modifies a stack. Use change sets to preview the impact before applying changes.
Elements in JSON changes
A change set's JSON changes consist of the following elements, detailed in the data structures section below.
-
Change: the change operation, including the change type and target entity.
-
ResourceChange: the resource to change, including resource name, type, and operation.
-
ResourceChangeDetail: resource change details, including properties and resource status before and after the change.
-
ResourceTargetDefinition: the target resource definition, including properties and configurations.
-
ResourcePropertyChange: property-level change details, including values before and after the change.
-
ModuleInfo: module information for resources created from modules.
Data structures of JSON changes
Change
|
Parameter |
Type |
Description |
|
ResourceChange |
Structure |
The resource to change and the operation to perform. |
|
Type |
String |
The entity type. Set to |
ResourceChange
|
Parameter |
Type |
Description |
|
Action |
String |
The operation to perform on the resource. Valid values:
|
|
Details |
Array |
The change details. Takes effect only when Note
Available only for ROS-type stacks. |
|
LogicalResourceId |
String |
The logical ID of the resource, which is the resource name defined in the template. |
|
PhysicalResourceId |
String |
The physical ID of the resource. Takes effect only when |
|
Replacement |
String |
Whether ROS replaces the resource by creating a new one and deleting the existing one. Takes effect only when
|
|
ResourceType |
String |
The resource type. |
|
Scope |
Array of strings |
The attribute that triggers an update. Takes effect only when
Note
Available only for ROS-type stacks. |
|
PropertyChanges |
Structure array of ResourcePropertyChange |
Property-level changes. Takes effect only when Note
Available only for Terraform-type stacks. |
|
ModuleInfo |
Structure array of ModuleInfo |
Module information for the resource. Returned only if the resource is created from modules. ModuleInfo. Note
Available only for ROS-type stacks. |
ResourceChangeDetail
|
Parameter |
Type |
Description |
|
ChangeSource |
String |
The update trigger. Valid values:
|
|
CausingEntity |
String |
The entity associated with
|
|
Evaluation |
String |
Whether ROS can determine the target value before change set execution. Valid values:
|
|
Target |
Structure |
The entity that triggers the update. |
ResourceTargetDefinition
|
Parameter |
Type |
Description |
|
Attribute |
String |
The attribute that triggers the update. Valid values:
|
|
Name |
String |
When |
|
RequiresRecreation |
String |
Whether changing this property recreates the resource. Takes effect only when
|
ResourcePropertyChange
|
Parameter |
Type |
Description |
|
Name |
String. |
The property name. |
|
BeforeValue |
The data type varies based on the property. |
The property value before the update. |
|
AfterValue |
The data type varies based on the property. |
The property value after the update. Note
|
ModuleInfo
|
Parameter |
Type |
Description |
|
LogicalIdHierarchy |
String |
The logical IDs of modules containing the resource, concatenated from outermost to innermost and separated by forward slashes Example: a resource created from Module B nested in Module A:
|
|
TypeHierarchy |
String |
The types of modules containing the resource, concatenated from outermost to innermost and separated by forward slashes Example: a resource from
|
References
To view JSON changes in a change set, follow View a change set.