aws-cdk-lib.aws_inspectorv2.CfnFilterProps

interface CfnFilterProps

LanguageType name
.NETAmazon.CDK.AWS.InspectorV2.CfnFilterProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsinspectorv2#CfnFilterProps
Javasoftware.amazon.awscdk.services.inspectorv2.CfnFilterProps
Pythonaws_cdk.aws_inspectorv2.CfnFilterProps
TypeScript aws-cdk-lib » 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 { aws_inspectorv2 as inspectorv2 } from 'aws-cdk-lib';
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

NameTypeDescription
filterActionstringThe action that is to be applied to the findings that match the filter.
filterCriteriaIResolvable | FilterCriteriaPropertyDetails on the filter criteria associated with this filter.
namestringThe name of the filter.
description?stringA description of the filter.

filterAction

Type: string

The action that is to be applied to the findings that match the filter.


filterCriteria

Type: IResolvable | FilterCriteriaProperty

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.