Interface SuppressedViolationJson

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, PolicyViolationJson
All Known Implementing Classes:
SuppressedViolationJson.Jsii$Proxy

@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)", date="2026-07-02T13:32:49.628Z") @Stability(Stable) public interface SuppressedViolationJson extends software.amazon.jsii.JsiiSerializable, PolicyViolationJson
A violation that was acknowledged/suppressed and excluded from the active violation set.

Example:

 import software.amazon.awscdk.cloudassembly.schema.SuppressedViolationJson;
 SuppressedViolationJson suppressed = SuppressedViolationJson.builder()
         .ruleName("no-public-access")
         .description("S3 bucket should not allow public access")
         .severity("warning")
         .violatingConstructs(List.of(ViolatingConstructJson.builder().constructPath("MyStack/MyBucket").build()))
         .acknowledgedId("my-plugin::no-public-access")
         .build();
 
  • Method Details

    • getAcknowledgedId

      @Stability(Stable) @NotNull String getAcknowledgedId()
      The acknowledgement ID that caused this violation to be suppressed.

      Format: <plugin-name>::<rule-name> (spaces replaced with hyphens).

    • getAcknowledgedAt

      @Stability(Stable) @Nullable default String getAcknowledgedAt()
      The construct path where the acknowledgement was declared.

      Default: - unknown

    • getAcknowledgedStackTrace

      @Stability(Stable) @Nullable default String getAcknowledgedStackTrace()
      Stack trace showing where the acknowledgement was declared.

      A \n-delimited string of stack frames.

      Default: - no stack trace

    • getReason

      @Stability(Stable) @Nullable default String getReason()
      The reason given for the acknowledgement, if provided.

      Default: - no reason given

    • builder

      @Stability(Stable) static SuppressedViolationJson.Builder builder()
      Returns:
      a SuppressedViolationJson.Builder of SuppressedViolationJson