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

Snowflake

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

getMaskingPolicies

Example Usage

using Pulumi;
using Snowflake = Pulumi.Snowflake;

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

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

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

Using getMaskingPolicies

function getMaskingPolicies(args: GetMaskingPoliciesArgs, opts?: InvokeOptions): Promise<GetMaskingPoliciesResult>
def get_masking_policies(database: Optional[str] = None,
                         schema: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetMaskingPoliciesResult
func GetMaskingPolicies(ctx *Context, args *GetMaskingPoliciesArgs, opts ...InvokeOption) (*GetMaskingPoliciesResult, error)

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

public static class GetMaskingPolicies {
    public static Task<GetMaskingPoliciesResult> InvokeAsync(GetMaskingPoliciesArgs 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 maskingPolicies from.
Database string
The database from which to return the schemas from.
Schema string
The schema from which to return the maskingPolicies from.
database string
The database from which to return the schemas from.
schema string
The schema from which to return the maskingPolicies from.
database str
The database from which to return the schemas from.
schema str
The schema from which to return the maskingPolicies from.

getMaskingPolicies 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.
MaskingPolicies List<GetMaskingPoliciesMaskingPolicy>
The maskingPolicies in the schema
Schema string
The schema from which to return the maskingPolicies from.
Database string
The database from which to return the schemas from.
Id string
The provider-assigned unique ID for this managed resource.
MaskingPolicies []GetMaskingPoliciesMaskingPolicy
The maskingPolicies in the schema
Schema string
The schema from which to return the maskingPolicies from.
database string
The database from which to return the schemas from.
id string
The provider-assigned unique ID for this managed resource.
maskingPolicies GetMaskingPoliciesMaskingPolicy[]
The maskingPolicies in the schema
schema string
The schema from which to return the maskingPolicies from.
database str
The database from which to return the schemas from.
id str
The provider-assigned unique ID for this managed resource.
masking_policies Sequence[GetMaskingPoliciesMaskingPolicy]
The maskingPolicies in the schema
schema str
The schema from which to return the maskingPolicies from.

Supporting Types

GetMaskingPoliciesMaskingPolicy

Comment string
Database string
The database from which to return the schemas from.
Kind string
Name string
Schema string
The schema from which to return the maskingPolicies from.
Comment string
Database string
The database from which to return the schemas from.
Kind string
Name string
Schema string
The schema from which to return the maskingPolicies from.
comment string
database string
The database from which to return the schemas from.
kind string
name string
schema string
The schema from which to return the maskingPolicies from.
comment str
database str
The database from which to return the schemas from.
kind str
name str
schema str
The schema from which to return the maskingPolicies 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.