Snowflake

Pulumi Official
Package maintained by Pulumi
v0.12.0 published on Wednesday, Jul 20, 2022 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
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var current = Output.of(SnowflakeFunctions.getMaskingPolicies(GetMaskingPoliciesArgs.builder()
            .database("MYDB")
            .schema("MYSCHEMA")
            .build()));

    }
}
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",
}));
variables:
  current:
    Fn::Invoke:
      Function: snowflake:getMaskingPolicies
      Arguments:
        database: MYDB
        schema: MYSCHEMA

Using getMaskingPolicies

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 getMaskingPolicies(args: GetMaskingPoliciesArgs, opts?: InvokeOptions): Promise<GetMaskingPoliciesResult>
function getMaskingPoliciesOutput(args: GetMaskingPoliciesOutputArgs, opts?: InvokeOptions): Output<GetMaskingPoliciesResult>
def get_masking_policies(database: Optional[str] = None,
                         schema: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetMaskingPoliciesResult
def get_masking_policies_output(database: Optional[pulumi.Input[str]] = None,
                         schema: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetMaskingPoliciesResult]
func GetMaskingPolicies(ctx *Context, args *GetMaskingPoliciesArgs, opts ...InvokeOption) (*GetMaskingPoliciesResult, error)
func GetMaskingPoliciesOutput(ctx *Context, args *GetMaskingPoliciesOutputArgs, opts ...InvokeOption) GetMaskingPoliciesResultOutput

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

public static class GetMaskingPolicies 
{
    public static Task<GetMaskingPoliciesResult> InvokeAsync(GetMaskingPoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetMaskingPoliciesResult> Invoke(GetMaskingPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMaskingPoliciesResult> getMaskingPolicies(GetMaskingPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: snowflake:index/getMaskingPolicies:getMaskingPolicies
  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

getMaskingPolicies Result

The following output properties are available:

Database string
Id string

The provider-assigned unique ID for this managed resource.

MaskingPolicies List<GetMaskingPoliciesMaskingPolicy>
Schema string
Database string
Id string

The provider-assigned unique ID for this managed resource.

MaskingPolicies []GetMaskingPoliciesMaskingPolicy
Schema string
database String
id String

The provider-assigned unique ID for this managed resource.

maskingPolicies List<GetMaskingPoliciesMaskingPolicy>
schema String
database string
id string

The provider-assigned unique ID for this managed resource.

maskingPolicies GetMaskingPoliciesMaskingPolicy[]
schema string
database str
id str

The provider-assigned unique ID for this managed resource.

masking_policies Sequence[GetMaskingPoliciesMaskingPolicy]
schema str
database String
id String

The provider-assigned unique ID for this managed resource.

maskingPolicies List<Property Map>
schema String

Supporting Types

GetMaskingPoliciesMaskingPolicy

Comment string
Database string
Kind string
Name string
Schema string
Comment string
Database string
Kind string
Name string
Schema string
comment String
database String
kind String
name String
schema String
comment string
database string
kind string
name string
schema string
comment str
database str
kind str
name str
schema str
comment String
database String
kind String
name String
schema String

Package Details

Repository
https://github.com/pulumi/pulumi-snowflake
License
Apache-2.0
Notes

This Pulumi package is based on the snowflake Terraform Provider.