- JSON representation
- Export
- PubSubNotification
- EventType
- DataProfilePubSubCondition
- PubSubExpressions
- PubSubLogicalOperator
- PubSubCondition
- ProfileScoreBucket
- DetailLevel
- PublishToChronicle
- PublishToSecurityCommandCenter
- TagResources
- TagCondition
- TagValue
- ProfileGeneration
A task to execute when a data profile has been generated.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field action . Type of action to execute when a profile is generated. action can be only one of the following: |
|
export |
Export data profiles into a provided location. |
pub |
Publish a message into the Pub/Sub topic. |
publish |
Publishes generated data profiles to Google Security Operations. For more information, see Use Sensitive Data Protection data in context-aware analytics. |
publish |
Publishes findings to Security Command Center for each data profile. |
tag |
Tags the profiled resources with the specified tag values. |
Export
If set, the detailed data profiles will be persisted to the location of your choice whenever updated.
JSON representation |
---|
{ "profileTable": { object ( |
Fields | |
---|---|
profile |
Store all table and column profiles in an existing table or a new table in an existing dataset. Each re-generation will result in new rows in BigQuery. Data is inserted using streaming insert and so data may be in the buffer for a period of time after the profile has finished. The Pub/Sub notification is sent before the streaming buffer is guaranteed to be written, so data may not be instantly visible to queries by the time your topic receives the Pub/Sub notification. |
sample |
Store sample |
PubSubNotification
Send a Pub/Sub message into the given Pub/Sub topic to connect other systems to data profile generation. The message payload data will be the byte serialization of DataProfilePubSubMessage
.
JSON representation |
---|
{ "topic": string, "event": enum ( |
Fields | |
---|---|
topic |
Cloud Pub/Sub topic to send notifications to. Format is projects/{project}/topics/{topic}. |
event |
The type of event that triggers a Pub/Sub. At most one |
pubsub |
Conditions (e.g., data risk or sensitivity level) for triggering a Pub/Sub. |
detail |
How much data to include in the Pub/Sub message. If the user wishes to limit the size of the message, they can use resourceName and fetch the profile fields they wish to. Per table profile (not per column). |
EventType
Types of event that can trigger an action.
Enums | |
---|---|
EVENT_TYPE_UNSPECIFIED |
Unused. |
NEW_PROFILE |
New profile (not a re-profile). |
CHANGED_PROFILE |
One of the following profile metrics changed: Data risk score, Sensitivity score, Resource visibility, Encryption type, Predicted infoTypes, Other infoTypes |
SCORE_INCREASED |
Table data risk score or sensitivity score increased. |
ERROR_CHANGED |
A user (non-internal) error occurred. |
DataProfilePubSubCondition
A condition for determining whether a Pub/Sub should be triggered.
JSON representation |
---|
{
"expressions": {
object ( |
Fields | |
---|---|
expressions |
An expression. |
PubSubExpressions
An expression, consisting of an operator and conditions.
JSON representation |
---|
{ "logicalOperator": enum ( |
Fields | |
---|---|
logical |
The operator to apply to the collection of conditions. |
conditions[] |
Conditions to apply to the expression. |
PubSubLogicalOperator
Logical operators for conditional checks.
Enums | |
---|---|
LOGICAL_OPERATOR_UNSPECIFIED |
Unused. |
OR |
Conditional OR. |
AND |
Conditional AND. |
PubSubCondition
A condition consisting of a value.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field value . The value for the condition to trigger. value can be only one of the following: |
|
minimum |
The minimum data risk score that triggers the condition. |
minimum |
The minimum sensitivity level that triggers the condition. |
ProfileScoreBucket
Various score levels for resources.
Enums | |
---|---|
PROFILE_SCORE_BUCKET_UNSPECIFIED |
Unused. |
HIGH |
High risk/sensitivity detected. |
MEDIUM_OR_HIGH |
Medium or high risk/sensitivity detected. |
DetailLevel
The levels of detail that can be included in the Pub/Sub message.
Enums | |
---|---|
DETAIL_LEVEL_UNSPECIFIED |
Unused. |
TABLE_PROFILE |
The full table data profile. |
RESOURCE_NAME |
The name of the profiled resource. |
FILE_STORE_PROFILE |
The full file store data profile. |
PublishToChronicle
This type has no fields.
Message expressing intention to publish to Google Security Operations.
PublishToSecurityCommandCenter
This type has no fields.
If set, a summary finding will be created or updated in Security Command Center for each profile.
TagResources
If set, attaches the tags provided to profiled resources. Tags support access control. You can conditionally grant or deny access to a resource based on whether the resource has a specific tag.
JSON representation |
---|
{ "tagConditions": [ { object ( |
Fields | |
---|---|
tag |
The tags to associate with different conditions. |
profile |
The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both |
lower |
Whether applying a tag to a resource should lower the risk of the profile for that resource. For example, in conjunction with an IAM deny policy, you can deny all principals a permission if a tag value is present, mitigating the risk of the resource. This also lowers the data risk of resources at the lower levels of the resource hierarchy. For example, reducing the data risk of a table data profile also reduces the data risk of the constituent column data profiles. |
TagCondition
The tag to attach to profiles matching the condition. At most one TagCondition
can be specified per sensitivity level.
JSON representation |
---|
{ "tag": { object ( |
Fields | |
---|---|
tag |
The tag value to attach to resources. |
Union field type . The type of condition on which attaching the tag will be predicated. type can be only one of the following: |
|
sensitivity |
Conditions attaching the tag to a resource on its profile having this sensitivity score. |
TagValue
A value of a tag.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field format . The format of the tag value. format can be only one of the following: |
|
namespaced |
The namespaced name for the tag value to attach to resources. Must be in the format |
ProfileGeneration
Whether a profile being created is the first generation or an update.
Enums | |
---|---|
PROFILE_GENERATION_UNSPECIFIED |
Unused. |
PROFILE_GENERATION_NEW |
The profile is the first profile for the resource. |
PROFILE_GENERATION_UPDATE |
The profile is an update to a previous profile. |