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

Snowflake

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

getFileFormats

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

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

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

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

Using getFileFormats

function getFileFormats(args: GetFileFormatsArgs, opts?: InvokeOptions): Promise<GetFileFormatsResult>
def get_file_formats(database: Optional[str] = None,
                     schema: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFileFormatsResult
func GetFileFormats(ctx *Context, args *GetFileFormatsArgs, opts ...InvokeOption) (*GetFileFormatsResult, error)

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

public static class GetFileFormats {
    public static Task<GetFileFormatsResult> InvokeAsync(GetFileFormatsArgs 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 file formats from.
Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the file formats from.
database string
The database from which to return the schemas from.
schema string
The schema from which to return the file formats from.
database str
The database from which to return the schemas from.
schema str
The schema from which to return the file formats from.

getFileFormats Result

The following output properties are available:

Database string
The database from which to return the schemas from.
FileFormats List<GetFileFormatsFileFormat>
The file formats in the schema
Id string
The provider-assigned unique ID for this managed resource.
Schema string
The schema from which to return the file formats from.
Database string
The database from which to return the schemas from.
FileFormats []GetFileFormatsFileFormat
The file formats in the schema
Id string
The provider-assigned unique ID for this managed resource.
Schema string
The schema from which to return the file formats from.
database string
The database from which to return the schemas from.
fileFormats GetFileFormatsFileFormat[]
The file formats in the schema
id string
The provider-assigned unique ID for this managed resource.
schema string
The schema from which to return the file formats from.
database str
The database from which to return the schemas from.
file_formats Sequence[GetFileFormatsFileFormat]
The file formats in the schema
id str
The provider-assigned unique ID for this managed resource.
schema str
The schema from which to return the file formats from.

Supporting Types

GetFileFormatsFileFormat

Comment string
Database string
The database from which to return the schemas from.
FormatType string
Name string
Schema string
The schema from which to return the file formats from.
Comment string
Database string
The database from which to return the schemas from.
FormatType string
Name string
Schema string
The schema from which to return the file formats from.
comment string
database string
The database from which to return the schemas from.
formatType string
name string
schema string
The schema from which to return the file formats from.
comment str
database str
The database from which to return the schemas from.
format_type str
name str
schema str
The schema from which to return the file formats 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.