Interface PolicyViolationBeta1

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
PolicyViolationBeta1.Jsii$Proxy

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-21T17:27:28.726Z") @Stability(Deprecated) @Deprecated public interface PolicyViolationBeta1 extends software.amazon.jsii.JsiiSerializable
Deprecated.
Use PolicyViolation instead.
(deprecated) Violation produced by the validation plugin.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 PolicyViolationBeta1 policyViolationBeta1 = PolicyViolationBeta1.builder()
         .description("description")
         .ruleName("ruleName")
         .violatingResources(List.of(PolicyViolatingResourceBeta1.builder()
                 .locations(List.of("locations"))
                 .resourceLogicalId("resourceLogicalId")
                 .templatePath("templatePath")
                 .build()))
         // the properties below are optional
         .fix("fix")
         .ruleMetadata(Map.of(
                 "ruleMetadataKey", "ruleMetadata"))
         .severity("severity")
         .build();
 

  • Method Details

    • getDescription

      @Stability(Deprecated) @Deprecated @NotNull String getDescription()
      Deprecated.
      (deprecated) The description of the violation.
    • getRuleName

      @Stability(Deprecated) @Deprecated @NotNull String getRuleName()
      Deprecated.
      (deprecated) The name of the rule.
    • getViolatingResources

      @Stability(Deprecated) @Deprecated @NotNull List<PolicyViolatingResourceBeta1> getViolatingResources()
      Deprecated.
      (deprecated) The resources violating this rule.
    • getFix

      @Stability(Deprecated) @Deprecated @Nullable default String getFix()
      Deprecated.
      (deprecated) How to fix the violation.

      Default: - no fix is provided

    • getRuleMetadata

      @Stability(Deprecated) @Deprecated @Nullable default Map<String,String> getRuleMetadata()
      Deprecated.
      (deprecated) Additional metadata to include with the rule results.

      This can be used to provide additional information that is plugin specific. The data provided here will be rendered as is.

      Default: - no rule metadata

    • getSeverity

      @Stability(Deprecated) @Deprecated @Nullable default String getSeverity()
      Deprecated.
      (deprecated) The severity of the violation, only used for reporting purposes.

      This is useful for helping the user discriminate between warnings, errors, information, etc.

      Default: - no severity

    • builder

      @Stability(Deprecated) @Deprecated static PolicyViolationBeta1.Builder builder()
      Deprecated.
      Returns:
      a PolicyViolationBeta1.Builder of PolicyViolationBeta1