Interface ViolatingConstructJson
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ViolatingConstructJson.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-07-30T08:06:26.726Z") @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.cloudassembly.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 Classes Modifier and Type Interface Description static classViolatingConstructJson.BuilderA builder forViolatingConstructJsonstatic classViolatingConstructJson.Jsii$ProxyAn implementation forViolatingConstructJson
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ViolatingConstructJson.Builderbuilder()default CloudFormationResourceJsongetCloudFormationResource()If this construct violation regards a CloudFormation resource, a reference to the resource details.default StringgetConstructFqn()The fully qualified name of the construct class (includes the library name).StringgetConstructPath()The construct path as defined in the application.default StringgetLibraryVersion()The version of the library that contains this construct.default List<String>getStackTraces()Stack traces associated with this violation.
-
-
-
Method Detail
-
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.BuilderofViolatingConstructJson
-
-