# Class DataProfileAction (3.38.0)

3.38.0 (latest) 3.37.0 3.35.0 3.34.0 3.33.0 3.32.0 3.31.0 3.30.0 3.29.0 3.28.0 3.27.0 3.26.0 3.25.1 3.24.0 3.23.0 3.22.0 3.20.0 3.19.0 3.18.1 3.17.0 3.16.0 3.15.3 3.14.0 3.13.0 3.12.3 3.11.1 3.10.1 3.9.2 3.8.1 3.7.1 3.6.2 3.5.0 3.4.0 3.3.1 3.2.4 3.1.1 3.0.1 2.0.2 1.0.2 0.15.2 0.14.0 0.13.0 0.12.1

    DataProfileAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A task to execute when a data profile has been generated.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `export_data` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.DataProfileAction.Export` Export data profiles into a provided location. This field is a member of `oneof`_ `action`. |
| `pub_sub_notification` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.DataProfileAction.PubSubNotification` Publish a message into the Pub/Sub topic. This field is a member of `oneof`_ `action`. |
| `publish_to_chronicle` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.DataProfileAction.PublishToChronicle` Publishes generated data profiles to Google Security Operations. For more information, see \`Use Sensitive Data Protection data in context-aware analytics |
| `publish_to_scc` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.DataProfileAction.PublishToSecurityCommandCenter` Publishes findings to Security Command Center for each data profile. This field is a member of `oneof`_ `action`. |
| `tag_resources` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.DataProfileAction.TagResources` Tags the profiled resources with the specified tag values. This field is a member of `oneof`_ `action`. |
| `publish_to_dataplex_catalog` | `https://docs.cloud.google.com/python/docs/reference/dlp/latest/google.cloud.dlp_v2.types.DataProfileAction.PublishToDataplexCatalog` Publishes a portion of each profile to Dataplex Universal Catalog with the aspect type Sensitive Data Protection Profile. This field is a member of `oneof`_ `action`. |

## Classes

### EventType

    EventType(value)

Types of event that can trigger an action.

### Export

    Export(mapping=None, *, ignore_unknown_fields=False, **kwargs)

If set, the detailed data profiles will be persisted to the
location of your choice whenever updated.

### PubSubNotification

    PubSubNotification(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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`.

### PublishToChronicle

    PublishToChronicle(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Message expressing intention to publish to Google Security
Operations.

### PublishToDataplexCatalog

    PublishToDataplexCatalog(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Create Dataplex Universal Catalog aspects for profiled
resources with the aspect type Sensitive Data Protection
Profile. To learn more about aspects, see
<https://cloud.google.com/sensitive-data-protection/docs/add-aspects>.

### PublishToSecurityCommandCenter

    PublishToSecurityCommandCenter(
        mapping=None, *, ignore_unknown_fields=False, **kwargs
    )

If set, a summary finding will be created or updated in
Security Command Center for each profile.

### TagResources

    TagResources(mapping=None, *, ignore_unknown_fields=False, **kwargs)

If set, attaches the [tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
provided to profiled resources. Tags support `access
control <https://cloud.google.com/iam/docs/tags-access-control>`__.
You can conditionally grant or deny access to a resource based on
whether the resource has a specific tag.