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

Snowflake

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

getFunctions

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Snowflake.GetFunctions.InvokeAsync(new Snowflake.GetFunctionsArgs
        {
            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.GetFunctions(ctx, &GetFunctionsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_snowflake as snowflake

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

const current = pulumi.output(snowflake.getFunctions({
    database: "MYDB",
    schema: "MYSCHEMA",
}));

Using getFunctions

function getFunctions(args: GetFunctionsArgs, opts?: InvokeOptions): Promise<GetFunctionsResult>
def get_functions(database: Optional[str] = None,
                  schema: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetFunctionsResult
func GetFunctions(ctx *Context, args *GetFunctionsArgs, opts ...InvokeOption) (*GetFunctionsResult, error)

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

public static class GetFunctions {
    public static Task<GetFunctionsResult> InvokeAsync(GetFunctionsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the functions from.
Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the functions from.
database string
The database from which to return the schemas from.
schema string
The schema from which to return the functions from.
database str
The database from which to return the schemas from.
schema str
The schema from which to return the functions from.

getFunctions Result

The following output properties are available:

Database string
The database from which to return the schemas from.
Functions List<GetFunctionsFunction>
The functions in the schema
Id string
The provider-assigned unique ID for this managed resource.
Schema string
The schema from which to return the functions from.
Database string
The database from which to return the schemas from.
Functions []GetFunctionsFunction
The functions in the schema
Id string
The provider-assigned unique ID for this managed resource.
Schema string
The schema from which to return the functions from.
database string
The database from which to return the schemas from.
functions GetFunctionsFunction[]
The functions in the schema
id string
The provider-assigned unique ID for this managed resource.
schema string
The schema from which to return the functions from.
database str
The database from which to return the schemas from.
functions Sequence[GetFunctionsFunction]
The functions in the schema
id str
The provider-assigned unique ID for this managed resource.
schema str
The schema from which to return the functions from.

Supporting Types

GetFunctionsFunction

ArgumentTypes List<string>
Comment string
Database string
The database from which to return the schemas from.
Name string
ReturnType string
Schema string
The schema from which to return the functions from.
ArgumentTypes []string
Comment string
Database string
The database from which to return the schemas from.
Name string
ReturnType string
Schema string
The schema from which to return the functions from.
argumentTypes string[]
comment string
database string
The database from which to return the schemas from.
name string
returnType string
schema string
The schema from which to return the functions from.
argument_types Sequence[str]
comment str
database str
The database from which to return the schemas from.
name str
return_type str
schema str
The schema from which to return the functions from.

Package Details

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