Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two outputs for dlp job trigger: outputting to SCC and DataCatalog #6855

Merged
merged 6 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions mmv1/products/dlp/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,8 @@ objects:
properties:
- !ruby/object:Api::Type::NestedObject
name: 'saveFindings'
exactly_one_of:
- save_findings
- pub_sub
description: |
Schedule for triggered jobs
If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk
properties:
- !ruby/object:Api::Type::NestedObject
name: 'outputConfig'
Expand Down Expand Up @@ -370,9 +367,6 @@ objects:
- :ALL_COLUMNS
- !ruby/object:Api::Type::NestedObject
name: 'pubSub'
exactly_one_of:
- save_findings
- pub_sub
description: |
Publish a message into a given Pub/Sub topic when the job completes.
properties:
Expand All @@ -381,6 +375,20 @@ objects:
required: true
description: |
Cloud Pub/Sub topic to send notifications to.
- !ruby/object:Api::Type::NestedObject
name: 'publishSummaryToCscc'
allow_empty_object: true
send_empty_value: true
properties: [ ]
description: |
Publish the result summary of a DlpJob to the Cloud Security Command Center.
- !ruby/object:Api::Type::NestedObject
name: 'publishFindingsToCloudDataCatalog'
allow_empty_object: true
send_empty_value: true
properties: [ ]
description: |
Publish findings of a DlpJob to Data Catalog.
- !ruby/object:Api::Resource
name: 'InspectTemplate'
create_url: "{{parent}}/inspectTemplates"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ resource "google_data_loss_prevention_job_trigger" "<%= ctx[:primary_resource_id
}
}
}
publish_summary_to_cscc {
}
}
storage_config {
big_query_options {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ resource "google_data_loss_prevention_job_trigger" "<%= ctx[:primary_resource_id
}
}
}
publish_findings_to_cloud_data_catalog {
}
}
storage_config {
big_query_options {
Expand Down