public sealed class ResourceValueConfig : IMessage<ResourceValueConfig>, IEquatable<ResourceValueConfig>, IDeepCloneable<ResourceValueConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class ResourceValueConfig.
A resource value configuration (RVC) is a mapping configuration of user's
resources to resource values. Used in Attack path simulations.
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.
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.
public ResourceValueConfig.Types.SensitiveDataProtectionMapping SensitiveDataProtectionMapping { get; set; }
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eResourceValueConfig\u003c/code\u003e is a class in the Security Command Center v2 API that configures mappings of user resources to resource values for Attack path simulations.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows setting properties like \u003ccode\u003eCloudProvider\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eResourceLabelsSelector\u003c/code\u003e, \u003ccode\u003eResourceType\u003c/code\u003e, \u003ccode\u003eResourceValue\u003c/code\u003e, and more, to define resource value configurations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourceValueConfig\u003c/code\u003e implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities like deep cloning and message buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors to create new instances and copy existing \u003ccode\u003eResourceValueConfig\u003c/code\u003e objects.\u003c/p\u003e\n"],["\u003cp\u003eIt also supports specifying a sensitivity mapping for Sensitive Data Protection findings, which is applicable to BigQuery-related resource types.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class ResourceValueConfig (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ResourceValueConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.ResourceValueConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.ResourceValueConfig) \n\n public sealed class ResourceValueConfig : IMessage\u003cResourceValueConfig\u003e, IEquatable\u003cResourceValueConfig\u003e, IDeepCloneable\u003cResourceValueConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class ResourceValueConfig.\n\nA resource value configuration (RVC) is a mapping configuration of user's\nresources to resource values. Used in Attack path simulations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ResourceValueConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ResourceValueConfig](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ResourceValueConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResourceValueConfig](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ResourceValueConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ResourceValueConfig](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ResourceValueConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### ResourceValueConfig()\n\n public ResourceValueConfig()\n\n### ResourceValueConfig(ResourceValueConfig)\n\n public ResourceValueConfig(ResourceValueConfig other)\n\nProperties\n----------\n\n### CloudProvider\n\n public CloudProvider CloudProvider { get; set; }\n\nCloud provider this configuration applies to\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Timestamp this resource value configuration was created.\n\n### Description\n\n public string Description { get; set; }\n\nDescription of the resource value configuration.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Name for the resource value configuration\n\n### ResourceLabelsSelector\n\n public MapField\u003cstring, string\u003e ResourceLabelsSelector { get; }\n\nList of resource labels to search for, evaluated with `AND`.\nFor example, \"resource_labels_selector\": {\"key\": \"value\", \"env\": \"prod\"}\nwill match resources with labels \"key\": \"value\" `AND` \"env\":\n\"prod\"\n\u003chttps://cloud.google.com/resource-manager/docs/creating-managing-labels\u003e\n\n### ResourceType\n\n public string ResourceType { get; set; }\n\nApply resource_value only to resources that match resource_type.\nresource_type will be checked with `AND` of other resources.\nFor example, \"storage.googleapis.com/Bucket\" with resource_value \"HIGH\"\nwill apply \"HIGH\" value only to \"storage.googleapis.com/Bucket\" resources.\n\n### ResourceValue\n\n public ResourceValue ResourceValue { get; set; }\n\nResource value level this expression represents\nOnly required when there is no Sensitive Data Protection mapping in the\nrequest\n\n### ResourceValueConfigName\n\n public ResourceValueConfigName ResourceValueConfigName { get; set; }\n\n[ResourceValueConfigName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ResourceValueConfigName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.ResourceValueConfig#Google_Cloud_SecurityCenter_V2_ResourceValueConfig_Name) resource name property.\n\n### Scope\n\n public string Scope { get; set; }\n\nProject or folder to scope this configuration to.\nFor example, \"project/456\" would apply this configuration only to resources\nin \"project/456\" scope and will be checked with `AND` of other resources.\n\n### SensitiveDataProtectionMapping\n\n public ResourceValueConfig.Types.SensitiveDataProtectionMapping SensitiveDataProtectionMapping { get; set; }\n\nA mapping of the sensitivity on Sensitive Data Protection finding to\nresource values. This mapping can only be used in combination with a\nresource_type that is related to BigQuery, e.g.\n\"bigquery.googleapis.com/Dataset\".\n\n### TagValues\n\n public RepeatedField\u003cstring\u003e TagValues { get; }\n\nTag values combined with `AND` to check against.\nFor Google Cloud resources, they are tag value IDs in the form of\n\"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\",\n\"tagValues/789\" ]`\n\u003chttps://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing\u003e\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Timestamp this resource value configuration was last updated."]]