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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forViolatingConstructJsonstatic final classAn implementation forViolatingConstructJson -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default CloudFormationResourceJsonIf this construct violation regards a CloudFormation resource, a reference to the resource details.default StringThe fully qualified name of the construct class (includes the library name).The construct path as defined in the application.default StringThe version of the library that contains this construct.Stack traces associated with this violation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConstructPath
The construct path as defined in the application.Default: - no construct path
-
getCloudFormationResource
If this construct violation regards a CloudFormation resource, a reference to the resource details. -
getConstructFqn
The fully qualified name of the construct class (includes the library name).Default: - no construct info
-
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
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
- Returns:
- a
ViolatingConstructJson.BuilderofViolatingConstructJson
-