Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CustomConfig

import type { CustomConfig } from "https://googleapis.deno.dev/v1/securityposture:v1.ts";

A custom module configuration for Security Health Analytics. Use CustomConfig to create custom detectors that generate custom findings for resources that you specify.

interface CustomConfig {
customOutput?: CustomOutputSpec;
description?: string;
predicate?: Expr;
recommendation?: string;
resourceSelector?: ResourceSelector;
severity?:
| "SEVERITY_UNSPECIFIED"
| "CRITICAL"
| "HIGH"
| "MEDIUM"
| "LOW";
}

§Properties

§
customOutput?: CustomOutputSpec
[src]

Optional. Definitions of custom source properties to include in findings.

§
description?: string
[src]

Optional. A description of the vulnerability or misconfiguration that the custom module detects. The description appears in each finding. Provide enough information to help an investigator understand the finding. The value must be enclosed in quotation marks.

§
predicate?: Expr
[src]

Required. The Common Expression Language (CEL) expression to evaluate. When the expression evaluates to true for a resource, a finding is generated.

§
recommendation?: string
[src]

Required. An explanation of the steps that security teams can take to resolve the detected issue. The explanation appears in each finding.

§
resourceSelector?: ResourceSelector
[src]

Required. The resource types that the custom module operates on.

§
severity?: "SEVERITY_UNSPECIFIED" | "CRITICAL" | "HIGH" | "MEDIUM" | "LOW"
[src]

Required. The severity of findings generated by the custom module.