Show / Hide Table of Contents

Class GetImageVersions

Inheritance
System.Object
GetImageVersions
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.Gcp.Composer
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetImageVersions

Methods

View Source

InvokeAsync(GetImageVersionsArgs, InvokeOptions)

Provides access to available Cloud Composer versions in a region for a given project.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var all = Output.Create(Gcp.Composer.GetImageVersions.InvokeAsync());
    var test = new Gcp.Composer.Environment("test", new Gcp.Composer.EnvironmentArgs
    {
        Region = "us-central1",
        Config = new Gcp.Composer.Inputs.EnvironmentConfigArgs
        {
            Software_config = 
            {
                { "imageVersion", all.Apply(all => all.ImageVersions[0].ImageVersionId) },
            },
        },
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetImageVersionsResult> InvokeAsync(GetImageVersionsArgs args = null, InvokeOptions options = null)
Parameters
Type Name Description
GetImageVersionsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetImageVersionsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.