Package io.github.cdklabs.cdknag
Class AnnotationLogger
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.cdknag.AnnotationLogger
-
- All Implemented Interfaces:
INagLogger,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-02-15T00:12:13.260Z") @Stability(Stable) public class AnnotationLogger extends software.amazon.jsii.JsiiObject implements INagLogger
A NagLogger that outputs to the CDK Annotations system.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationLogger.BuilderA fluent builder forAnnotationLogger.-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.cdknag.INagLogger
INagLogger.Jsii$Default, INagLogger.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description AnnotationLogger()AnnotationLogger(AnnotationLoggerProps props)protectedAnnotationLogger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedAnnotationLogger(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateMessage(String ruleId, String findingId, String ruleInfo, String ruleExplanation, Boolean verbose)BooleangetLogIgnores()StringgetSuppressionId()BooleangetVerbose()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.voidsetSuppressionId(String value)-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
AnnotationLogger
protected AnnotationLogger(software.amazon.jsii.JsiiObjectRef objRef)
-
AnnotationLogger
protected AnnotationLogger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
AnnotationLogger
@Stability(Stable) public AnnotationLogger(@Nullable AnnotationLoggerProps props)- Parameters:
props-
-
AnnotationLogger
@Stability(Stable) public AnnotationLogger()
-
-
Method Detail
-
createMessage
@Stability(Stable) @NotNull protected String createMessage(@NotNull String ruleId, @NotNull String findingId, @NotNull String ruleInfo, @NotNull String ruleExplanation, @NotNull Boolean verbose)
- Parameters:
ruleId- This parameter is required.findingId- This parameter is required.ruleInfo- This parameter is required.ruleExplanation- This parameter is required.verbose- This parameter is required.
-
onCompliance
@Stability(Stable) public void onCompliance(@NotNull NagLoggerComplianceData _data)Called when a CfnResource passes the compliance check for a given rule.- Specified by:
onCompliancein interfaceINagLogger- Parameters:
_data- This parameter is required.
-
onError
@Stability(Stable) public void onError(@NotNull NagLoggerErrorData data)Called when a rule throws an error during while validating a CfnResource for compliance.- Specified by:
onErrorin interfaceINagLogger- Parameters:
data- This parameter is required.
-
onNonCompliance
@Stability(Stable) public 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.- Specified by:
onNonCompliancein interfaceINagLogger- Parameters:
data- This parameter is required.
-
onNotApplicable
@Stability(Stable) public void onNotApplicable(@NotNull NagLoggerNotApplicableData _data)Called when a rule does not apply to the given CfnResource.- Specified by:
onNotApplicablein interfaceINagLogger- Parameters:
_data- This parameter is required.
-
onSuppressed
@Stability(Stable) public 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.- Specified by:
onSuppressedin interfaceINagLogger- Parameters:
data- This parameter is required.
-
onSuppressedError
@Stability(Stable) public void onSuppressedError(@NotNull NagLoggerSuppressedErrorData data)Called when a rule throws an error during while validating a CfnResource for compliance and the error is suppressed.- Specified by:
onSuppressedErrorin interfaceINagLogger- Parameters:
data- This parameter is required.
-
getLogIgnores
@Stability(Stable) @NotNull public Boolean getLogIgnores()
-
getVerbose
@Stability(Stable) @NotNull public Boolean getVerbose()
-
getSuppressionId
@Stability(Stable) @NotNull public String getSuppressionId()
-
setSuppressionId
@Stability(Stable) public void setSuppressionId(@NotNull String value)
-
-