NAME
Google::Cloud::Securityposture::V1::ShaCustomConfig - Compiled Protocol Buffers messages for google/cloud/securityposture/v1/sha_custom_config.proto
SYNOPSIS
use Google::Cloud::Securityposture::V1::ShaCustomConfig;
my $msg = Google::Cloud::Securityposture::V1::ShaCustomConfig::CustomConfig->new({
predicate => $predicate,
custom_output => $custom_output,
resource_selector => $resource_selector,
severity => $severity,
});
# Read or update a field
my $val = $msg->predicate();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Securityposture::V1::ShaCustomConfig::CustomConfig->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/securityposture/v1/sha_custom_config.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Securityposture::V1::ShaCustomConfig::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.
Inherits from Protobuf::Message.
Accessors
$msg->predicate()/$msg->predicate($value)Type:
Message(Google::Type::Expr::Expr)Required. The CEL expression to evaluate to produce findings. When the expression evaluates to true against a resource, a finding is generated.
$msg->custom_output()/$msg->custom_output($value)Type:
Message(Google::Cloud::Securityposture::V1::ShaCustomConfig::CustomConfig::CustomOutputSpec)Optional. Custom output properties.
$msg->resource_selector()/$msg->resource_selector($value)Type:
Message(Google::Cloud::Securityposture::V1::ShaCustomConfig::CustomConfig::ResourceSelector)Required. The resource types that the custom module operates on. Each custom module can specify up to 5 resource types.
$msg->severity()/$msg->severity($value)Type:
Enum(Google::Cloud::Securityposture::V1::CustomConfig::Severity)Required. The severity to assign to findings generated by the module.
$msg->description()/$msg->description($value)Type:
StringOptional. 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.
$msg->recommendation()/$msg->recommendation($value)Type:
StringOptional. 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 the `nextSteps` property of the finding JSON.
Enum: CustomConfig::Severity
SEVERITY_UNSPECIFIED=>0CRITICAL=>1HIGH=>2MEDIUM=>3LOW=>4
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Securityposture::V1::ShaCustomConfig::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.