Classes
Name | Description |
---|---|
AwsSolutionsChecks | Check Best practices based on AWS Solutions Security Matrix. |
NIST80053Checks | Check for NIST 800-53 compliance. |
NagPack | Base class for all rule sets. |
Structs
Name | Description |
---|---|
NagPackProps | Interface for creating a Nag rule set. |
Check Best practices based on AWS Solutions Security Matrix.
Implements: IAspect Extends: NagPack
new AwsSolutionsChecks(props?: NagPackProps)
- props (
NagPackProps
) No description- verbose (
boolean
) Whether or not to enable extended explanatory descriptions on warning and error messages. Optional
- verbose (
All aspects can visit an IConstruct.
visit(node: IConstruct): void
- node (
IConstruct
) No description
Check for NIST 800-53 compliance.
Based on the NIST 800-53 AWS operational best practices: https://docs.aws.amazon.com/config/latest/developerguide/operational-best-practices-for-nist-800-53_rev_4.html
Implements: IAspect Extends: NagPack
new NIST80053Checks(props?: NagPackProps)
- props (
NagPackProps
) No description- verbose (
boolean
) Whether or not to enable extended explanatory descriptions on warning and error messages. Optional
- verbose (
All aspects can visit an IConstruct.
visit(node: IConstruct): void
- node (
IConstruct
) No description
Base class for all rule sets.
Implements: IAspect Implemented by: AwsSolutionsChecks, NIST80053Checks
new NagPack(props?: NagPackProps)
- props (
NagPackProps
) No description- verbose (
boolean
) Whether or not to enable extended explanatory descriptions on warning and error messages. Optional
- verbose (
Name | Type | Description |
---|---|---|
verbose | boolean |
The message to output to the console when a rule is triggered.
createMessage(ruleId: string, info: string, explanation: string): string
- ruleId (
string
) the id of the rule. - info (
string
) why the rule was triggered. - explanation (
string
) why the rule exists.
Returns:
string
Check whether a specific rule should be ignored.
ignoreRule(ignores: any, ruleId: string): boolean
- ignores (
any
) ignores listed in cdkNag metadata. - ruleId (
string
) the id of the rule to ignore.
Returns:
boolean
All aspects can visit an IConstruct.
visit(node: IConstruct): void
- node (
IConstruct
) No description
Interface for creating a Nag rule set.
Name | Type | Description |
---|---|---|
verbose? | boolean |
Whether or not to enable extended explanatory descriptions on warning and error messages. Optional |