Snowflake

v0.3.2 published on Tuesday, Nov 30, 2021 by Pulumi

getRowAccessPolicies

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

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

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

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

Using getRowAccessPolicies

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 getRowAccessPolicies(args: GetRowAccessPoliciesArgs, opts?: InvokeOptions): Promise<GetRowAccessPoliciesResult>
function getRowAccessPoliciesOutput(args: GetRowAccessPoliciesOutputArgs, opts?: InvokeOptions): Output<GetRowAccessPoliciesResult>
def get_row_access_policies(database: Optional[str] = None,
                            schema: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRowAccessPoliciesResult
def get_row_access_policies_output(database: Optional[pulumi.Input[str]] = None,
                            schema: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRowAccessPoliciesResult]
func GetRowAccessPolicies(ctx *Context, args *GetRowAccessPoliciesArgs, opts ...InvokeOption) (*GetRowAccessPoliciesResult, error)
func GetRowAccessPoliciesOutput(ctx *Context, args *GetRowAccessPoliciesOutputArgs, opts ...InvokeOption) GetRowAccessPoliciesResultOutput

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

public static class GetRowAccessPolicies 
{
    public static Task<GetRowAccessPoliciesResult> InvokeAsync(GetRowAccessPoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetRowAccessPoliciesResult> Invoke(GetRowAccessPoliciesInvokeArgs 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 row access policyfrom.
Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the row access policyfrom.
database string
The database from which to return the schemas from.
schema string
The schema from which to return the row access policyfrom.
database str
The database from which to return the schemas from.
schema str
The schema from which to return the row access policyfrom.

getRowAccessPolicies 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.
RowAccessPolicies List<GetRowAccessPoliciesRowAccessPolicy>
The row access policy in the schema
Schema string
The schema from which to return the row access policyfrom.
Database string
The database from which to return the schemas from.
Id string
The provider-assigned unique ID for this managed resource.
RowAccessPolicies []GetRowAccessPoliciesRowAccessPolicy
The row access policy in the schema
Schema string
The schema from which to return the row access policyfrom.
database string
The database from which to return the schemas from.
id string
The provider-assigned unique ID for this managed resource.
rowAccessPolicies GetRowAccessPoliciesRowAccessPolicy[]
The row access policy in the schema
schema string
The schema from which to return the row access policyfrom.
database str
The database from which to return the schemas from.
id str
The provider-assigned unique ID for this managed resource.
row_access_policies Sequence[GetRowAccessPoliciesRowAccessPolicy]
The row access policy in the schema
schema str
The schema from which to return the row access policyfrom.

Supporting Types

GetRowAccessPoliciesRowAccessPolicy

Comment string
Database string
The database from which to return the schemas from.
Name string
Schema string
The schema from which to return the row access policyfrom.
Comment string
Database string
The database from which to return the schemas from.
Name string
Schema string
The schema from which to return the row access policyfrom.
comment string
database string
The database from which to return the schemas from.
name string
schema string
The schema from which to return the row access policyfrom.
comment str
database str
The database from which to return the schemas from.
name str
schema str
The schema from which to return the row access policyfrom.

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.