Interface PolicyViolatingResource

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

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-24T20:29:21.064Z") @Stability(Stable) public interface PolicyViolatingResource extends software.amazon.jsii.JsiiSerializable
Resource violating a specific 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.*;
 PolicyViolatingResource policyViolatingResource = PolicyViolatingResource.builder()
         .locations(List.of("locations"))
         .resourceLogicalId("resourceLogicalId")
         .templatePath("templatePath")
         .build();
 
  • Method Details

    • getLocations

      @Stability(Stable) @NotNull List<String> getLocations()
      The locations in the CloudFormation template that pose the violations.
    • getResourceLogicalId

      @Stability(Stable) @NotNull String getResourceLogicalId()
      The logical ID of the resource in the CloudFormation template.
    • getTemplatePath

      @Stability(Stable) @NotNull String getTemplatePath()
      The path to the CloudFormation template that contains this resource.
    • builder

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