Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi
snowflake.getSchemas
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const current = snowflake.getSchemas({
database: "MYDB",
});
import pulumi
import pulumi_snowflake as snowflake
current = snowflake.get_schemas(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, &snowflake.GetSchemasArgs{
Database: "MYDB",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Snowflake = Pulumi.Snowflake;
return await Deployment.RunAsync(() =>
{
var current = Snowflake.GetSchemas.Invoke(new()
{
Database = "MYDB",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.snowflake.SnowflakeFunctions;
import com.pulumi.snowflake.inputs.GetSchemasArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var current = SnowflakeFunctions.getSchemas(GetSchemasArgs.builder()
.database("MYDB")
.build());
}
}
variables:
current:
fn::invoke:
Function: snowflake:getSchemas
Arguments:
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)
}
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<Get
Schemas Schema> - 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
[]Get
Schemas Schema - 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<Get
Schemas Schema> - 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
Get
Schemas Schema[] - 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[Get
Schemas Schema] - 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<Property Map>
- The schemas in the database
Supporting Types
GetSchemasSchema
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.