Interface PolicyViolationBeta1
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PolicyViolationBeta1.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-05-19T18:25:42.936Z")
@Stability(Stable)
public interface PolicyViolationBeta1
extends software.amazon.jsii.JsiiSerializable
Violation produced by the validation plugin.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; PolicyViolationBeta1 policyViolationBeta1 = PolicyViolationBeta1.builder() .description("description") .ruleName("ruleName") .violatingResources(List.of(PolicyViolatingResourceBeta1.builder() .locations(List.of("locations")) .resourceLogicalId("resourceLogicalId") .templatePath("templatePath") .build())) // the properties below are optional .fix("fix") .ruleMetadata(Map.of( "ruleMetadataKey", "ruleMetadata")) .severity("severity") .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forPolicyViolationBeta1
static final class
An implementation forPolicyViolationBeta1
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyViolationBeta1.Builder
builder()
The description of the violation.default String
getFix()
How to fix the violation.Additional metadata to include with the rule results.The name of the rule.default String
The severity of the violation, only used for reporting purposes.The resources violating this rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
The description of the violation. -
getRuleName
The name of the rule. -
getViolatingResources
The resources violating this rule. -
getFix
How to fix the violation.Default: - no fix is provided
-
getRuleMetadata
-
getSeverity
The severity of the violation, only used for reporting purposes.This is useful for helping the user discriminate between warnings, errors, information, etc.
Default: - no severity
-
builder
- Returns:
- a
PolicyViolationBeta1.Builder
ofPolicyViolationBeta1
-