Package software.amazon.awscdk
Interface PolicyViolationBeta1
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PolicyViolationBeta1.Jsii$Proxy
@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)",
date="2026-05-21T17:27:28.726Z")
@Stability(Deprecated)
@Deprecated
public interface PolicyViolationBeta1
extends software.amazon.jsii.JsiiSerializable
Deprecated.
(deprecated) 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 classDeprecated.static final classDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyViolationBeta1.Builderbuilder()Deprecated.Deprecated.default StringgetFix()Deprecated.Deprecated.Deprecated.default StringDeprecated.Deprecated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
Deprecated.(deprecated) The description of the violation. -
getRuleName
Deprecated.(deprecated) The name of the rule. -
getViolatingResources
@Stability(Deprecated) @Deprecated @NotNull List<PolicyViolatingResourceBeta1> getViolatingResources()Deprecated.(deprecated) The resources violating this rule. -
getFix
Deprecated.(deprecated) How to fix the violation.Default: - no fix is provided
-
getRuleMetadata
Deprecated.(deprecated) Additional metadata to include with the rule results.This can be used to provide additional information that is plugin specific. The data provided here will be rendered as is.
Default: - no rule metadata
-
getSeverity
Deprecated.(deprecated) 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
Deprecated.- Returns:
- a
PolicyViolationBeta1.BuilderofPolicyViolationBeta1
-
PolicyViolationinstead.