snowflake.MaskingPolicy
Explore with Pulumi AI
Import
$ pulumi import snowflake:index/maskingPolicy:MaskingPolicy example '"<database_name>"."<schema_name>"."<masking_policy_name>"'
Create MaskingPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MaskingPolicy(name: string, args: MaskingPolicyArgs, opts?: CustomResourceOptions);
@overload
def MaskingPolicy(resource_name: str,
args: MaskingPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MaskingPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
arguments: Optional[Sequence[MaskingPolicyArgumentArgs]] = None,
body: Optional[str] = None,
database: Optional[str] = None,
return_data_type: Optional[str] = None,
schema: Optional[str] = None,
comment: Optional[str] = None,
exempt_other_policies: Optional[str] = None,
name: Optional[str] = None)
func NewMaskingPolicy(ctx *Context, name string, args MaskingPolicyArgs, opts ...ResourceOption) (*MaskingPolicy, error)
public MaskingPolicy(string name, MaskingPolicyArgs args, CustomResourceOptions? opts = null)
public MaskingPolicy(String name, MaskingPolicyArgs args)
public MaskingPolicy(String name, MaskingPolicyArgs args, CustomResourceOptions options)
type: snowflake:MaskingPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MaskingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MaskingPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MaskingPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MaskingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MaskingPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var maskingPolicyResource = new Snowflake.MaskingPolicy("maskingPolicyResource", new()
{
Arguments = new[]
{
new Snowflake.Inputs.MaskingPolicyArgumentArgs
{
Name = "string",
Type = "string",
},
},
Body = "string",
Database = "string",
ReturnDataType = "string",
Schema = "string",
Comment = "string",
ExemptOtherPolicies = "string",
Name = "string",
});
example, err := snowflake.NewMaskingPolicy(ctx, "maskingPolicyResource", &snowflake.MaskingPolicyArgs{
Arguments: snowflake.MaskingPolicyArgumentArray{
&snowflake.MaskingPolicyArgumentArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Body: pulumi.String("string"),
Database: pulumi.String("string"),
ReturnDataType: pulumi.String("string"),
Schema: pulumi.String("string"),
Comment: pulumi.String("string"),
ExemptOtherPolicies: pulumi.String("string"),
Name: pulumi.String("string"),
})
var maskingPolicyResource = new MaskingPolicy("maskingPolicyResource", MaskingPolicyArgs.builder()
.arguments(MaskingPolicyArgumentArgs.builder()
.name("string")
.type("string")
.build())
.body("string")
.database("string")
.returnDataType("string")
.schema("string")
.comment("string")
.exemptOtherPolicies("string")
.name("string")
.build());
masking_policy_resource = snowflake.MaskingPolicy("maskingPolicyResource",
arguments=[{
"name": "string",
"type": "string",
}],
body="string",
database="string",
return_data_type="string",
schema="string",
comment="string",
exempt_other_policies="string",
name="string")
const maskingPolicyResource = new snowflake.MaskingPolicy("maskingPolicyResource", {
arguments: [{
name: "string",
type: "string",
}],
body: "string",
database: "string",
returnDataType: "string",
schema: "string",
comment: "string",
exemptOtherPolicies: "string",
name: "string",
});
type: snowflake:MaskingPolicy
properties:
arguments:
- name: string
type: string
body: string
comment: string
database: string
exemptOtherPolicies: string
name: string
returnDataType: string
schema: string
MaskingPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MaskingPolicy resource accepts the following input properties:
- Arguments
List<Masking
Policy Argument> - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- Body string
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- Database string
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Return
Data stringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- Schema string
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Comment string
- Specifies a comment for the masking policy.
- Exempt
Other stringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- Name string
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Arguments
[]Masking
Policy Argument Args - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- Body string
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- Database string
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Return
Data stringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- Schema string
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Comment string
- Specifies a comment for the masking policy.
- Exempt
Other stringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- Name string
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- arguments
List<Masking
Policy Argument> - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body String
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- database String
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return
Data StringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema String
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- comment String
- Specifies a comment for the masking policy.
- exempt
Other StringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- name String
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- arguments
Masking
Policy Argument[] - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body string
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- database string
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return
Data stringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema string
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- comment string
- Specifies a comment for the masking policy.
- exempt
Other stringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- name string
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- arguments
Sequence[Masking
Policy Argument Args] - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body str
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- database str
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return_
data_ strtype - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema str
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- comment str
- Specifies a comment for the masking policy.
- exempt_
other_ strpolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- name str
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- arguments List<Property Map>
- List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body String
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- database String
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return
Data StringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema String
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- comment String
- Specifies a comment for the masking policy.
- exempt
Other StringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- name String
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
Outputs
All input properties are implicitly available as output properties. Additionally, the MaskingPolicy resource produces the following output properties:
- Describe
Outputs List<MaskingPolicy Describe Output> - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Show
Outputs List<MaskingPolicy Show Output> - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- Describe
Outputs []MaskingPolicy Describe Output - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Show
Outputs []MaskingPolicy Show Output - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- describe
Outputs List<MaskingPolicy Describe Output> - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- show
Outputs List<MaskingPolicy Show Output> - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- describe
Outputs MaskingPolicy Describe Output[] - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- show
Outputs MaskingPolicy Show Output[] - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- describe_
outputs Sequence[MaskingPolicy Describe Output] - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- show_
outputs Sequence[MaskingPolicy Show Output] - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- describe
Outputs List<Property Map> - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- show
Outputs List<Property Map> - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
Look up Existing MaskingPolicy Resource
Get an existing MaskingPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MaskingPolicyState, opts?: CustomResourceOptions): MaskingPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arguments: Optional[Sequence[MaskingPolicyArgumentArgs]] = None,
body: Optional[str] = None,
comment: Optional[str] = None,
database: Optional[str] = None,
describe_outputs: Optional[Sequence[MaskingPolicyDescribeOutputArgs]] = None,
exempt_other_policies: Optional[str] = None,
fully_qualified_name: Optional[str] = None,
name: Optional[str] = None,
return_data_type: Optional[str] = None,
schema: Optional[str] = None,
show_outputs: Optional[Sequence[MaskingPolicyShowOutputArgs]] = None) -> MaskingPolicy
func GetMaskingPolicy(ctx *Context, name string, id IDInput, state *MaskingPolicyState, opts ...ResourceOption) (*MaskingPolicy, error)
public static MaskingPolicy Get(string name, Input<string> id, MaskingPolicyState? state, CustomResourceOptions? opts = null)
public static MaskingPolicy get(String name, Output<String> id, MaskingPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arguments
List<Masking
Policy Argument> - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- Body string
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- Comment string
- Specifies a comment for the masking policy.
- Database string
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Describe
Outputs List<MaskingPolicy Describe Output> - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - Exempt
Other stringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Return
Data stringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- Schema string
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Show
Outputs List<MaskingPolicy Show Output> - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- Arguments
[]Masking
Policy Argument Args - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- Body string
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- Comment string
- Specifies a comment for the masking policy.
- Database string
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Describe
Outputs []MaskingPolicy Describe Output Args - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - Exempt
Other stringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Return
Data stringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- Schema string
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- Show
Outputs []MaskingPolicy Show Output Args - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- arguments
List<Masking
Policy Argument> - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body String
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- comment String
- Specifies a comment for the masking policy.
- database String
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- describe
Outputs List<MaskingPolicy Describe Output> - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - exempt
Other StringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return
Data StringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema String
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- show
Outputs List<MaskingPolicy Show Output> - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- arguments
Masking
Policy Argument[] - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body string
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- comment string
- Specifies a comment for the masking policy.
- database string
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- describe
Outputs MaskingPolicy Describe Output[] - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - exempt
Other stringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- name string
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return
Data stringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema string
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- show
Outputs MaskingPolicy Show Output[] - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- arguments
Sequence[Masking
Policy Argument Args] - List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body str
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- comment str
- Specifies a comment for the masking policy.
- database str
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- describe_
outputs Sequence[MaskingPolicy Describe Output Args] - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - exempt_
other_ strpolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- name str
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return_
data_ strtype - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema str
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- show_
outputs Sequence[MaskingPolicy Show Output Args] - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
- arguments List<Property Map>
- List of the arguments for the masking policy. The first column and its data type always indicate the column data type values to mask or tokenize in the subsequent policy conditions. Note that you can not specify a virtual column as the first column argument in a conditional masking policy.
- body String
- Specifies the SQL expression that transforms the data. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
- comment String
- Specifies a comment for the masking policy.
- database String
- The database in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- describe
Outputs List<Property Map> - Outputs the result of
DESCRIBE MASKING POLICY
for the given masking policy. - exempt
Other StringPolicies - Specifies whether the row access policy or conditional masking policy can reference a column that is already protected by a masking policy. Due to Snowflake limitations, when value is chenged, the resource is recreated. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- return
Data StringType - The return data type must match the input data type of the first column that is specified as an input column. For more information about data types, check Snowflake docs.
- schema String
- The schema in which to create the masking policy. Due to technical limitations (read more here), avoid using the following characters:
|
,.
,(
,)
,"
- show
Outputs List<Property Map> - Outputs the result of
SHOW MASKING POLICIES
for the given masking policy.
Supporting Types
MaskingPolicyArgument, MaskingPolicyArgumentArgs
- Name string
- The argument name
- Type string
- The argument type. VECTOR data types are not yet supported. For more information about data types, check Snowflake docs.
- Name string
- The argument name
- Type string
- The argument type. VECTOR data types are not yet supported. For more information about data types, check Snowflake docs.
- name String
- The argument name
- type String
- The argument type. VECTOR data types are not yet supported. For more information about data types, check Snowflake docs.
- name string
- The argument name
- type string
- The argument type. VECTOR data types are not yet supported. For more information about data types, check Snowflake docs.
- name str
- The argument name
- type str
- The argument type. VECTOR data types are not yet supported. For more information about data types, check Snowflake docs.
- name String
- The argument name
- type String
- The argument type. VECTOR data types are not yet supported. For more information about data types, check Snowflake docs.
MaskingPolicyDescribeOutput, MaskingPolicyDescribeOutputArgs
- Body string
- Name string
- Return
Type string - Signatures
List<Masking
Policy Describe Output Signature>
- Body string
- Name string
- Return
Type string - Signatures
[]Masking
Policy Describe Output Signature
- body String
- name String
- return
Type String - signatures
List<Masking
Policy Describe Output Signature>
- body string
- name string
- return
Type string - signatures
Masking
Policy Describe Output Signature[]
- body String
- name String
- return
Type String - signatures List<Property Map>
MaskingPolicyDescribeOutputSignature, MaskingPolicyDescribeOutputSignatureArgs
MaskingPolicyShowOutput, MaskingPolicyShowOutputArgs
- Comment string
- Created
On string - Database
Name string - Exempt
Other boolPolicies - Kind string
- Name string
- Owner string
- Owner
Role stringType - Schema
Name string
- Comment string
- Created
On string - Database
Name string - Exempt
Other boolPolicies - Kind string
- Name string
- Owner string
- Owner
Role stringType - Schema
Name string
- comment String
- created
On String - database
Name String - exempt
Other BooleanPolicies - kind String
- name String
- owner String
- owner
Role StringType - schema
Name String
- comment string
- created
On string - database
Name string - exempt
Other booleanPolicies - kind string
- name string
- owner string
- owner
Role stringType - schema
Name string
- comment str
- created_
on str - database_
name str - exempt_
other_ boolpolicies - kind str
- name str
- owner str
- owner_
role_ strtype - schema_
name str
- comment String
- created
On String - database
Name String - exempt
Other BooleanPolicies - kind String
- name String
- owner String
- owner
Role StringType - schema
Name String
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.