Show / Hide Table of Contents

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.

Implements
IEquatable<Urn>
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public readonly struct Urn : IEquatable<Urn>

Constructors

View Source

Urn(string)

Declaration
public Urn(string value)
Parameters
Type Name Description
string value

Methods

View Source

Create(Input<string>, Input<string>, Resource?, Input<string>?, Input<string>?, Input<string>?)

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
Type Name Description
Input<string> name
Input<string> type
Resource parent
Input<string> parentUrn
Input<string> project
Input<string> stack
Returns
Type Description
Output<string>
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
Type Description
bool
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
Type Description
bool
Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Returns a hash code for this URN.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
ValueType.GetHashCode()
View Source

ToString()

Returns the string representation of this URN.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
ValueType.ToString()

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
Type Description
bool
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
Type Description
string
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
Type Description
bool

Implements

IEquatable<T>
  • View Source
Back to top Copyright 2016-2023, Pulumi Corporation.