Snowflake

v0.3.2 published on Tuesday, Nov 30, 2021 by Pulumi

getSchemas

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(Snowflake.GetSchemas.InvokeAsync(new Snowflake.GetSchemasArgs
        {
            Database = "MYDB",
        }));
    }

}
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.GetSchemas(ctx, &GetSchemasArgs{
			Database: "MYDB",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_snowflake as snowflake

current = snowflake.get_schemas(database="MYDB")
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";

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

Using getSchemas

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 getSchemas(args: GetSchemasArgs, opts?: InvokeOptions): Promise<GetSchemasResult>
function getSchemasOutput(args: GetSchemasOutputArgs, opts?: InvokeOptions): Output<GetSchemasResult>
def get_schemas(database: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetSchemasResult
def get_schemas_output(database: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetSchemasResult]
func GetSchemas(ctx *Context, args *GetSchemasArgs, opts ...InvokeOption) (*GetSchemasResult, error)
func GetSchemasOutput(ctx *Context, args *GetSchemasOutputArgs, opts ...InvokeOption) GetSchemasResultOutput

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

public static class GetSchemas 
{
    public static Task<GetSchemasResult> InvokeAsync(GetSchemasArgs args, InvokeOptions? opts = null)
    public static Output<GetSchemasResult> Invoke(GetSchemasInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

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

getSchemas Result

The following output properties are available:

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

Supporting Types

GetSchemasSchema

Comment string
Database string
The database from which to return the schemas from.
Name string
Comment string
Database string
The database from which to return the schemas from.
Name string
comment string
database string
The database from which to return the schemas from.
name string
comment str
database str
The database from which to return the schemas from.
name str

Package Details

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