Optional
nameThe previous name of the resource. If not provided, the current name of the resource is used.
Optional
parentThe previous parent of the resource. If not provided (i.e. { name: "foo" }
), the current
parent of the resource is used (opts.parent
if provided, else the implicit stack resource
parent).
To specify no original parent, use { parent: pulumi.rootStackResource }
.
Optional
projectThe previous project of the resource. If not provided, defaults to pulumi.getProject()
.
Optional
stackThe previous stack of the resource. If not provided, defaults to pulumi.getStack()
.
Optional
typeThe previous type of the resource. If not provided, the current type of the resource is used.
Generated using TypeDoc
Alias is a partial description of prior named used for a resource. It can be processed in the context of a resource creation to determine what the full aliased URN would be.
Note there is a semantic difference between properties being absent from this type and properties having the
undefined
value. Specifically, there is a difference between:The presence of a property indicates if its value should be used. If absent, then the value is not used. So, in the above while
alias.parent
isundefined
for both, the first alias means "the original urn had no parent" while the second alias means "use the current parent".Note: to indicate that a resource was previously parented by the root stack, it is recommended that you use:
aliases: [{ parent: pulumi.rootStackResource }]
This form is self-descriptive and makes the intent clearer than using:
aliases: [{ parent: undefined }]