Struct Urn
An automatically generated logical URN, used to stably identify resources. These are created
automatically by Pulumi to identify resources. They cannot be manually constructed.
Assembly: Pulumi.dll
Syntax
public readonly struct Urn : IEquatable<Urn>
Constructors
View Source
Urn(string)
Declaration
Parameters
| Type |
Name |
Description |
| string |
value |
|
Methods
View Source
Computes a URN from the combination of a resource name, resource type, optional parent,
optional project and optional stack.
Declaration
public static Output<string> Create(Input<string> name, Input<string> type, Resource? parent = null, Input<string>? parentUrn = null, Input<string>? project = null, Input<string>? stack = null)
Parameters
Returns
View Source
Equals(Urn)
Determines whether the specified URN is equal to the current URN.
Declaration
public bool Equals(Urn other)
Parameters
| Type |
Name |
Description |
| Urn |
other |
|
Returns
View Source
Equals(object?)
Determines whether the specified object is equal to the current URN.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
GetHashCode()
Returns a hash code for this URN.
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
ToString()
Returns the string representation of this URN.
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(Urn, Urn)
Determines whether two URN values are equal.
Declaration
public static bool operator ==(Urn left, Urn right)
Parameters
| Type |
Name |
Description |
| Urn |
left |
|
| Urn |
right |
|
Returns
View Source
implicit operator string(Urn)
Implicitly converts a URN to a string.
Declaration
public static implicit operator string(Urn value)
Parameters
| Type |
Name |
Description |
| Urn |
value |
|
Returns
View Source
operator !=(Urn, Urn)
Determines whether two URN values are not equal.
Declaration
public static bool operator !=(Urn left, Urn right)
Parameters
| Type |
Name |
Description |
| Urn |
left |
|
| Urn |
right |
|
Returns
Implements