1. Packages
  2. Snowflake
  3. API Docs
  4. getSequences
Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi

snowflake.getSequences

Explore with Pulumi AI

snowflake logo
Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Snowflake.GetSequences.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.GetSequences(ctx, &snowflake.GetSequencesArgs{
    			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.GetSequencesArgs;
    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.getSequences(GetSequencesArgs.builder()
                .database("MYDB")
                .schema("MYSCHEMA")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    current = snowflake.get_sequences(database="MYDB",
        schema="MYSCHEMA")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const current = snowflake.getSequences({
        database: "MYDB",
        schema: "MYSCHEMA",
    });
    
    variables:
      current:
        fn::invoke:
          Function: snowflake:getSequences
          Arguments:
            database: MYDB
            schema: MYSCHEMA
    

    Using getSequences

    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 getSequences(args: GetSequencesArgs, opts?: InvokeOptions): Promise<GetSequencesResult>
    function getSequencesOutput(args: GetSequencesOutputArgs, opts?: InvokeOptions): Output<GetSequencesResult>
    def get_sequences(database: Optional[str] = None,
                      schema: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetSequencesResult
    def get_sequences_output(database: Optional[pulumi.Input[str]] = None,
                      schema: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetSequencesResult]
    func GetSequences(ctx *Context, args *GetSequencesArgs, opts ...InvokeOption) (*GetSequencesResult, error)
    func GetSequencesOutput(ctx *Context, args *GetSequencesOutputArgs, opts ...InvokeOption) GetSequencesResultOutput

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

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

    The following arguments are supported:

    Database string
    Schema string
    Database string
    Schema string
    database String
    schema String
    database string
    schema string
    database String
    schema String

    getSequences 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.
    Schema string
    The schema from which to return the sequences from.
    Sequences List<GetSequencesSequence>
    The sequences in the schema
    Database string
    The database from which to return the schemas from.
    Id string
    The provider-assigned unique ID for this managed resource.
    Schema string
    The schema from which to return the sequences from.
    Sequences []GetSequencesSequence
    The sequences in the schema
    database String
    The database from which to return the schemas from.
    id String
    The provider-assigned unique ID for this managed resource.
    schema String
    The schema from which to return the sequences from.
    sequences List<GetSequencesSequence>
    The sequences in the schema
    database string
    The database from which to return the schemas from.
    id string
    The provider-assigned unique ID for this managed resource.
    schema string
    The schema from which to return the sequences from.
    sequences GetSequencesSequence[]
    The sequences in the schema
    database str
    The database from which to return the schemas from.
    id str
    The provider-assigned unique ID for this managed resource.
    schema str
    The schema from which to return the sequences from.
    sequences Sequence[GetSequencesSequence]
    The sequences in the schema
    database String
    The database from which to return the schemas from.
    id String
    The provider-assigned unique ID for this managed resource.
    schema String
    The schema from which to return the sequences from.
    sequences List<Property Map>
    The sequences in the schema

    Supporting Types

    GetSequencesSequence

    Comment string
    Database string
    Name string
    Schema string
    Comment string
    Database string
    Name string
    Schema string
    comment String
    database String
    name String
    schema String
    comment string
    database string
    name string
    schema string
    comment String
    database String
    name String
    schema String

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.50.2 published on Friday, Mar 8, 2024 by Pulumi