Class Alias
Alias is a 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.
Use Urn in the case where a prior URN is known and can just be specified in full. Otherwise, provide some subset of the other properties in this type to generate an appropriate urn from the pre-existing values of the Resource with certain parts overridden.
The presence of a property indicates if its value should be used. If absent (i.e. null), then the value is not used.
Note: because of the above, there needs to be special handling to indicate that the previous Parent of a Resource was null. Specifically, pass in:
Aliases = { new Alias { NoParent = true } }
Inheritance
Inherited Members
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public sealed class Alias
Properties
View SourceName
The previous name of the resource. If null, the current name of the resource is used.
Declaration
public Input<string> Name { get; set; }
Property Value
Type | Description |
---|---|
Input<System.String> |
NoParent
Used to indicate the resource previously had no parent. If false this property is ignored.
To specify no original parent, use new Alias { NoParent = true }
.
Declaration
public bool NoParent { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Parent
The previous parent of the resource. If null, the current parent of the resource is used.
To specify no original parent, use new Alias { NoParent = true }
.
Declaration
public Resource Parent { get; set; }
Property Value
Type | Description |
---|---|
Resource |
ParentUrn
The previous parent of the resource. If null, the current parent of the resource is used.
To specify no original parent, use new Alias { NoParent = true }
.
Declaration
public Input<string> ParentUrn { get; set; }
Property Value
Type | Description |
---|---|
Input<System.String> |
Project
The previous project of the resource. If null, defaults to the value of Pulumi.IDeployment.ProjectName.
Declaration
public Input<string> Project { get; set; }
Property Value
Type | Description |
---|---|
Input<System.String> |
Stack
The previous stack of the resource. If null, defaults to the value of Pulumi.IDeployment.StackName.
Declaration
public Input<string> Stack { get; set; }
Property Value
Type | Description |
---|---|
Input<System.String> |
Type
The previous type of the resource. If null, the current type of the resource is used.
Declaration
public Input<string> Type { get; set; }
Property Value
Type | Description |
---|---|
Input<System.String> |
Urn
The previous urn to alias to. If this is provided, no other properties in this type should be provided.
Declaration
public string Urn { get; set; }
Property Value
Type | Description |
---|---|
System.String |