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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:bigquerydatapolicy/v1:getDataPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Data
Policy stringId - Location string
- Project string
- Data
Policy stringId - Location string
- Project string
- data
Policy StringId - location String
- project String
- data
Policy stringId - location string
- project string
- data_
policy_ strid - location str
- project str
- data
Policy StringId - location String
- project String
getDataPolicy Result
The following output properties are available:
- Data
Masking 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.
- 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 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}
. - Policy
Tag 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 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 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}
. - Policy
Tag 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 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 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}
. - policy
Tag 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 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 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}
. - policy
Tag 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}
.
- 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 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}
. - policy
Tag String - Policy tag resource name, in the format of
projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{policyTag_id}
.
Supporting Types
DataMaskingPolicyResponse
- 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}
.
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