Snowflake

Pulumi Official
Package maintained by Pulumi
v0.8.0 published on Monday, May 16, 2022 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
	})
}

Coming soon!

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",
}));

Coming soon!

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)
}
public static CompletableFuture<GetSchemasResult> getSchemas(GetSchemasArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: snowflake:index/getSchemas:getSchemas
  Arguments:
    # Arguments dictionary

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 string

The database from which to return the schemas from.

database str

The database from which to return the schemas from.

database String

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 ListSchemasSchema>

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

database String

The database from which to return the schemas from.

id String

The provider-assigned unique ID for this managed resource.

schemas List

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 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
comment String
database String

The database from which to return the schemas from.

name 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.