Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class ResourceValueConfig.
A resource value configuration (RVC) is a mapping configuration of user's resources to resource values. Used in Attack path simulations.
Generated from protobuf message google.cloud.securitycenter.v2.ResourceValueConfig
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. Name for the resource value configuration
↳ resource_value
int
Resource value level this expression represents Only required when there is no Sensitive Data Protection mapping in the request
↳ tag_values
array
Tag values combined with AND
to check against. For Google Cloud resources, they are tag value IDs in the form of "tagValues/123". Example: [ "tagValues/123", "tagValues/456", "tagValues/789" ]
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
↳ resource_type
string
Apply resource_value only to resources that match resource_type. resource_type will be checked with AND
of other resources. For example, "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
↳ scope
string
Project or folder to scope this configuration to. For example, "project/456" would apply this configuration only to resources in "project/456" scope and will be checked with AND
of other resources.
↳ resource_labels_selector
array| Google\Protobuf\Internal\MapField
List of resource labels to search for, evaluated with AND
. For example, "resource_labels_selector": {"key": "value", "env": "prod"} will match resources with labels "key": "value" AND
"env": "prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
↳ description
string
Description of the resource value configuration.
↳ create_time
↳ update_time
Google\Protobuf\Timestamp
Output only. Timestamp this resource value configuration was last updated.
↳ cloud_provider
int
Cloud provider this configuration applies to
↳ sensitive_data_protection_mapping
ResourceValueConfig\SensitiveDataProtectionMapping
A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset".
getName
Identifier. Name for the resource value configuration
string
setName
Identifier. Name for the resource value configuration
var
string
$this
getResourceValue
Resource value level this expression represents Only required when there is no Sensitive Data Protection mapping in the request
int
setResourceValue
Resource value level this expression represents Only required when there is no Sensitive Data Protection mapping in the request
var
int
$this
getTagValues
Tag values combined with AND
to check against.
For Google Cloud resources, they are tag value IDs in the form of
"tagValues/123". Example: [ "tagValues/123", "tagValues/456",
"tagValues/789" ]
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
setTagValues
Tag values combined with AND
to check against.
For Google Cloud resources, they are tag value IDs in the form of
"tagValues/123". Example: [ "tagValues/123", "tagValues/456",
"tagValues/789" ]
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
var
string[]
$this
getResourceType
Apply resource_value only to resources that match resource_type.
resource_type will be checked with AND
of other resources.
For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
string
setResourceType
Apply resource_value only to resources that match resource_type.
resource_type will be checked with AND
of other resources.
For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
var
string
$this
getScope
Project or folder to scope this configuration to.
For example, "project/456" would apply this configuration only to resources
in "project/456" scope and will be checked with AND
of other resources.
string
setScope
Project or folder to scope this configuration to.
For example, "project/456" would apply this configuration only to resources
in "project/456" scope and will be checked with AND
of other resources.
var
string
$this
getResourceLabelsSelector
List of resource labels to search for, evaluated with AND
.
For example, "resource_labels_selector": {"key": "value", "env": "prod"}
will match resources with labels "key": "value" AND
"env":
"prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
setResourceLabelsSelector
List of resource labels to search for, evaluated with AND
.
For example, "resource_labels_selector": {"key": "value", "env": "prod"}
will match resources with labels "key": "value" AND
"env":
"prod" https://cloud.google.com/resource-manager/docs/creating-managing-labels
$this
getDescription
Description of the resource value configuration.
string
setDescription
Description of the resource value configuration.
var
string
$this
getCreateTime
Output only. Timestamp this resource value configuration was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Timestamp this resource value configuration was created.
$this
getUpdateTime
Output only. Timestamp this resource value configuration was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Timestamp this resource value configuration was last updated.
$this
getCloudProvider
Cloud provider this configuration applies to
int
setCloudProvider
Cloud provider this configuration applies to
var
int
$this
getSensitiveDataProtectionMapping
A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g.
"bigquery.googleapis.com/Dataset".
hasSensitiveDataProtectionMapping
clearSensitiveDataProtectionMapping
setSensitiveDataProtectionMapping
A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g.
"bigquery.googleapis.com/Dataset".
$this