Package io.github.cdklabs.cdknag
Interface INagLogger
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
INagLogger.Jsii$Default
- All Known Implementing Classes:
AnnotationLogger,INagLogger.Jsii$Proxy,NagReportLogger
@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-09T00:12:56.165Z") @Stability(Stable) public interface INagLogger extends software.amazon.jsii.JsiiSerializable
Interface for creating NagSuppression Ignores.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceINagLogger.Jsii$DefaultInternal default implementation forINagLogger.static classINagLogger.Jsii$ProxyA proxy class which represents a concrete javascript instance of this type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCompliance(NagLoggerComplianceData data)Called when a CfnResource passes the compliance check for a given rule.voidonError(NagLoggerErrorData data)Called when a rule throws an error during while validating a CfnResource for compliance.voidonNonCompliance(NagLoggerNonComplianceData data)Called when a CfnResource does not pass the compliance check for a given rule and the the rule violation is not suppressed by the user.voidonNotApplicable(NagLoggerNotApplicableData data)Called when a rule does not apply to the given CfnResource.voidonSuppressed(NagLoggerSuppressedData data)Called when a CfnResource does not pass the compliance check for a given rule and the rule violation is suppressed by the user.voidonSuppressedError(NagLoggerSuppressedErrorData data)Called when a rule throws an error during while validating a CfnResource for compliance and the error is suppressed.
-
-
-
Method Detail
-
onCompliance
@Stability(Stable) void onCompliance(@NotNull NagLoggerComplianceData data)Called when a CfnResource passes the compliance check for a given rule.- Parameters:
data- This parameter is required.
-
onError
@Stability(Stable) void onError(@NotNull NagLoggerErrorData data)Called when a rule throws an error during while validating a CfnResource for compliance.- Parameters:
data- This parameter is required.
-
onNonCompliance
@Stability(Stable) void onNonCompliance(@NotNull NagLoggerNonComplianceData data)Called when a CfnResource does not pass the compliance check for a given rule and the the rule violation is not suppressed by the user.- Parameters:
data- This parameter is required.
-
onNotApplicable
@Stability(Stable) void onNotApplicable(@NotNull NagLoggerNotApplicableData data)Called when a rule does not apply to the given CfnResource.- Parameters:
data- This parameter is required.
-
onSuppressed
@Stability(Stable) void onSuppressed(@NotNull NagLoggerSuppressedData data)Called when a CfnResource does not pass the compliance check for a given rule and the rule violation is suppressed by the user.- Parameters:
data- This parameter is required.
-
onSuppressedError
@Stability(Stable) void onSuppressedError(@NotNull NagLoggerSuppressedErrorData data)Called when a rule throws an error during while validating a CfnResource for compliance and the error is suppressed.- Parameters:
data- This parameter is required.
-
-