Show / Hide Table of Contents

Class OutputExtensions

Extension methods for Output<T>.

Inheritance
System.Object
OutputExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi
Assembly: Pulumi.dll
Syntax
public static class OutputExtensions

Methods

View Source

AsT0<T0, T1>(Output<Union<T0, T1>>)

Declaration
public static Output<T0> AsT0<T0, T1>(this Output<Union<T0, T1>> output)
Parameters
Type Name Description
Output<Union<T0, T1>> output
Returns
Type Description
Output<T0>
Type Parameters
Name Description
T0
T1
View Source

AsT1<T0, T1>(Output<Union<T0, T1>>)

Declaration
public static Output<T1> AsT1<T0, T1>(this Output<Union<T0, T1>> output)
Parameters
Type Name Description
Output<Union<T0, T1>> output
Returns
Type Description
Output<T1>
Type Parameters
Name Description
T0
T1
View Source

First<T>(Output<ImmutableArray<T>>)

Convert an output containing an array to an output containing its first element.

Declaration
public static Output<T> First<T>(this Output<ImmutableArray<T>> array)
Parameters
Type Name Description
Output<System.Collections.Immutable.ImmutableArray<T>> array

An array wrapped into Output<T>.

Returns
Type Description
Output<T>

An Output<T> containing the first array element.

Type Parameters
Name Description
T

The type of elements in the array.

View Source

GetAt<T>(Output<ImmutableArray<T>>, Input<Int32>)

Convert an output containing an array to an output containing the array element at the specified index.

Declaration
public static Output<T> GetAt<T>(this Output<ImmutableArray<T>> array, Input<int> index)
Parameters
Type Name Description
Output<System.Collections.Immutable.ImmutableArray<T>> array

An array wrapped into Output<T>.

Input<System.Int32> index

An index to get an element at.

Returns
Type Description
Output<T>

An Output<T> containing an array element.

Type Parameters
Name Description
T

The type of elements in the array.

View Source

IsT0<T0, T1>(Output<Union<T0, T1>>)

Declaration
public static Output<bool> IsT0<T0, T1>(this Output<Union<T0, T1>> output)
Parameters
Type Name Description
Output<Union<T0, T1>> output
Returns
Type Description
Output<System.Boolean>
Type Parameters
Name Description
T0
T1
View Source

IsT1<T0, T1>(Output<Union<T0, T1>>)

Declaration
public static Output<bool> IsT1<T0, T1>(this Output<Union<T0, T1>> output)
Parameters
Type Name Description
Output<Union<T0, T1>> output
Returns
Type Description
Output<System.Boolean>
Type Parameters
Name Description
T0
T1
View Source

Length<T>(Output<ImmutableArray<T>>)

Convert an output containing an array to an output containing the length of the array.

Declaration
public static Output<int> Length<T>(this Output<ImmutableArray<T>> array)
Parameters
Type Name Description
Output<System.Collections.Immutable.ImmutableArray<T>> array

An array wrapped into Output<T>.

Returns
Type Description
Output<System.Int32>

An Output<T> containing the array length.

Type Parameters
Name Description
T

The type of elements in the array.

View Source

Value<T0, T1>(Output<Union<T0, T1>>)

Declaration
public static Output<object> Value<T0, T1>(this Output<Union<T0, T1>> output)
Parameters
Type Name Description
Output<Union<T0, T1>> output
Returns
Type Description
Output<System.Object>
Type Parameters
Name Description
T0
T1
  • View Source
Back to top Copyright 2016-2022, Pulumi Corporation.