interface CfnFilterProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.InspectorV2.CfnFilterProps |
Java | software.amazon.awscdk.services.inspectorv2.CfnFilterProps |
Python | aws_cdk.aws_inspectorv2.CfnFilterProps |
TypeScript | @aws-cdk/aws-inspectorv2 » CfnFilterProps |
Properties for defining a CfnFilter
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as inspectorv2 from '@aws-cdk/aws-inspectorv2';
const cfnFilterProps: inspectorv2.CfnFilterProps = {
filterAction: 'filterAction',
filterCriteria: {
awsAccountId: [{
comparison: 'comparison',
value: 'value',
}],
componentId: [{
comparison: 'comparison',
value: 'value',
}],
componentType: [{
comparison: 'comparison',
value: 'value',
}],
ec2InstanceImageId: [{
comparison: 'comparison',
value: 'value',
}],
ec2InstanceSubnetId: [{
comparison: 'comparison',
value: 'value',
}],
ec2InstanceVpcId: [{
comparison: 'comparison',
value: 'value',
}],
ecrImageArchitecture: [{
comparison: 'comparison',
value: 'value',
}],
ecrImageHash: [{
comparison: 'comparison',
value: 'value',
}],
ecrImagePushedAt: [{
endInclusive: 123,
startInclusive: 123,
}],
ecrImageRegistry: [{
comparison: 'comparison',
value: 'value',
}],
ecrImageRepositoryName: [{
comparison: 'comparison',
value: 'value',
}],
ecrImageTags: [{
comparison: 'comparison',
value: 'value',
}],
findingArn: [{
comparison: 'comparison',
value: 'value',
}],
findingStatus: [{
comparison: 'comparison',
value: 'value',
}],
findingType: [{
comparison: 'comparison',
value: 'value',
}],
firstObservedAt: [{
endInclusive: 123,
startInclusive: 123,
}],
inspectorScore: [{
lowerInclusive: 123,
upperInclusive: 123,
}],
lastObservedAt: [{
endInclusive: 123,
startInclusive: 123,
}],
networkProtocol: [{
comparison: 'comparison',
value: 'value',
}],
portRange: [{
beginInclusive: 123,
endInclusive: 123,
}],
relatedVulnerabilities: [{
comparison: 'comparison',
value: 'value',
}],
resourceId: [{
comparison: 'comparison',
value: 'value',
}],
resourceTags: [{
comparison: 'comparison',
// the properties below are optional
key: 'key',
value: 'value',
}],
resourceType: [{
comparison: 'comparison',
value: 'value',
}],
severity: [{
comparison: 'comparison',
value: 'value',
}],
title: [{
comparison: 'comparison',
value: 'value',
}],
updatedAt: [{
endInclusive: 123,
startInclusive: 123,
}],
vendorSeverity: [{
comparison: 'comparison',
value: 'value',
}],
vulnerabilityId: [{
comparison: 'comparison',
value: 'value',
}],
vulnerabilitySource: [{
comparison: 'comparison',
value: 'value',
}],
vulnerablePackages: [{
architecture: {
comparison: 'comparison',
value: 'value',
},
epoch: {
lowerInclusive: 123,
upperInclusive: 123,
},
name: {
comparison: 'comparison',
value: 'value',
},
release: {
comparison: 'comparison',
value: 'value',
},
sourceLayerHash: {
comparison: 'comparison',
value: 'value',
},
version: {
comparison: 'comparison',
value: 'value',
},
}],
},
name: 'name',
// the properties below are optional
description: 'description',
};
Properties
Name | Type | Description |
---|---|---|
filter | string | The action that is to be applied to the findings that match the filter. |
filter | Filter | IResolvable | Details on the filter criteria associated with this filter. |
name | string | The name of the filter. |
description? | string | A description of the filter. |
filterAction
Type:
string
The action that is to be applied to the findings that match the filter.
filterCriteria
Type:
Filter
|
IResolvable
Details on the filter criteria associated with this filter.
name
Type:
string
The name of the filter.
description?
Type:
string
(optional)
A description of the filter.