Skip to content
v2.276.0

ScanningRuleProperty Struct ​

The scanning rules associated with the registry.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecr as ecr } from 'aws-cdk-lib';
const scanningRuleProperty: ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty = {
  repositoryFilters: [{
    filter: 'filter',
    filterType: 'filterType',
  }],
  scanFrequency: 'scanFrequency',
};

Properties ​

repositoryFiltersIResolvable | IResolvable | CfnRegistryScanningConfiguration.RepositoryFilterProperty[]repository_filterstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RepositoryFilterProperty]]]repositoryFiltersIResolvableRepositoryFiltersIResolvableRepositoryFiltersinterface{}required#
The details of a scanning repository filter.

For more information on how to use filters, see Using filters in the Amazon Elastic Container Registry User Guide .

scanFrequencystringscan_frequencystrscanFrequencyStringScanFrequencystringScanFrequency*stringrequired#
The frequency that scans are performed at for a private registry.
notes

When the ENHANCED scan type is specified, the supported scan frequencies are CONTINUOUS_SCAN and SCAN_ON_PUSH . When the BASIC scan type is specified, the SCAN_ON_PUSH scan frequency is supported. If scan on push is not specified, then the MANUAL scan frequency is set by default.