Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.bigquerydatapolicy/v1.DataPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new data policy under a project with the given dataPolicyId
(used as the display name), policy tag, and data policy type.
Auto-naming is currently not supported for this resource.
Create DataPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DataPolicy(name: string, args?: DataPolicyArgs, opts?: CustomResourceOptions);
@overload
def DataPolicy(resource_name: str,
args: Optional[DataPolicyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DataPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_masking_policy: Optional[DataMaskingPolicyArgs] = None,
data_policy_id: Optional[str] = None,
data_policy_type: Optional[DataPolicyDataPolicyType] = None,
location: Optional[str] = None,
policy_tag: Optional[str] = None,
project: Optional[str] = None)
func NewDataPolicy(ctx *Context, name string, args *DataPolicyArgs, opts ...ResourceOption) (*DataPolicy, error)
public DataPolicy(string name, DataPolicyArgs? args = null, CustomResourceOptions? opts = null)
public DataPolicy(String name, DataPolicyArgs args)
public DataPolicy(String name, DataPolicyArgs args, CustomResourceOptions options)
type: google-native:bigquerydatapolicy/v1:DataPolicy
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 DataPolicyArgs
- 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 DataPolicyArgs
- 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 DataPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DataPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DataPolicyArgs
- 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 dataPolicyResource = new GoogleNative.BigQueryDataPolicy.V1.DataPolicy("dataPolicyResource", new()
{
DataMaskingPolicy = new GoogleNative.BigQueryDataPolicy.V1.Inputs.DataMaskingPolicyArgs
{
PredefinedExpression = GoogleNative.BigQueryDataPolicy.V1.DataMaskingPolicyPredefinedExpression.PredefinedExpressionUnspecified,
Routine = "string",
},
DataPolicyId = "string",
DataPolicyType = GoogleNative.BigQueryDataPolicy.V1.DataPolicyDataPolicyType.DataPolicyTypeUnspecified,
Location = "string",
PolicyTag = "string",
Project = "string",
});
example, err := bigquerydatapolicy.NewDataPolicy(ctx, "dataPolicyResource", &bigquerydatapolicy.DataPolicyArgs{
DataMaskingPolicy: &bigquerydatapolicy.DataMaskingPolicyArgs{
PredefinedExpression: bigquerydatapolicy.DataMaskingPolicyPredefinedExpressionPredefinedExpressionUnspecified,
Routine: pulumi.String("string"),
},
DataPolicyId: pulumi.String("string"),
DataPolicyType: bigquerydatapolicy.DataPolicyDataPolicyTypeDataPolicyTypeUnspecified,
Location: pulumi.String("string"),
PolicyTag: pulumi.String("string"),
Project: pulumi.String("string"),
})
var dataPolicyResource = new DataPolicy("dataPolicyResource", DataPolicyArgs.builder()
.dataMaskingPolicy(DataMaskingPolicyArgs.builder()
.predefinedExpression("PREDEFINED_EXPRESSION_UNSPECIFIED")
.routine("string")
.build())
.dataPolicyId("string")
.dataPolicyType("DATA_POLICY_TYPE_UNSPECIFIED")
.location("string")
.policyTag("string")
.project("string")
.build());
data_policy_resource = google_native.bigquerydatapolicy.v1.DataPolicy("dataPolicyResource",
data_masking_policy=google_native.bigquerydatapolicy.v1.DataMaskingPolicyArgs(
predefined_expression=google_native.bigquerydatapolicy.v1.DataMaskingPolicyPredefinedExpression.PREDEFINED_EXPRESSION_UNSPECIFIED,
routine="string",
),
data_policy_id="string",
data_policy_type=google_native.bigquerydatapolicy.v1.DataPolicyDataPolicyType.DATA_POLICY_TYPE_UNSPECIFIED,
location="string",
policy_tag="string",
project="string")
const dataPolicyResource = new google_native.bigquerydatapolicy.v1.DataPolicy("dataPolicyResource", {
dataMaskingPolicy: {
predefinedExpression: google_native.bigquerydatapolicy.v1.DataMaskingPolicyPredefinedExpression.PredefinedExpressionUnspecified,
routine: "string",
},
dataPolicyId: "string",
dataPolicyType: google_native.bigquerydatapolicy.v1.DataPolicyDataPolicyType.DataPolicyTypeUnspecified,
location: "string",
policyTag: "string",
project: "string",
});
type: google-native:bigquerydatapolicy/v1:DataPolicy
properties:
dataMaskingPolicy:
predefinedExpression: PREDEFINED_EXPRESSION_UNSPECIFIED
routine: string
dataPolicyId: string
dataPolicyType: DATA_POLICY_TYPE_UNSPECIFIED
location: string
policyTag: string
project: string
DataPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DataPolicy resource accepts the following input properties:
- Data
Masking Pulumi.Policy Google Native. Big Query Data Policy. V1. Inputs. Data Masking Policy - The data masking policy that specifies the data masking rule to use.
- Data
Policy stringId - User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.
- Data
Policy Pulumi.Type Google Native. Big Query Data Policy. V1. Data Policy Data Policy Type - Type of data policy.
- Location string
- Policy
Tag string - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
. - Project string
- Data
Masking DataPolicy Masking Policy Args - The data masking policy that specifies the data masking rule to use.
- Data
Policy stringId - User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.
- Data
Policy DataType Policy Data Policy Type - Type of data policy.
- Location string
- Policy
Tag string - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
. - Project string
- data
Masking DataPolicy Masking Policy - The data masking policy that specifies the data masking rule to use.
- data
Policy StringId - User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.
- data
Policy DataType Policy Data Policy Type - Type of data policy.
- location String
- policy
Tag String - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
. - project String
- data
Masking DataPolicy Masking Policy - The data masking policy that specifies the data masking rule to use.
- data
Policy stringId - User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.
- data
Policy DataType Policy Data Policy Type - Type of data policy.
- location string
- policy
Tag string - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
. - project string
- data_
masking_ Datapolicy Masking Policy Args - The data masking policy that specifies the data masking rule to use.
- data_
policy_ strid - User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.
- data_
policy_ Datatype Policy Data Policy Type - Type of data policy.
- location str
- policy_
tag str - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
. - project str
- data
Masking Property MapPolicy - The data masking policy that specifies the data masking rule to use.
- data
Policy StringId - User-assigned (human readable) ID of the data policy that needs to be unique within a project. Used as {data_policy_id} in part of the resource name.
- data
Policy "DATA_POLICY_TYPE_UNSPECIFIED" | "COLUMN_LEVEL_SECURITY_POLICY" | "DATA_MASKING_POLICY"Type - Type of data policy.
- location String
- policy
Tag String - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
. - project String
Outputs
All input properties are implicitly available as output properties. Additionally, the DataPolicy resource produces the following output properties:
Supporting Types
DataMaskingPolicy, DataMaskingPolicyArgs
- Predefined
Expression Pulumi.Google Native. Big Query Data Policy. V1. Data Masking Policy Predefined Expression - A predefined masking expression.
- Routine string
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- Predefined
Expression DataMasking Policy Predefined Expression - A predefined masking expression.
- Routine string
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined
Expression DataMasking Policy Predefined Expression - A predefined masking expression.
- routine String
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined
Expression DataMasking Policy Predefined Expression - A predefined masking expression.
- routine string
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined_
expression DataMasking Policy Predefined Expression - A predefined masking expression.
- routine str
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined
Expression "PREDEFINED_EXPRESSION_UNSPECIFIED" | "SHA256" | "ALWAYS_NULL" | "DEFAULT_MASKING_VALUE" | "LAST_FOUR_CHARACTERS" | "FIRST_FOUR_CHARACTERS" | "EMAIL_MASK" | "DATE_YEAR_MASK" - A predefined masking expression.
- routine String
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
DataMaskingPolicyPredefinedExpression, DataMaskingPolicyPredefinedExpressionArgs
- Predefined
Expression Unspecified - PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- Sha256
- SHA256Masking expression to replace data with SHA-256 hash.
- Always
Null - ALWAYS_NULLMasking expression to replace data with NULLs.
- Default
Masking Value - DEFAULT_MASKING_VALUEMasking expression to replace data with their default masking values. The default masking values for each type listed as below: * STRING: "" * BYTES: b'' * INTEGER: 0 * FLOAT: 0.0 * NUMERIC: 0 * BOOLEAN: FALSE * TIMESTAMP: 1970-01-01 00:00:00 UTC * DATE: 1970-01-01 * TIME: 00:00:00 * DATETIME: 1970-01-01T00:00:00 * GEOGRAPHY: POINT(0 0) * BIGNUMERIC: 0 * ARRAY: [] * STRUCT: NOT_APPLICABLE * JSON: NULL
- Last
Four Characters - LAST_FOUR_CHARACTERSMasking expression shows the last four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, append last four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- First
Four Characters - FIRST_FOUR_CHARACTERSMasking expression shows the first four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- Email
Mask - EMAIL_MASKMasking expression for email addresses. The masking behavior is as follows: * Syntax-valid email address: Replace username with XXXXX. For example, cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. * Syntax-invalid email address: Apply SHA-256 hash. For more information, see Email mask.
- Date
Year Mask - DATE_YEAR_MASKMasking expression to only show the year of
Date
,DateTime
andTimeStamp
. For example, with the year 2076: * DATE : 2076-01-01 * DATETIME : 2076-01-01T00:00:00 * TIMESTAMP : 2076-01-01 00:00:00 UTC Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using thetime_zone
system variable. For more information, see the System variables reference.
- Data
Masking Policy Predefined Expression Predefined Expression Unspecified - PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- Data
Masking Policy Predefined Expression Sha256 - SHA256Masking expression to replace data with SHA-256 hash.
- Data
Masking Policy Predefined Expression Always Null - ALWAYS_NULLMasking expression to replace data with NULLs.
- Data
Masking Policy Predefined Expression Default Masking Value - DEFAULT_MASKING_VALUEMasking expression to replace data with their default masking values. The default masking values for each type listed as below: * STRING: "" * BYTES: b'' * INTEGER: 0 * FLOAT: 0.0 * NUMERIC: 0 * BOOLEAN: FALSE * TIMESTAMP: 1970-01-01 00:00:00 UTC * DATE: 1970-01-01 * TIME: 00:00:00 * DATETIME: 1970-01-01T00:00:00 * GEOGRAPHY: POINT(0 0) * BIGNUMERIC: 0 * ARRAY: [] * STRUCT: NOT_APPLICABLE * JSON: NULL
- Data
Masking Policy Predefined Expression Last Four Characters - LAST_FOUR_CHARACTERSMasking expression shows the last four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, append last four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- Data
Masking Policy Predefined Expression First Four Characters - FIRST_FOUR_CHARACTERSMasking expression shows the first four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- Data
Masking Policy Predefined Expression Email Mask - EMAIL_MASKMasking expression for email addresses. The masking behavior is as follows: * Syntax-valid email address: Replace username with XXXXX. For example, cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. * Syntax-invalid email address: Apply SHA-256 hash. For more information, see Email mask.
- Data
Masking Policy Predefined Expression Date Year Mask - DATE_YEAR_MASKMasking expression to only show the year of
Date
,DateTime
andTimeStamp
. For example, with the year 2076: * DATE : 2076-01-01 * DATETIME : 2076-01-01T00:00:00 * TIMESTAMP : 2076-01-01 00:00:00 UTC Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using thetime_zone
system variable. For more information, see the System variables reference.
- Predefined
Expression Unspecified - PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- Sha256
- SHA256Masking expression to replace data with SHA-256 hash.
- Always
Null - ALWAYS_NULLMasking expression to replace data with NULLs.
- Default
Masking Value - DEFAULT_MASKING_VALUEMasking expression to replace data with their default masking values. The default masking values for each type listed as below: * STRING: "" * BYTES: b'' * INTEGER: 0 * FLOAT: 0.0 * NUMERIC: 0 * BOOLEAN: FALSE * TIMESTAMP: 1970-01-01 00:00:00 UTC * DATE: 1970-01-01 * TIME: 00:00:00 * DATETIME: 1970-01-01T00:00:00 * GEOGRAPHY: POINT(0 0) * BIGNUMERIC: 0 * ARRAY: [] * STRUCT: NOT_APPLICABLE * JSON: NULL
- Last
Four Characters - LAST_FOUR_CHARACTERSMasking expression shows the last four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, append last four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- First
Four Characters - FIRST_FOUR_CHARACTERSMasking expression shows the first four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- Email
Mask - EMAIL_MASKMasking expression for email addresses. The masking behavior is as follows: * Syntax-valid email address: Replace username with XXXXX. For example, cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. * Syntax-invalid email address: Apply SHA-256 hash. For more information, see Email mask.
- Date
Year Mask - DATE_YEAR_MASKMasking expression to only show the year of
Date
,DateTime
andTimeStamp
. For example, with the year 2076: * DATE : 2076-01-01 * DATETIME : 2076-01-01T00:00:00 * TIMESTAMP : 2076-01-01 00:00:00 UTC Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using thetime_zone
system variable. For more information, see the System variables reference.
- Predefined
Expression Unspecified - PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- Sha256
- SHA256Masking expression to replace data with SHA-256 hash.
- Always
Null - ALWAYS_NULLMasking expression to replace data with NULLs.
- Default
Masking Value - DEFAULT_MASKING_VALUEMasking expression to replace data with their default masking values. The default masking values for each type listed as below: * STRING: "" * BYTES: b'' * INTEGER: 0 * FLOAT: 0.0 * NUMERIC: 0 * BOOLEAN: FALSE * TIMESTAMP: 1970-01-01 00:00:00 UTC * DATE: 1970-01-01 * TIME: 00:00:00 * DATETIME: 1970-01-01T00:00:00 * GEOGRAPHY: POINT(0 0) * BIGNUMERIC: 0 * ARRAY: [] * STRUCT: NOT_APPLICABLE * JSON: NULL
- Last
Four Characters - LAST_FOUR_CHARACTERSMasking expression shows the last four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, append last four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- First
Four Characters - FIRST_FOUR_CHARACTERSMasking expression shows the first four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- Email
Mask - EMAIL_MASKMasking expression for email addresses. The masking behavior is as follows: * Syntax-valid email address: Replace username with XXXXX. For example, cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. * Syntax-invalid email address: Apply SHA-256 hash. For more information, see Email mask.
- Date
Year Mask - DATE_YEAR_MASKMasking expression to only show the year of
Date
,DateTime
andTimeStamp
. For example, with the year 2076: * DATE : 2076-01-01 * DATETIME : 2076-01-01T00:00:00 * TIMESTAMP : 2076-01-01 00:00:00 UTC Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using thetime_zone
system variable. For more information, see the System variables reference.
- PREDEFINED_EXPRESSION_UNSPECIFIED
- PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- SHA256
- SHA256Masking expression to replace data with SHA-256 hash.
- ALWAYS_NULL
- ALWAYS_NULLMasking expression to replace data with NULLs.
- DEFAULT_MASKING_VALUE
- DEFAULT_MASKING_VALUEMasking expression to replace data with their default masking values. The default masking values for each type listed as below: * STRING: "" * BYTES: b'' * INTEGER: 0 * FLOAT: 0.0 * NUMERIC: 0 * BOOLEAN: FALSE * TIMESTAMP: 1970-01-01 00:00:00 UTC * DATE: 1970-01-01 * TIME: 00:00:00 * DATETIME: 1970-01-01T00:00:00 * GEOGRAPHY: POINT(0 0) * BIGNUMERIC: 0 * ARRAY: [] * STRUCT: NOT_APPLICABLE * JSON: NULL
- LAST_FOUR_CHARACTERS
- LAST_FOUR_CHARACTERSMasking expression shows the last four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, append last four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- FIRST_FOUR_CHARACTERS
- FIRST_FOUR_CHARACTERSMasking expression shows the first four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- EMAIL_MASK
- EMAIL_MASKMasking expression for email addresses. The masking behavior is as follows: * Syntax-valid email address: Replace username with XXXXX. For example, cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. * Syntax-invalid email address: Apply SHA-256 hash. For more information, see Email mask.
- DATE_YEAR_MASK
- DATE_YEAR_MASKMasking expression to only show the year of
Date
,DateTime
andTimeStamp
. For example, with the year 2076: * DATE : 2076-01-01 * DATETIME : 2076-01-01T00:00:00 * TIMESTAMP : 2076-01-01 00:00:00 UTC Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using thetime_zone
system variable. For more information, see the System variables reference.
- "PREDEFINED_EXPRESSION_UNSPECIFIED"
- PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- "SHA256"
- SHA256Masking expression to replace data with SHA-256 hash.
- "ALWAYS_NULL"
- ALWAYS_NULLMasking expression to replace data with NULLs.
- "DEFAULT_MASKING_VALUE"
- DEFAULT_MASKING_VALUEMasking expression to replace data with their default masking values. The default masking values for each type listed as below: * STRING: "" * BYTES: b'' * INTEGER: 0 * FLOAT: 0.0 * NUMERIC: 0 * BOOLEAN: FALSE * TIMESTAMP: 1970-01-01 00:00:00 UTC * DATE: 1970-01-01 * TIME: 00:00:00 * DATETIME: 1970-01-01T00:00:00 * GEOGRAPHY: POINT(0 0) * BIGNUMERIC: 0 * ARRAY: [] * STRUCT: NOT_APPLICABLE * JSON: NULL
- "LAST_FOUR_CHARACTERS"
- LAST_FOUR_CHARACTERSMasking expression shows the last four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, append last four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- "FIRST_FOUR_CHARACTERS"
- FIRST_FOUR_CHARACTERSMasking expression shows the first four characters of text. The masking behavior is as follows: * If text length > 4 characters: Replace text with XXXXX, prepend first four characters of original text. * If text length <= 4 characters: Apply SHA-256 hash.
- "EMAIL_MASK"
- EMAIL_MASKMasking expression for email addresses. The masking behavior is as follows: * Syntax-valid email address: Replace username with XXXXX. For example, cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com. * Syntax-invalid email address: Apply SHA-256 hash. For more information, see Email mask.
- "DATE_YEAR_MASK"
- DATE_YEAR_MASKMasking expression to only show the year of
Date
,DateTime
andTimeStamp
. For example, with the year 2076: * DATE : 2076-01-01 * DATETIME : 2076-01-01T00:00:00 * TIMESTAMP : 2076-01-01 00:00:00 UTC Truncation occurs according to the UTC time zone. To change this, adjust the default time zone using thetime_zone
system variable. For more information, see the System variables reference.
DataMaskingPolicyResponse, DataMaskingPolicyResponseArgs
- Predefined
Expression string - A predefined masking expression.
- Routine string
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- Predefined
Expression string - A predefined masking expression.
- Routine string
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined
Expression String - A predefined masking expression.
- routine String
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined
Expression string - A predefined masking expression.
- routine string
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined_
expression str - A predefined masking expression.
- routine str
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
- predefined
Expression String - A predefined masking expression.
- routine String
- The name of the BigQuery routine that contains the custom masking routine, in the format of
projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}
.
DataPolicyDataPolicyType, DataPolicyDataPolicyTypeArgs
- Data
Policy Type Unspecified - DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- Column
Level Security Policy - COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- Data
Masking Policy - DATA_MASKING_POLICYUsed to create a data policy for data masking.
- Data
Policy Data Policy Type Data Policy Type Unspecified - DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- Data
Policy Data Policy Type Column Level Security Policy - COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- Data
Policy Data Policy Type Data Masking Policy - DATA_MASKING_POLICYUsed to create a data policy for data masking.
- Data
Policy Type Unspecified - DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- Column
Level Security Policy - COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- Data
Masking Policy - DATA_MASKING_POLICYUsed to create a data policy for data masking.
- Data
Policy Type Unspecified - DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- Column
Level Security Policy - COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- Data
Masking Policy - DATA_MASKING_POLICYUsed to create a data policy for data masking.
- DATA_POLICY_TYPE_UNSPECIFIED
- DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- COLUMN_LEVEL_SECURITY_POLICY
- COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- DATA_MASKING_POLICY
- DATA_MASKING_POLICYUsed to create a data policy for data masking.
- "DATA_POLICY_TYPE_UNSPECIFIED"
- DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- "COLUMN_LEVEL_SECURITY_POLICY"
- COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- "DATA_MASKING_POLICY"
- DATA_MASKING_POLICYUsed to create a data policy for data masking.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.