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

Violation

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

Details of a violation.

interface Violation {
assetId?: string;
nextSteps?: string;
policyId?: string;
severity?:
| "SEVERITY_UNSPECIFIED"
| "CRITICAL"
| "HIGH"
| "MEDIUM"
| "LOW";
violatedAsset?: AssetDetails;
violatedPolicy?: PolicyDetails;
violatedPosture?: PostureDetails;
}

§Properties

§
assetId?: string
[src]

The full resource name of the asset that caused the violation. For details about the format of the full resource name for each asset type, see Resource name format.

§
nextSteps?: string
[src]

A description of the steps that you can take to fix the violation.

§
policyId?: string
[src]

The policy that was violated.

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

The severity of the violation.

§
violatedAsset?: AssetDetails
[src]

Details of the Cloud Asset Inventory asset that caused the violation.

§
violatedPolicy?: PolicyDetails
[src]

Details of the policy that was violated.

§
violatedPosture?: PostureDetails
[src]

Details for the posture that was violated. This field is present only if the violated policy belongs to a deployed posture.