snowflake logo
Snowflake v0.20.0, Mar 27 23

snowflake.getFileFormats

Example Usage

using System.Collections.Generic;
using Pulumi;
using Snowflake = Pulumi.Snowflake;

return await Deployment.RunAsync(() => 
{
    var current = Snowflake.GetFileFormats.Invoke(new()
    {
        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, &snowflake.GetFileFormatsArgs{
			Database: "MYDB",
			Schema:   "MYSCHEMA",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetFileFormatsArgs;
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.getFileFormats(GetFileFormatsArgs.builder()
            .database("MYDB")
            .schema("MYSCHEMA")
            .build());

    }
}
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 = snowflake.getFileFormats({
    database: "MYDB",
    schema: "MYSCHEMA",
});
variables:
  current:
    fn::invoke:
      Function: snowflake:getFileFormats
      Arguments:
        database: MYDB
        schema: MYSCHEMA

Using getFileFormats

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 getFileFormats(args: GetFileFormatsArgs, opts?: InvokeOptions): Promise<GetFileFormatsResult>
function getFileFormatsOutput(args: GetFileFormatsOutputArgs, opts?: InvokeOptions): Output<GetFileFormatsResult>
def get_file_formats(database: Optional[str] = None,
                     schema: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFileFormatsResult
def get_file_formats_output(database: Optional[pulumi.Input[str]] = None,
                     schema: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetFileFormatsResult]
func GetFileFormats(ctx *Context, args *GetFileFormatsArgs, opts ...InvokeOption) (*GetFileFormatsResult, error)
func GetFileFormatsOutput(ctx *Context, args *GetFileFormatsOutputArgs, opts ...InvokeOption) GetFileFormatsResultOutput

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

public static class GetFileFormats 
{
    public static Task<GetFileFormatsResult> InvokeAsync(GetFileFormatsArgs args, InvokeOptions? opts = null)
    public static Output<GetFileFormatsResult> Invoke(GetFileFormatsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFileFormatsResult> getFileFormats(GetFileFormatsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: snowflake:index/getFileFormats:getFileFormats
  arguments:
    # arguments dictionary

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

database String

The database from which to return the schemas from.

schema String

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

database String

The database from which to return the schemas from.

fileFormats List<Property Map>

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.

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

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.

Package Details

Repository
Snowflake pulumi/pulumi-snowflake
License
Apache-2.0
Notes

This Pulumi package is based on the snowflake Terraform Provider.