Class CfnFilter
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.inspectorv2.CfnFilter
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IFilterRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)",
date="2026-02-09T14:39:12.387Z")
@Stability(Stable)
public class CfnFilter
extends CfnResource
implements IInspectable, IFilterRef, ITaggableV2
Details about a filter.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.inspectorv2.*;
CfnFilter cfnFilter = CfnFilter.Builder.create(this, "MyCfnFilter")
.filterAction("filterAction")
.filterCriteria(FilterCriteriaProperty.builder()
.awsAccountId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.codeVulnerabilityDetectorName(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.codeVulnerabilityDetectorTags(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.codeVulnerabilityFilePath(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.componentId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.componentType(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ec2InstanceImageId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ec2InstanceSubnetId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ec2InstanceVpcId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ecrImageArchitecture(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ecrImageHash(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ecrImagePushedAt(List.of(DateFilterProperty.builder()
.endInclusive(123)
.startInclusive(123)
.build()))
.ecrImageRegistry(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ecrImageRepositoryName(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.ecrImageTags(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.epssScore(List.of(NumberFilterProperty.builder()
.lowerInclusive(123)
.upperInclusive(123)
.build()))
.exploitAvailable(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.findingArn(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.findingStatus(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.findingType(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.firstObservedAt(List.of(DateFilterProperty.builder()
.endInclusive(123)
.startInclusive(123)
.build()))
.fixAvailable(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.inspectorScore(List.of(NumberFilterProperty.builder()
.lowerInclusive(123)
.upperInclusive(123)
.build()))
.lambdaFunctionExecutionRoleArn(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.lambdaFunctionLastModifiedAt(List.of(DateFilterProperty.builder()
.endInclusive(123)
.startInclusive(123)
.build()))
.lambdaFunctionLayers(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.lambdaFunctionName(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.lambdaFunctionRuntime(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.lastObservedAt(List.of(DateFilterProperty.builder()
.endInclusive(123)
.startInclusive(123)
.build()))
.networkProtocol(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.portRange(List.of(PortRangeFilterProperty.builder()
.beginInclusive(123)
.endInclusive(123)
.build()))
.relatedVulnerabilities(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.resourceId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.resourceTags(List.of(MapFilterProperty.builder()
.comparison("comparison")
// the properties below are optional
.key("key")
.value("value")
.build()))
.resourceType(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.severity(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.title(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.updatedAt(List.of(DateFilterProperty.builder()
.endInclusive(123)
.startInclusive(123)
.build()))
.vendorSeverity(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.vulnerabilityId(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.vulnerabilitySource(List.of(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build()))
.vulnerablePackages(List.of(PackageFilterProperty.builder()
.architecture(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.epoch(NumberFilterProperty.builder()
.lowerInclusive(123)
.upperInclusive(123)
.build())
.filePath(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.name(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.release(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.sourceLambdaLayerArn(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.sourceLayerHash(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.version(StringFilterProperty.builder()
.comparison("comparison")
.value("value")
.build())
.build()))
.build())
.name("name")
// the properties below are optional
.description("description")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFilter.static interfaceContains details on the time range used to filter findings.static interfaceDetails on the criteria used to define the filter.static interfaceAn object that describes details of a map filter.static interfaceAn object that describes the details of a number filter.static interfaceContains information on the details of a package filter.static interfaceAn object that describes the details of a port range filter.static interfaceAn object that describes the details of a string filter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.inspectorv2.IFilterRef
IFilterRef.Jsii$Default, IFilterRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFilter(software.amazon.jsii.JsiiObjectRef objRef) CfnFilter(software.constructs.Construct scope, String id, CfnFilterProps props) Create a newAWS::InspectorV2::Filter. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForFilter(IFilterRef resource) The Amazon Resource Number (ARN) associated with this filter.Tag Manager which manages the tags for this resource.A description of the filter.The action that is to be applied to the findings that match the filter.Details on the filter criteria associated with this filter.A reference to a Filter resource.getName()The name of the filter.getTags()The tags attached to the filter.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnFilter.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description of the filter.voidsetFilterAction(String value) The action that is to be applied to the findings that match the filter.voidsetFilterCriteria(IResolvable value) Details on the filter criteria associated with this filter.voidDetails on the filter criteria associated with this filter.voidThe name of the filter.voidThe tags attached to the filter.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnFilter
protected CfnFilter(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFilter
protected CfnFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFilter
@Stability(Stable) public CfnFilter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFilterProps props) Create a newAWS::InspectorV2::Filter.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForFilter
- Parameters:
resource- This parameter is required.
-
isCfnFilter
Checks whether the given object is a CfnFilter.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Number (ARN) associated with this filter. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFilterRef
A reference to a Filter resource.- Specified by:
getFilterRefin interfaceIFilterRef
-
getFilterAction
The action that is to be applied to the findings that match the filter. -
setFilterAction
The action that is to be applied to the findings that match the filter. -
getFilterCriteria
Details on the filter criteria associated with this filter.Returns union: either
IResolvableorCfnFilter.FilterCriteriaProperty -
setFilterCriteria
Details on the filter criteria associated with this filter. -
setFilterCriteria
Details on the filter criteria associated with this filter. -
getName
The name of the filter. -
setName
The name of the filter. -
getDescription
A description of the filter. -
setDescription
A description of the filter. -
getTags
The tags attached to the filter. -
setTags
The tags attached to the filter.
-