@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:46.997Z") public class CfnFilter extends CfnResource implements IInspectable
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())) .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())) .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())) .inspectorScore(List.of(NumberFilterProperty.builder() .lowerInclusive(123) .upperInclusive(123) .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()) .name(StringFilterProperty.builder() .comparison("comparison") .value("value") .build()) .release(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") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnFilter.Builder
A fluent builder for
CfnFilter . |
static interface |
CfnFilter.DateFilterProperty
Contains details on the time range used to filter findings.
|
static interface |
CfnFilter.FilterCriteriaProperty
Details on the criteria used to define the filter.
|
static interface |
CfnFilter.MapFilterProperty
An object that describes details of a map filter.
|
static interface |
CfnFilter.NumberFilterProperty
An object that describes the details of a number filter.
|
static interface |
CfnFilter.PackageFilterProperty
Contains information on the details of a package filter.
|
static interface |
CfnFilter.PortRangeFilterProperty
An object that describes the details of a port range filter.
|
static interface |
CfnFilter.StringFilterProperty
An object that describes the details of a string filter.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnFilter(Construct scope,
java.lang.String id,
CfnFilterProps props)
Create a new `AWS::InspectorV2::Filter`.
|
protected |
CfnFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFilter(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Number (ARN) associated with this filter.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description of the filter.
|
java.lang.String |
getFilterAction()
The action that is to be applied to the findings that match the filter.
|
java.lang.Object |
getFilterCriteria()
Details on the filter criteria associated with this filter.
|
java.lang.String |
getName()
The name of the filter.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDescription(java.lang.String value)
A description of the filter.
|
void |
setFilterAction(java.lang.String value)
The action that is to be applied to the findings that match the filter.
|
void |
setFilterCriteria(CfnFilter.FilterCriteriaProperty value)
Details on the filter criteria associated with this filter.
|
void |
setFilterCriteria(IResolvable value)
Details on the filter criteria associated with this filter.
|
void |
setName(java.lang.String value)
The name of the filter.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnFilter(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnFilter(Construct scope, java.lang.String id, CfnFilterProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getFilterAction()
public void setFilterAction(java.lang.String value)
public java.lang.Object getFilterCriteria()
public void setFilterCriteria(CfnFilter.FilterCriteriaProperty value)
public void setFilterCriteria(IResolvable value)
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)