Class PolicyViolatingResource.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.PolicyViolatingResource.Jsii$Proxy
All Implemented Interfaces:
PolicyViolatingResource, software.amazon.jsii.JsiiSerializable
Enclosing interface:
PolicyViolatingResource

@Stability(Stable) @Internal public static final class PolicyViolatingResource.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PolicyViolatingResource
An implementation for PolicyViolatingResource
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(PolicyViolatingResource.Builder builder)
      Constructor that initializes the object based on literal property values passed by the PolicyViolatingResource.Builder.
  • Method Details

    • getLocations

      public final List<String> getLocations()
      Description copied from interface: PolicyViolatingResource
      The locations in the CloudFormation template that pose the violations.
      Specified by:
      getLocations in interface PolicyViolatingResource
    • getConstructPath

      public final String getConstructPath()
      Description copied from interface: PolicyViolatingResource
      The construct path of the violating construct.

      Use this for violations that originate from constructs rather than CloudFormation resources (e.g. annotations added via Annotations.of() or Validations.of()). When provided, the report will use this path directly instead of deriving it from the resource logical ID. Mutually exclusive with resourceLogicalId.

      Default: - construct path is derived from the resource logical ID

      Specified by:
      getConstructPath in interface PolicyViolatingResource
    • getResourceLogicalId

      public final String getResourceLogicalId()
      Description copied from interface: PolicyViolatingResource
      The logical ID of the resource in the CloudFormation template.

      Required for plugin-sourced violations that operate on CloudFormation templates. Mutually exclusive with constructPath.

      Default: - no resource logical ID

      Specified by:
      getResourceLogicalId in interface PolicyViolatingResource
    • getTemplatePath

      public final String getTemplatePath()
      Description copied from interface: PolicyViolatingResource
      The path to the CloudFormation template that contains this resource.

      Default: - no template path

      Specified by:
      getTemplatePath in interface PolicyViolatingResource
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object