import { CfnGuardValidatorProps } from '@cdklabs/cdk-validator-cfnguard'
const cfnGuardValidatorProps: CfnGuardValidatorProps = { ... }
Name | Type | Description |
---|---|---|
controlTowerRulesEnabled |
boolean |
Enable the default Control Tower Guard rules. |
disabledRules |
string[] |
List of rule names to disable. |
rules |
string[] |
Local file paths to either a directory containing guard rules, or to an individual guard rule file. |
public readonly controlTowerRulesEnabled: boolean;
- Type: boolean
- Default: true
Enable the default Control Tower Guard rules.
public readonly disabledRules: string[];
- Type: string[]
- Default: no rules are disabled
List of rule names to disable.
public readonly rules: string[];
- Type: string[]
- Default: no local rules will be used
Local file paths to either a directory containing guard rules, or to an individual guard rule file.
If the path is to a directory then the directory must only contain guard rule and the plugin will use all the rules in the directory
- Implements: aws-cdk-lib.IPolicyValidationPluginBeta1
A validation plugin using CFN Guard.
import { CfnGuardValidator } from '@cdklabs/cdk-validator-cfnguard'
new CfnGuardValidator(props?: CfnGuardValidatorProps)
Name | Type | Description |
---|---|---|
props |
CfnGuardValidatorProps |
No description. |
- Type: CfnGuardValidatorProps
Name | Description |
---|---|
validate |
The method that will be called by the CDK framework to perform validations. |
public validate(context: IPolicyValidationContextBeta1): PolicyValidationPluginReportBeta1
The method that will be called by the CDK framework to perform validations.
This is where the plugin will evaluate the CloudFormation templates for compliance and report and violations
- Type: aws-cdk-lib.IPolicyValidationContextBeta1
Name | Type | Description |
---|---|---|
name |
string |
The name of the plugin that will be displayed in the validation report. |
ruleIds |
string[] |
The list of rule IDs that the plugin will evaluate. |
version |
string |
The version of the plugin, following the Semantic Versioning specification (see https://semver.org/). This version is used for analytics purposes, to measure the usage of different plugins and different versions. The value of this property should be kept in sync with the actual version of the software package. If the version is not provided or is not a valid semantic version, it will be reported as 0.0.0 . |
public readonly name: string;
- Type: string
The name of the plugin that will be displayed in the validation report.
public readonly ruleIds: string[];
- Type: string[]
The list of rule IDs that the plugin will evaluate.
Used for analytics purposes.
public readonly version: string;
- Type: string
The version of the plugin, following the Semantic Versioning specification (see https://semver.org/). This version is used for analytics purposes, to measure the usage of different plugins and different versions. The value of this property should be kept in sync with the actual version of the software package. If the version is not provided or is not a valid semantic version, it will be reported as 0.0.0
.