Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi
snowflake.getStreams
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const current = snowflake.getStreams({
database: "MYDB",
schema: "MYSCHEMA",
});
import pulumi
import pulumi_snowflake as snowflake
current = snowflake.get_streams(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.GetStreams(ctx, &snowflake.GetStreamsArgs{
Database: "MYDB",
Schema: "MYSCHEMA",
}, 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.GetStreams.Invoke(new()
{
Database = "MYDB",
Schema = "MYSCHEMA",
});
});
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.GetStreamsArgs;
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.getStreams(GetStreamsArgs.builder()
.database("MYDB")
.schema("MYSCHEMA")
.build());
}
}
variables:
current:
fn::invoke:
Function: snowflake:getStreams
Arguments:
database: MYDB
schema: MYSCHEMA
Using getStreams
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 getStreams(args: GetStreamsArgs, opts?: InvokeOptions): Promise<GetStreamsResult>
function getStreamsOutput(args: GetStreamsOutputArgs, opts?: InvokeOptions): Output<GetStreamsResult>
def get_streams(database: Optional[str] = None,
schema: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStreamsResult
def get_streams_output(database: Optional[pulumi.Input[str]] = None,
schema: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStreamsResult]
func GetStreams(ctx *Context, args *GetStreamsArgs, opts ...InvokeOption) (*GetStreamsResult, error)
func GetStreamsOutput(ctx *Context, args *GetStreamsOutputArgs, opts ...InvokeOption) GetStreamsResultOutput
> Note: This function is named GetStreams
in the Go SDK.
public static class GetStreams
{
public static Task<GetStreamsResult> InvokeAsync(GetStreamsArgs args, InvokeOptions? opts = null)
public static Output<GetStreamsResult> Invoke(GetStreamsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStreamsResult> getStreams(GetStreamsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: snowflake:index/getStreams:getStreams
arguments:
# arguments dictionary
The following arguments are supported:
getStreams Result
The following output properties are available:
- Database string
- The database from which to return the streams from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schema string
- The schema from which to return the streams from.
- Streams
List<Get
Streams Stream> - The streams in the schema
- Database string
- The database from which to return the streams from.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schema string
- The schema from which to return the streams from.
- Streams
[]Get
Streams Stream - The streams in the schema
- database String
- The database from which to return the streams from.
- id String
- The provider-assigned unique ID for this managed resource.
- schema String
- The schema from which to return the streams from.
- streams
List<Get
Streams Stream> - The streams in the schema
- database string
- The database from which to return the streams from.
- id string
- The provider-assigned unique ID for this managed resource.
- schema string
- The schema from which to return the streams from.
- streams
Get
Streams Stream[] - The streams in the schema
- database str
- The database from which to return the streams from.
- id str
- The provider-assigned unique ID for this managed resource.
- schema str
- The schema from which to return the streams from.
- streams
Sequence[Get
Streams Stream] - The streams in the schema
- database String
- The database from which to return the streams from.
- id String
- The provider-assigned unique ID for this managed resource.
- schema String
- The schema from which to return the streams from.
- streams List<Property Map>
- The streams in the schema
Supporting Types
GetStreamsStream
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.