CfnRegistryScanningConfigurationProps Struct
Properties for defining a CfnRegistryScanningConfiguration.
| Source | |
|---|---|
| Type last changed |
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 cfnRegistryScanningConfigurationProps: ecr.CfnRegistryScanningConfigurationProps = {
rules: [{
repositoryFilters: [{
filter: 'filter',
filterType: 'filterType',
}],
scanFrequency: 'scanFrequency',
}],
scanType: 'scanType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecr as ecr
cfn_registry_scanning_configuration_props = ecr.CfnRegistryScanningConfigurationProps(
rules=[ecr.CfnRegistryScanningConfiguration.ScanningRuleProperty(
repository_filters=[ecr.CfnRegistryScanningConfiguration.RepositoryFilterProperty(
filter="filter",
filter_type="filterType"
)],
scan_frequency="scanFrequency"
)],
scan_type="scanType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecr.*;
CfnRegistryScanningConfigurationProps cfnRegistryScanningConfigurationProps = CfnRegistryScanningConfigurationProps.builder()
.rules(List.of(ScanningRuleProperty.builder()
.repositoryFilters(List.of(RepositoryFilterProperty.builder()
.filter("filter")
.filterType("filterType")
.build()))
.scanFrequency("scanFrequency")
.build()))
.scanType("scanType")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECR;
var cfnRegistryScanningConfigurationProps = new CfnRegistryScanningConfigurationProps {
Rules = new [] { new ScanningRuleProperty {
RepositoryFilters = new [] { new RepositoryFilterProperty {
Filter = "filter",
FilterType = "filterType"
} },
ScanFrequency = "scanFrequency"
} },
ScanType = "scanType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnRegistryScanningConfigurationProps := &CfnRegistryScanningConfigurationProps{
Rules: []interface{}{
&ScanningRuleProperty{
RepositoryFilters: []interface{}{
&RepositoryFilterProperty{
Filter: jsii.String("filter"),
FilterType: jsii.String("filterType"),
},
},
ScanFrequency: jsii.String("scanFrequency"),
},
},
ScanType: jsii.String("scanType"),
}
Properties
rulesIResolvable | IResolvable | CfnRegistryScanningConfiguration.rulestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ScanningRuleProperty]]]rulesIResolvableRulesIResolvableRulesinterface{} required #The scanning rules associated with the registry.
The type of scanning configured for the registry.