Reference documentation and code samples for the Google Cloud Security Command Center 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.securitycenter.v1.CustomConfig
The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
↳ severity
int
The severity to assign to findings generated by the module.
↳ description
string
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
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 in thenextStepsproperty of the finding JSON.
getPredicate
The CEL expression to evaluate to produce findings. When the expression
evaluates to true against a resource, a finding is generated.
The severity to assign to findings generated by the module.
Returns
Type
Description
int
setSeverity
The severity to assign to findings generated by the module.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDescription
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
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
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 in thenextStepsproperty of the finding JSON.
Returns
Type
Description
string
setRecommendation
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 in thenextStepsproperty of the finding JSON.
[[["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 Command Center V1 Client - Class CustomConfig (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.CustomConfig)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.CustomConfig)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.CustomConfig)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.CustomConfig)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.CustomConfig)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.CustomConfig)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.CustomConfig)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.CustomConfig)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.CustomConfig)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.CustomConfig)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.CustomConfig)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.CustomConfig)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.CustomConfig)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.CustomConfig)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.CustomConfig)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.CustomConfig)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.CustomConfig)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.CustomConfig) \nReference documentation and code samples for the Google Cloud Security Command Center 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.securitycenter.v1.CustomConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPredicate\n\nThe CEL expression to evaluate to produce findings. When the expression\nevaluates to true against a resource, a finding is generated.\n\n### hasPredicate\n\n### clearPredicate\n\n### setPredicate\n\nThe CEL expression to evaluate to produce findings. When the expression\nevaluates to true against a resource, a finding is generated.\n\n### getCustomOutput\n\nCustom output properties.\n\n### hasCustomOutput\n\n### clearCustomOutput\n\n### setCustomOutput\n\nCustom output properties.\n\n### getResourceSelector\n\nThe resource types that the custom module operates on. Each custom module\ncan specify up to 5 resource types.\n\n### hasResourceSelector\n\n### clearResourceSelector\n\n### setResourceSelector\n\nThe resource types that the custom module operates on. Each custom module\ncan specify up to 5 resource types.\n\n### getSeverity\n\nThe severity to assign to findings generated by the module.\n\n### setSeverity\n\nThe severity to assign to findings generated by the module.\n\n### getDescription\n\nText that describes the vulnerability or misconfiguration that the custom\nmodule detects. This explanation is returned with each finding instance to\nhelp investigators understand the detected issue. The text must be enclosed\nin quotation marks.\n\n### setDescription\n\nText that describes the vulnerability or misconfiguration that the custom\nmodule detects. This explanation is returned with each finding instance to\nhelp investigators understand the detected issue. The text must be enclosed\nin quotation marks.\n\n### getRecommendation\n\nAn explanation of the recommended steps that security teams can take to\nresolve the detected issue. This explanation is returned with each finding\ngenerated by this module in the `nextSteps` property of the finding JSON.\n\n### setRecommendation\n\nAn explanation of the recommended steps that security teams can take to\nresolve the detected issue. This explanation is returned with each finding\ngenerated by this module in the `nextSteps` property of the finding JSON."]]