# Data Loss Prevention V2 Client - Class OtherCloudDiscoveryTarget (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class OtherCloudDiscoveryTarget.

Target used to match against for discovery of resources from other clouds.

An [AWS connector in Security Command Center
(Enterprise](https://cloud.google.com/security-command-center/docs/connect-scc-to-aws)
is required to use this feature.

Generated from protobuf message `google.privacy.dlp.v2.OtherCloudDiscoveryTarget`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ data_source_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType` Required. The type of data profiles generated by this discovery target. Supported values are: \* \* aws/s3/bucket |
| `↳ filter` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudFilter` Required. The resources that the discovery cadence applies to. The first target with a matching filter will be the one to apply to a resource. |
| `↳ conditions` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudConditions` Optional. In addition to matching the filter, these conditions must be true before a profile is generated. |
| `↳ generation_cadence` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudGenerationCadence` How often and when to update data profiles. New resources that match both the filter and conditions are scanned as quickly as possible depending on system capacity. |
| `↳ disabled` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Disabled` Disable profiling for resources that match this filter. |

### getDataSourceType

Required. The type of data profiles generated by this discovery target.

Supported values are:

- aws/s3/bucket

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType|null` |   |

### hasDataSourceType

### clearDataSourceType

### setDataSourceType

Required. The type of data profiles generated by this discovery target.

Supported values are:

- aws/s3/bucket

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DataSourceType` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getFilter

Required. The resources that the discovery cadence applies to. The
first target with a matching filter will be the one to apply to a resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudFilter|null` |   |

### hasFilter

### clearFilter

### setFilter

Required. The resources that the discovery cadence applies to. The
first target with a matching filter will be the one to apply to a resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudFilter` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConditions

Optional. In addition to matching the filter, these conditions must be true
before a profile is generated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudConditions|null` |   |

### hasConditions

### clearConditions

### setConditions

Optional. In addition to matching the filter, these conditions must be true
before a profile is generated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudConditions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGenerationCadence

How often and when to update data profiles. New resources that match both
the filter and conditions are scanned as quickly as possible depending on
system capacity.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudGenerationCadence|null` |   |

### hasGenerationCadence

### setGenerationCadence

How often and when to update data profiles. New resources that match both
the filter and conditions are scanned as quickly as possible depending on
system capacity.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.DiscoveryOtherCloudGenerationCadence` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisabled

Disable profiling for resources that match this filter.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Disabled|null` |   |

### hasDisabled

### setDisabled

Disable profiling for resources that match this filter.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.Disabled` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCadence

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |