Interface ViolatingConstructJson

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

@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)", date="2026-07-02T13:32:49.651Z") @Stability(Stable) public interface ViolatingConstructJson extends software.amazon.jsii.JsiiSerializable
A construct that violated a policy rule.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cloud_assembly_schema.*;
 ViolatingConstructJson violatingConstructJson = ViolatingConstructJson.builder()
         .constructPath("constructPath")
         // the properties below are optional
         .cloudFormationResource(CloudFormationResourceJson.builder()
                 .logicalId("logicalId")
                 .templatePath("templatePath")
                 // the properties below are optional
                 .propertyPaths(List.of("propertyPaths"))
                 .build())
         .constructFqn("constructFqn")
         .libraryVersion("libraryVersion")
         .stackTraces(List.of("stackTraces"))
         .build();
 
  • Method Details

    • getConstructPath

      @Stability(Stable) @NotNull String getConstructPath()
      The construct path as defined in the application.

      Default: - no construct path

    • getCloudFormationResource

      @Stability(Stable) @Nullable default CloudFormationResourceJson getCloudFormationResource()
      If this construct violation regards a CloudFormation resource, a reference to the resource details.
    • getConstructFqn

      @Stability(Stable) @Nullable default String getConstructFqn()
      The fully qualified name of the construct class (includes the library name).

      Default: - no construct info

    • getLibraryVersion

      @Stability(Stable) @Nullable default String getLibraryVersion()
      The version of the library that contains this construct.

      The library name is the first component of the construct FQN.

      Default: - no version info

    • getStackTraces

      @Stability(Stable) @Nullable default List<String> getStackTraces()
      Stack traces associated with this violation.

      This can be all the stack traces where a violating property got its value, or just the construct creation stack trace.

      Every element of the array is a stack trace, where each stack trace is a \n-delimited string.

      Default: - No stack traces

    • builder

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