Class CfnFindingsFilter
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
AWS::Macie::FindingsFilter
resource specifies a findings filter.
In Amazon Macie , a findings filter , also referred to as a filter rule , is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. The criteria can help you identify and focus on findings that have specific characteristics, such as severity, type, or the name of an affected AWS resource. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see Filtering Macie findings in the Amazon Macie User Guide .
An AWS::Macie::Session
resource must exist for an AWS account before you can create an AWS::Macie::FindingsFilter
resource for the account. Use a DependsOn attribute to ensure that an AWS::Macie::Session
resource is created before other Macie resources are created for an account. For example, "DependsOn": "Session"
.
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.macie.*; CfnFindingsFilter cfnFindingsFilter = CfnFindingsFilter.Builder.create(this, "MyCfnFindingsFilter") .findingCriteria(FindingCriteriaProperty.builder() .criterion(Map.of( "criterionKey", CriterionAdditionalPropertiesProperty.builder() .eq(List.of("eq")) .gt(123) .gte(123) .lt(123) .lte(123) .neq(List.of("neq")) .build())) .build()) .name("name") // the properties below are optional .action("action") .description("description") .position(123) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnFindingsFilter
.static interface
Specifies a condition that defines the property, operator, and one or more values to use in a findings filter.static interface
Specifies, as a map, one or more property-based conditions for a findings filter.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnFindingsFilter
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnFindingsFilter
(software.amazon.jsii.JsiiObjectRef objRef) CfnFindingsFilter
(software.constructs.Construct scope, String id, CfnFindingsFilterProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe action to perform on findings that match the filter criteria (FindingCriteria
).The Amazon Resource Name (ARN) of the findings filter.The unique identifier for the findings filter.Tag Manager which manages the tags for this resource.A custom description of the findings filter.The criteria to use to filter findings.getName()
A custom name for the findings filter.The position of the findings filter in the list of saved filter rules on the Amazon Macie console.getTags()
An array of key-value pairs to apply to the findings filter.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The action to perform on findings that match the filter criteria (FindingCriteria
).void
setDescription
(String value) A custom description of the findings filter.void
setFindingCriteria
(IResolvable value) The criteria to use to filter findings.void
The criteria to use to filter findings.void
A custom name for the findings filter.void
setPosition
(Number value) The position of the findings filter in the list of saved filter rules on the Amazon Macie console.void
An array of key-value pairs to apply to the findings filter.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnFindingsFilter
protected CfnFindingsFilter(software.amazon.jsii.JsiiObjectRef objRef) -
CfnFindingsFilter
protected CfnFindingsFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnFindingsFilter
@Stability(Stable) public CfnFindingsFilter(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFindingsFilterProps props) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the findings filter. -
getAttrFindingsFilterListItems
-
getAttrId
The unique identifier for the findings filter. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getFindingCriteria
The criteria to use to filter findings. -
setFindingCriteria
The criteria to use to filter findings. -
setFindingCriteria
@Stability(Stable) public void setFindingCriteria(@NotNull CfnFindingsFilter.FindingCriteriaProperty value) The criteria to use to filter findings. -
getName
A custom name for the findings filter.The name can contain 3-64 characters.
-
setName
A custom name for the findings filter.The name can contain 3-64 characters.
-
getAction
The action to perform on findings that match the filter criteria (FindingCriteria
).Valid values are:.
-
setAction
The action to perform on findings that match the filter criteria (FindingCriteria
).Valid values are:.
-
getDescription
A custom description of the findings filter.The description can contain 1-512 characters.
-
setDescription
A custom description of the findings filter.The description can contain 1-512 characters.
-
getPosition
The position of the findings filter in the list of saved filter rules on the Amazon Macie console. -
setPosition
The position of the findings filter in the list of saved filter rules on the Amazon Macie console. -
getTags
An array of key-value pairs to apply to the findings filter. -
setTags
An array of key-value pairs to apply to the findings filter.
-