Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class CustomConfig.
Defines the properties in a custom module configuration for Security
Health Analytics. Use the custom module configuration to create custom
detectors that generate custom findings for resources that you specify.
Generated from protobuf messagegoogle.cloud.securitycentermanagement.v1.CustomConfig
Optional. The Common Expression Language (CEL) expression to evaluate to produce findings. When the expression evaluates totrueagainst a resource, a finding is generated.
Optional. The Cloud Asset Inventory resource types that the custom module operates on. For information about resource types, seeSupported asset types. Each custom module can specify up to 5 resource types.
↳ severity
int
Optional. The severity to assign to findings generated by the module.
↳ description
string
Optional. Text that describes the vulnerability or misconfiguration that the custom module detects. This explanation is returned with each finding instance to help investigators understand the detected issue. The text must be enclosed in quotation marks.
↳ recommendation
string
Optional. An explanation of the recommended steps that security teams can take to resolve the detected issue. This explanation is returned with each finding generated by this module.
getPredicate
Optional. The Common Expression Language (CEL) expression to evaluate to
produce findings. When the expression evaluates totrueagainst a
resource, a finding is generated.
Optional. The Common Expression Language (CEL) expression to evaluate to
produce findings. When the expression evaluates totrueagainst a
resource, a finding is generated.
Optional. The severity to assign to findings generated by the module.
Returns
Type
Description
int
setSeverity
Optional. The severity to assign to findings generated by the module.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDescription
Optional. Text that describes the vulnerability or misconfiguration that
the custom module detects. This explanation is returned with each finding
instance to help investigators understand the detected issue. The text must
be enclosed in quotation marks.
Returns
Type
Description
string
setDescription
Optional. Text that describes the vulnerability or misconfiguration that
the custom module detects. This explanation is returned with each finding
instance to help investigators understand the detected issue. The text must
be enclosed in quotation marks.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRecommendation
Optional. An explanation of the recommended steps that security teams can
take to resolve the detected issue. This explanation is returned with each
finding generated by this module.
Returns
Type
Description
string
setRecommendation
Optional. An explanation of the recommended steps that security teams can
take to resolve the detected issue. This explanation is returned with each
finding generated by this module.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Security Center Management V1 Client - Class CustomConfig (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-securitycentermanagement/latest/V1.CustomConfig)\n- [1.2.0](/php/docs/reference/cloud-securitycentermanagement/1.2.0/V1.CustomConfig)\n- [1.1.3](/php/docs/reference/cloud-securitycentermanagement/1.1.3/V1.CustomConfig)\n- [1.0.0](/php/docs/reference/cloud-securitycentermanagement/1.0.0/V1.CustomConfig)\n- [0.3.2](/php/docs/reference/cloud-securitycentermanagement/0.3.2/V1.CustomConfig)\n- [0.2.7](/php/docs/reference/cloud-securitycentermanagement/0.2.7/V1.CustomConfig)\n- [0.1.0](/php/docs/reference/cloud-securitycentermanagement/0.1.0/V1.CustomConfig) \nReference documentation and code samples for the Google Cloud Security Center Management V1 Client class CustomConfig.\n\nDefines the properties in a custom module configuration for Security\nHealth Analytics. Use the custom module configuration to create custom\ndetectors that generate custom findings for resources that you specify.\n\nGenerated from protobuf message `google.cloud.securitycentermanagement.v1.CustomConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenterManagement \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPredicate\n\nOptional. The Common Expression Language (CEL) expression to evaluate to\nproduce findings. When the expression evaluates to `true` against a\nresource, a finding is generated.\n\n### hasPredicate\n\n### clearPredicate\n\n### setPredicate\n\nOptional. The Common Expression Language (CEL) expression to evaluate to\nproduce findings. When the expression evaluates to `true` against a\nresource, a finding is generated.\n\n### getCustomOutput\n\nOptional. Custom output properties.\n\n### hasCustomOutput\n\n### clearCustomOutput\n\n### setCustomOutput\n\nOptional. Custom output properties.\n\n### getResourceSelector\n\nOptional. The Cloud Asset Inventory resource types that the custom module\noperates on. For information about resource types, see [Supported asset\ntypes](https://cloud.google.com/asset-inventory/docs/supported-asset-types).\n\nEach custom module can specify up to 5 resource types.\n\n### hasResourceSelector\n\n### clearResourceSelector\n\n### setResourceSelector\n\nOptional. The Cloud Asset Inventory resource types that the custom module\noperates on. For information about resource types, see [Supported asset\ntypes](https://cloud.google.com/asset-inventory/docs/supported-asset-types).\n\nEach custom module can specify up to 5 resource types.\n\n### getSeverity\n\nOptional. The severity to assign to findings generated by the module.\n\n### setSeverity\n\nOptional. The severity to assign to findings generated by the module.\n\n### getDescription\n\nOptional. Text that describes the vulnerability or misconfiguration that\nthe custom module detects. This explanation is returned with each finding\ninstance to help investigators understand the detected issue. The text must\nbe enclosed in quotation marks.\n\n### setDescription\n\nOptional. Text that describes the vulnerability or misconfiguration that\nthe custom module detects. This explanation is returned with each finding\ninstance to help investigators understand the detected issue. The text must\nbe enclosed in quotation marks.\n\n### getRecommendation\n\nOptional. An explanation of the recommended steps that security teams can\ntake to resolve the detected issue. This explanation is returned with each\nfinding generated by this module.\n\n### setRecommendation\n\nOptional. An explanation of the recommended steps that security teams can\ntake to resolve the detected issue. This explanation is returned with each\nfinding generated by this module."]]