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={
        "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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DataPolicy resource accepts the following input properties:
- DataMasking 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.
- DataPolicy 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.
- DataPolicy Pulumi.Type Google Native. Big Query Data Policy. V1. Data Policy Data Policy Type 
- Type of data policy.
- Location string
- PolicyTag string
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- Project string
- DataMasking DataPolicy Masking Policy Args 
- The data masking policy that specifies the data masking rule to use.
- DataPolicy 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.
- DataPolicy DataType Policy Data Policy Type 
- Type of data policy.
- Location string
- PolicyTag string
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- Project string
- dataMasking DataPolicy Masking Policy 
- The data masking policy that specifies the data masking rule to use.
- dataPolicy 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.
- dataPolicy DataType Policy Data Policy Type 
- Type of data policy.
- location String
- policyTag String
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- project String
- dataMasking DataPolicy Masking Policy 
- The data masking policy that specifies the data masking rule to use.
- dataPolicy 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.
- dataPolicy DataType Policy Data Policy Type 
- Type of data policy.
- location string
- policyTag 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
- dataMasking Property MapPolicy 
- The data masking policy that specifies the data masking rule to use.
- dataPolicy 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.
- dataPolicy "DATA_POLICY_TYPE_UNSPECIFIED" | "COLUMN_LEVEL_SECURITY_POLICY" | "DATA_MASKING_POLICY"Type 
- Type of data policy.
- location String
- policyTag 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      
- PredefinedExpression 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}.
- PredefinedExpression 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}.
- predefinedExpression 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}.
- predefinedExpression 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}.
- predefinedExpression "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          
- PredefinedExpression 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.
- AlwaysNull 
- ALWAYS_NULLMasking expression to replace data with NULLs.
- DefaultMasking 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
- LastFour 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.
- FirstFour 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.
- EmailMask 
- 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.
- DateYear Mask 
- DATE_YEAR_MASKMasking expression to only show the year of Date,DateTimeandTimeStamp. 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_zonesystem variable. For more information, see the System variables reference.
- DataMasking Policy Predefined Expression Predefined Expression Unspecified 
- PREDEFINED_EXPRESSION_UNSPECIFIEDDefault, unspecified predefined expression. No masking will take place since no expression is specified.
- DataMasking Policy Predefined Expression Sha256 
- SHA256Masking expression to replace data with SHA-256 hash.
- DataMasking Policy Predefined Expression Always Null 
- ALWAYS_NULLMasking expression to replace data with NULLs.
- DataMasking 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
- DataMasking 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.
- DataMasking 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.
- DataMasking 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.
- DataMasking Policy Predefined Expression Date Year Mask 
- DATE_YEAR_MASKMasking expression to only show the year of Date,DateTimeandTimeStamp. 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_zonesystem variable. For more information, see the System variables reference.
- PredefinedExpression 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.
- AlwaysNull 
- ALWAYS_NULLMasking expression to replace data with NULLs.
- DefaultMasking 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
- LastFour 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.
- FirstFour 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.
- EmailMask 
- 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.
- DateYear Mask 
- DATE_YEAR_MASKMasking expression to only show the year of Date,DateTimeandTimeStamp. 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_zonesystem variable. For more information, see the System variables reference.
- PredefinedExpression 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.
- AlwaysNull 
- ALWAYS_NULLMasking expression to replace data with NULLs.
- DefaultMasking 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
- LastFour 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.
- FirstFour 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.
- EmailMask 
- 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.
- DateYear Mask 
- DATE_YEAR_MASKMasking expression to only show the year of Date,DateTimeandTimeStamp. 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_zonesystem 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,DateTimeandTimeStamp. 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_zonesystem 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,DateTimeandTimeStamp. 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_zonesystem variable. For more information, see the System variables reference.
DataMaskingPolicyResponse, DataMaskingPolicyResponseArgs        
- PredefinedExpression 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}.
- PredefinedExpression 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}.
- predefinedExpression 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}.
- predefinedExpression 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}.
- predefinedExpression 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          
- DataPolicy Type Unspecified 
- DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- ColumnLevel Security Policy 
- COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- DataMasking Policy 
- DATA_MASKING_POLICYUsed to create a data policy for data masking.
- DataPolicy Data Policy Type Data Policy Type Unspecified 
- DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- DataPolicy Data Policy Type Column Level Security Policy 
- COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- DataPolicy Data Policy Type Data Masking Policy 
- DATA_MASKING_POLICYUsed to create a data policy for data masking.
- DataPolicy Type Unspecified 
- DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- ColumnLevel Security Policy 
- COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- DataMasking Policy 
- DATA_MASKING_POLICYUsed to create a data policy for data masking.
- DataPolicy Type Unspecified 
- DATA_POLICY_TYPE_UNSPECIFIEDDefault value for the data policy type. This should not be used.
- ColumnLevel Security Policy 
- COLUMN_LEVEL_SECURITY_POLICYUsed to create a data policy for column-level security, without data masking.
- DataMasking 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.