Class NagPack

    • Constructor Detail

      • NagPack

        protected NagPack​(software.amazon.jsii.JsiiObjectRef objRef)
      • NagPack

        protected NagPack​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • NagPack

        @Stability(Stable)
        protected NagPack​(@Nullable
                          NagPackProps props)
        Parameters:
        props -
      • NagPack

        @Stability(Stable)
        protected NagPack()
    • Method Detail

      • applyRule

        @Stability(Stable)
        protected void applyRule​(@NotNull
                                 IApplyRule params)
        Create a rule to be used in the NagPack.

        Parameters:
        params - The. This parameter is required.
      • ignoreRule

        @Stability(Stable)
        @NotNull
        protected String ignoreRule​(@NotNull
                                    List<NagPackSuppression> suppressions,
                                    @NotNull
                                    String ruleId,
                                    @NotNull
                                    String findingId,
                                    @NotNull
                                    software.amazon.awscdk.CfnResource resource,
                                    @NotNull
                                    NagMessageLevel level,
                                    @Nullable
                                    INagSuppressionIgnore ignoreSuppressionCondition)
        Check whether a specific rule should be ignored.

        Parameters:
        suppressions - The suppressions listed in the cdk-nag metadata. This parameter is required.
        ruleId - The id of the rule to ignore. This parameter is required.
        findingId - The id of the finding that is being checked. This parameter is required.
        resource - The resource being evaluated. This parameter is required.
        level - This parameter is required.
        ignoreSuppressionCondition -
        Returns:
        The reason the rule was ignored, or an empty string.
      • ignoreRule

        @Stability(Stable)
        @NotNull
        protected String ignoreRule​(@NotNull
                                    List<NagPackSuppression> suppressions,
                                    @NotNull
                                    String ruleId,
                                    @NotNull
                                    String findingId,
                                    @NotNull
                                    software.amazon.awscdk.CfnResource resource,
                                    @NotNull
                                    NagMessageLevel level)
        Check whether a specific rule should be ignored.

        Parameters:
        suppressions - The suppressions listed in the cdk-nag metadata. This parameter is required.
        ruleId - The id of the rule to ignore. This parameter is required.
        findingId - The id of the finding that is being checked. This parameter is required.
        resource - The resource being evaluated. This parameter is required.
        level - This parameter is required.
        Returns:
        The reason the rule was ignored, or an empty string.
      • visit

        @Stability(Stable)
        public abstract void visit​(@NotNull
                                   software.constructs.IConstruct node)
        All aspects can visit an IConstruct.

        Specified by:
        visit in interface software.amazon.awscdk.IAspect
        Parameters:
        node - This parameter is required.
      • getReadPackName

        @Stability(Stable)
        @NotNull
        public String getReadPackName()
      • getLoggers

        @Stability(Stable)
        @NotNull
        protected List<INagLogger> getLoggers()
      • setLoggers

        @Stability(Stable)
        protected void setLoggers​(@NotNull
                                  List<INagLogger> value)
      • getPackName

        @Stability(Stable)
        @NotNull
        protected String getPackName()
      • setPackName

        @Stability(Stable)
        protected void setPackName​(@NotNull
                                   String value)
      • getPackGlobalSuppressionIgnore

        @Stability(Stable)
        @Nullable
        protected INagSuppressionIgnore getPackGlobalSuppressionIgnore()
      • setPackGlobalSuppressionIgnore

        @Stability(Stable)
        protected void setPackGlobalSuppressionIgnore​(@Nullable
                                                      INagSuppressionIgnore value)
      • getUserGlobalSuppressionIgnore

        @Stability(Stable)
        @Nullable
        protected INagSuppressionIgnore getUserGlobalSuppressionIgnore()
      • setUserGlobalSuppressionIgnore

        @Stability(Stable)
        protected void setUserGlobalSuppressionIgnore​(@Nullable
                                                      INagSuppressionIgnore value)