Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Snowflake

v0.2.1 published on Monday, Sep 27, 2021 by Pulumi

getWarehouses

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Snowflake.GetWarehouses.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := snowflake.GetWarehouses(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_snowflake as snowflake

current = snowflake.get_warehouses()
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

const current = pulumi.output(snowflake.getWarehouses());

Using getWarehouses

function getWarehouses(opts?: InvokeOptions): Promise<GetWarehousesResult>
def get_warehouses(opts: Optional[InvokeOptions] = None) -> GetWarehousesResult
func GetWarehouses(ctx *Context, opts ...InvokeOption) (*GetWarehousesResult, error)

Note: This function is named GetWarehouses in the Go SDK.

public static class GetWarehouses {
    public static Task<GetWarehousesResult> InvokeAsync(InvokeOptions? opts = null)
}

getWarehouses Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Warehouses List<GetWarehousesWarehouse>
The warehouses in the database
Id string
The provider-assigned unique ID for this managed resource.
Warehouses []GetWarehousesWarehouse
The warehouses in the database
id string
The provider-assigned unique ID for this managed resource.
warehouses GetWarehousesWarehouse[]
The warehouses in the database
id str
The provider-assigned unique ID for this managed resource.
warehouses Sequence[GetWarehousesWarehouse]
The warehouses in the database

Supporting Types

GetWarehousesWarehouse

Comment string
Name string
ScalingPolicy string
Size string
State string
Type string
Comment string
Name string
ScalingPolicy string
Size string
State string
Type string
comment string
name string
scalingPolicy string
size string
state string
type string

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.