...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/samples/resources/dlpinspecttemplate/inspection-inspect-template/dlp_v1beta1_dlpinspecttemplate.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/samples/resources/dlpinspecttemplate/inspection-inspect-template

     1# Copyright 2022 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#     http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15apiVersion: dlp.cnrm.cloud.google.com/v1beta1
    16kind: DLPInspectTemplate
    17metadata:
    18  name: dlpinspecttemplate-sample-inspectioninspecttemplate
    19spec:
    20  projectRef:
    21    # Replace "${PROJECT_ID?}" with your project ID
    22    external: "projects/${PROJECT_ID?}"
    23  location: "global"
    24  inspectConfig:
    25    infoTypes:
    26    - name: "AGE"
    27    ruleSet:
    28    - infoTypes:
    29      - name: "AGE"
    30      rules:
    31      - hotwordRule:
    32          hotwordRegex:
    33            pattern: "([12])(\\d{1,2})"
    34            groupIndexes:
    35            - 1
    36            - 2
    37          proximity:
    38            windowBefore: 2
    39            windowAfter: 3
    40          likelihoodAdjustment:
    41            fixedLikelihood: "LIKELY"
    42      - hotwordRule:
    43          hotwordRegex:
    44            pattern: ".*"
    45          proximity:
    46            windowBefore: 2
    47            windowAfter: 3
    48          likelihoodAdjustment:
    49            relativeLikelihood: 1

View as plain text