PolicyViolationJson

class aws_cdk.cloud_assembly_schema.PolicyViolationJson(*, description, rule_name, severity, violating_constructs, custom_severity=None, rule_metadata=None, suggested_fix=None)

Bases: object

A single policy violation found by a validation plugin.

Parameters:
  • description (str) – A description of the violation.

  • rule_name (str) – The name of the rule that was violated.

  • severity (str) – The severity of the violation.

  • violating_constructs (Sequence[Union[ViolatingConstructJson, Dict[str, Any]]]) – Constructs that violated the rule.

  • custom_severity (Optional[str]) – If the plugin wants to report using a non-standard severity, put it here.

  • rule_metadata (Optional[Mapping[str, str]]) – Additional rule-specific metadata. Default: - no metadata

  • suggested_fix (Optional[str]) – How to fix the violation. Default: - no fix provided

Attributes

custom_severity

If the plugin wants to report using a non-standard severity, put it here.

description

A description of the violation.

rule_metadata

Additional rule-specific metadata.

Default:
  • no metadata

rule_name

The name of the rule that was violated.

severity

The severity of the violation.

suggested_fix

How to fix the violation.

Default:
  • no fix provided

violating_constructs

Constructs that violated the rule.