Skip to content

Latest commit

 

History

History
126 lines (73 loc) · 3.97 KB

API.md

File metadata and controls

126 lines (73 loc) · 3.97 KB

API Reference

Structs

CheckovValidatorProps

Initializer

import { CheckovValidatorProps } from '@bridgecrew/cdk-validator-checkov'

const checkovValidatorProps: CheckovValidatorProps = { ... }

Properties

Name Type Description
check string[] List of checks to run.
skipCheck string[] List of checks to skip.

checkOptional
public readonly check: string[];
  • Type: string[]
  • Default: all checks are run

List of checks to run.


skipCheckOptional
public readonly skipCheck: string[];
  • Type: string[]
  • Default: no checks are skipped

List of checks to skip.


Classes

CheckovValidator

  • Implements: aws-cdk-lib.IPolicyValidationPluginBeta1

A validation plugin using checkov.

Initializers

import { CheckovValidator } from '@bridgecrew/cdk-validator-checkov'

new CheckovValidator(props?: CheckovValidatorProps)
Name Type Description
props CheckovValidatorProps No description.

propsOptional

Methods

Name Description
validate The method that will be called by the CDK framework to perform validations.

validate
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

contextRequired
  • Type: aws-cdk-lib.IPolicyValidationContextBeta1

Properties

Name Type Description
name string The name of the plugin that will be displayed in the validation report.

nameRequired
public readonly name: string;
  • Type: string

The name of the plugin that will be displayed in the validation report.