Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.bigquerydatapolicy/v1.getDataPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets the data policy specified by its resource name.
Using getDataPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDataPolicy(args: GetDataPolicyArgs, opts?: InvokeOptions): Promise<GetDataPolicyResult>
function getDataPolicyOutput(args: GetDataPolicyOutputArgs, opts?: InvokeOptions): Output<GetDataPolicyResult>def get_data_policy(data_policy_id: Optional[str] = None,
                    location: Optional[str] = None,
                    project: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDataPolicyResult
def get_data_policy_output(data_policy_id: Optional[pulumi.Input[str]] = None,
                    location: Optional[pulumi.Input[str]] = None,
                    project: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDataPolicyResult]func LookupDataPolicy(ctx *Context, args *LookupDataPolicyArgs, opts ...InvokeOption) (*LookupDataPolicyResult, error)
func LookupDataPolicyOutput(ctx *Context, args *LookupDataPolicyOutputArgs, opts ...InvokeOption) LookupDataPolicyResultOutput> Note: This function is named LookupDataPolicy in the Go SDK.
public static class GetDataPolicy 
{
    public static Task<GetDataPolicyResult> InvokeAsync(GetDataPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetDataPolicyResult> Invoke(GetDataPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataPolicyResult> getDataPolicy(GetDataPolicyArgs args, InvokeOptions options)
public static Output<GetDataPolicyResult> getDataPolicy(GetDataPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:bigquerydatapolicy/v1:getDataPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DataPolicy stringId 
- Location string
- Project string
- DataPolicy stringId 
- Location string
- Project string
- dataPolicy StringId 
- location String
- project String
- dataPolicy stringId 
- location string
- project string
- data_policy_ strid 
- location str
- project str
- dataPolicy StringId 
- location String
- project String
getDataPolicy Result
The following output properties are available:
- DataMasking Pulumi.Policy Google Native. Big Query Data Policy. V1. Outputs. Data Masking Policy Response 
- 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 stringType 
- Type of data policy.
- Name string
- Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
- PolicyTag string
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- DataMasking DataPolicy Masking Policy Response 
- 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 stringType 
- Type of data policy.
- Name string
- Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
- PolicyTag string
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- dataMasking DataPolicy Masking Policy Response 
- 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 StringType 
- Type of data policy.
- name String
- Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
- policyTag String
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- dataMasking DataPolicy Masking Policy Response 
- 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 stringType 
- Type of data policy.
- name string
- Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
- policyTag string
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- data_masking_ Datapolicy Masking Policy Response 
- 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_ strtype 
- Type of data policy.
- name str
- Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
- policy_tag str
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
- 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 StringType 
- Type of data policy.
- name String
- Resource name of this data policy, in the format of projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
- policyTag String
- Policy tag resource name, in the format of projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}.
Supporting Types
DataMaskingPolicyResponse   
- 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}.
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.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi