Class CfnFindingsFilter
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IFindingsFilterRef,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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnFindingsFilter.static interfaceSpecifies a condition that defines the property, operator, and one or more values to use in a findings filter.static interfaceSpecifies, as a map, one or more property-based conditions for a findings filter.static interfaceExample: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.macie.IFindingsFilterRef
IFindingsFilterRef.Jsii$Default, IFindingsFilterRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnFindingsFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnFindingsFilter(software.amazon.jsii.JsiiObjectRef objRef) CfnFindingsFilter(software.constructs.Construct scope, String id, CfnFindingsFilterProps props) Create a newAWS::Macie::FindingsFilter. -
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.A reference to a FindingsFilter resource.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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe action to perform on findings that match the filter criteria (FindingCriteria).voidsetDescription(String value) A custom description of the findings filter.voidsetFindingCriteria(IResolvable value) The criteria to use to filter findings.voidThe criteria to use to filter findings.voidA custom name for the findings filter.voidsetPosition(Number value) The position of the findings filter in the list of saved filter rules on the Amazon Macie console.voidAn 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, 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
-
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) Create a newAWS::Macie::FindingsFilter.- 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:
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 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:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getFindingsFilterRef
A reference to a FindingsFilter resource.- Specified by:
getFindingsFilterRefin interfaceIFindingsFilterRef
-
getFindingCriteria
The criteria to use to filter findings.Returns union: either
IResolvableorCfnFindingsFilter.FindingCriteriaProperty -
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.
-