Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi
snowflake.getMaskingPolicies
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as snowflake from "@pulumi/snowflake";
const current = snowflake.getMaskingPolicies({
database: "MYDB",
schema: "MYSCHEMA",
});
import pulumi
import pulumi_snowflake as snowflake
current = snowflake.get_masking_policies(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, &snowflake.GetMaskingPoliciesArgs{
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.GetMaskingPolicies.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.GetMaskingPoliciesArgs;
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.getMaskingPolicies(GetMaskingPoliciesArgs.builder()
.database("MYDB")
.schema("MYSCHEMA")
.build());
}
}
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:
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.
- Masking
Policies List<GetMasking Policies Masking Policy> - 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.
- Masking
Policies []GetMasking Policies Masking Policy - 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.
- masking
Policies List<GetMasking Policies Masking Policy> - 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.
- masking
Policies GetMasking Policies Masking Policy[] - 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[GetMasking Policies Masking Policy] - The maskingPolicies in the schema
- schema str
- 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.
- masking
Policies List<Property Map> - The maskingPolicies in the schema
- schema String
- The schema from which to return the maskingPolicies from.
Supporting Types
GetMaskingPoliciesMaskingPolicy
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.