@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.745Z") @Stability(value=Stable) public class CfnFindingsFilter extends CfnResource implements IInspectable
The AWS::Macie::FindingsFilter resource represents an individual findings filter that you create and save to view, analyze, and manage findings. A findings filter is a set of criteria that specifies which findings to include in the results of a query for findings. A findings filter can also perform specific actions on findings that meet the filter's criteria.
A Session must exist for the account before you can create a FindingsFilter . Use a DependsOn attribute to ensure that the Session is created before the other resources. 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.*;
Object criterion;
CfnFindingsFilter cfnFindingsFilter = CfnFindingsFilter.Builder.create(this, "MyCfnFindingsFilter")
.findingCriteria(FindingCriteriaProperty.builder()
.criterion(criterion)
.build())
.name("name")
// the properties below are optional
.action("action")
.description("description")
.position(123)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnFindingsFilter.Builder
A fluent builder for
CfnFindingsFilter. |
static interface |
CfnFindingsFilter.FindingCriteriaProperty
Specifies, as a map, one or more property-based conditions that filter the results of a query for findings.
|
static interface |
CfnFindingsFilter.FindingsFilterListItemProperty
Specifies the unique identifier and custom name of a findings filter.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnFindingsFilter(software.constructs.Construct scope,
String id,
CfnFindingsFilterProps props)
Create a new `AWS::Macie::FindingsFilter`.
|
protected |
CfnFindingsFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFindingsFilter(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
The action to perform on findings that meet the filter criteria ( `FindingCriteria` ).
|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the filter.
|
IResolvable |
getAttrFindingsFilterListItems()
An array of `FindingsFilterListItem` objects, one for each findings filter that's associated with the account.
|
String |
getAttrId()
The unique identifier for the filter.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A custom description of the filter.
|
Object |
getFindingCriteria()
The criteria to use to filter findings.
|
String |
getName()
A custom name for the filter.
|
Number |
getPosition()
The position of the filter in the list of saved filters on the Amazon Macie console.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAction(String value)
The action to perform on findings that meet the filter criteria ( `FindingCriteria` ).
|
void |
setDescription(String value)
A custom description of the filter.
|
void |
setFindingCriteria(CfnFindingsFilter.FindingCriteriaProperty value)
The criteria to use to filter findings.
|
void |
setFindingCriteria(IResolvable value)
The criteria to use to filter findings.
|
void |
setName(String value)
A custom name for the filter.
|
void |
setPosition(Number value)
The position of the filter in the list of saved filters on the Amazon Macie console.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFindingsFilter(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFindingsFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFindingsFilter(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnFindingsFilterProps 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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public IResolvable getAttrFindingsFilterListItems()
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getFindingCriteria()
@Stability(value=Stable)
public void setFindingCriteria(@NotNull
CfnFindingsFilter.FindingCriteriaProperty value)
@Stability(value=Stable)
public void setFindingCriteria(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
The name must contain at least 3 characters and can contain as many as 64 characters.
We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users might be able to see the filter's name, depending on the actions that they're allowed to perform in Amazon Macie .
@Stability(value=Stable)
public void setName(@NotNull
String value)
The name must contain at least 3 characters and can contain as many as 64 characters.
We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users might be able to see the filter's name, depending on the actions that they're allowed to perform in Amazon Macie .
@Stability(value=Stable) @Nullable public String getAction()
@Stability(value=Stable)
public void setAction(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users might be able to see the filter's description, depending on the actions that they're allowed to perform in Amazon Macie .
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users might be able to see the filter's description, depending on the actions that they're allowed to perform in Amazon Macie .
@Stability(value=Stable) @Nullable public Number getPosition()
This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.
@Stability(value=Stable)
public void setPosition(@Nullable
Number value)
This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.
Copyright © 2022. All rights reserved.