Package io.github.cdklabs.cdknag
Class NagRules
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.cdknag.NagRules
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-02-29T00:11:41.028Z") @Stability(Stable) public class NagRules extends software.amazon.jsii.JsiiObject
Helper class with methods for rule creation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectresolveIfPrimitive(software.amazon.awscdk.CfnResource node, Object parameter)Use in cases where a primitive value must be known to pass a rule.static ObjectresolveResourceFromInstrinsic(software.amazon.awscdk.CfnResource node, Object parameter)Use in cases where a token resolves to an intrinsic function and the referenced resource must be known to pass a rule.-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Method Detail
-
resolveIfPrimitive
@Stability(Stable) @NotNull public static Object resolveIfPrimitive(@NotNull software.amazon.awscdk.CfnResource node, @NotNull Object parameter)
Use in cases where a primitive value must be known to pass a rule.https://developer.mozilla.org/en-US/docs/Glossary/Primitive
- Parameters:
node- The CfnResource to check. This parameter is required.parameter- The value to attempt to resolve. This parameter is required.- Returns:
- Return a value if resolves to a primitive data type, otherwise throw an error.
-
resolveResourceFromInstrinsic
@Stability(Stable) @NotNull public static Object resolveResourceFromInstrinsic(@NotNull software.amazon.awscdk.CfnResource node, @NotNull Object parameter)
Use in cases where a token resolves to an intrinsic function and the referenced resource must be known to pass a rule.- Parameters:
node- The CfnResource to check. This parameter is required.parameter- The value to attempt to resolve. This parameter is required.- Returns:
- Return the Logical resource Id if resolves to a intrinsic function, otherwise the resolved provided value.
-
-