Snowflake

Pulumi Official
Package maintained by Pulumi
v0.12.0 published on Wednesday, Jul 20, 2022 by Pulumi

getMaterializedViews

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Snowflake.GetMaterializedViews.InvokeAsync(new Snowflake.GetMaterializedViewsArgs
        {
            Database = "MYDB",
            Schema = "MYSCHEMA",
        }));
    }

}
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.GetMaterializedViews(ctx, &GetMaterializedViewsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var current = Output.of(SnowflakeFunctions.getMaterializedViews(GetMaterializedViewsArgs.builder()
            .database("MYDB")
            .schema("MYSCHEMA")
            .build()));

    }
}
import pulumi
import pulumi_snowflake as snowflake

current = snowflake.get_materialized_views(database="MYDB",
    schema="MYSCHEMA")
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

const current = pulumi.output(snowflake.getMaterializedViews({
    database: "MYDB",
    schema: "MYSCHEMA",
}));
variables:
  current:
    Fn::Invoke:
      Function: snowflake:getMaterializedViews
      Arguments:
        database: MYDB
        schema: MYSCHEMA

Using getMaterializedViews

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getMaterializedViews(args: GetMaterializedViewsArgs, opts?: InvokeOptions): Promise<GetMaterializedViewsResult>
function getMaterializedViewsOutput(args: GetMaterializedViewsOutputArgs, opts?: InvokeOptions): Output<GetMaterializedViewsResult>
def get_materialized_views(database: Optional[str] = None,
                           schema: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMaterializedViewsResult
def get_materialized_views_output(database: Optional[pulumi.Input[str]] = None,
                           schema: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMaterializedViewsResult]
func GetMaterializedViews(ctx *Context, args *GetMaterializedViewsArgs, opts ...InvokeOption) (*GetMaterializedViewsResult, error)
func GetMaterializedViewsOutput(ctx *Context, args *GetMaterializedViewsOutputArgs, opts ...InvokeOption) GetMaterializedViewsResultOutput

> Note: This function is named GetMaterializedViews in the Go SDK.

public static class GetMaterializedViews 
{
    public static Task<GetMaterializedViewsResult> InvokeAsync(GetMaterializedViewsArgs args, InvokeOptions? opts = null)
    public static Output<GetMaterializedViewsResult> Invoke(GetMaterializedViewsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMaterializedViewsResult> getMaterializedViews(GetMaterializedViewsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: snowflake:index/getMaterializedViews:getMaterializedViews
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Database string
Schema string
Database string
Schema string
database String
schema String
database string
schema string
database String
schema String

getMaterializedViews Result

The following output properties are available:

Database string
Id string

The provider-assigned unique ID for this managed resource.

MaterializedViews List<GetMaterializedViewsMaterializedView>
Schema string
Database string
Id string

The provider-assigned unique ID for this managed resource.

MaterializedViews []GetMaterializedViewsMaterializedView
Schema string
database String
id String

The provider-assigned unique ID for this managed resource.

materializedViews List<GetMaterializedViewsMaterializedView>
schema String
database string
id string

The provider-assigned unique ID for this managed resource.

materializedViews GetMaterializedViewsMaterializedView[]
schema string
database str
id str

The provider-assigned unique ID for this managed resource.

materialized_views Sequence[GetMaterializedViewsMaterializedView]
schema str
database String
id String

The provider-assigned unique ID for this managed resource.

materializedViews List<Property Map>
schema String

Supporting Types

GetMaterializedViewsMaterializedView

Comment string
Database string
Name string
Schema string
Comment string
Database string
Name string
Schema string
comment String
database String
name String
schema String
comment string
database string
name string
schema string
comment String
database String
name String
schema 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.