Class CfnFindingsFilterProps.Builder
java.lang.Object
software.amazon.awscdk.services.macie.CfnFindingsFilterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFindingsFilterProps>
- Enclosing interface:
CfnFindingsFilterProps
@Stability(Stable)
public static final class CfnFindingsFilterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFindingsFilterProps>
A builder for
CfnFindingsFilterProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFindingsFilterProps.getAction()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnFindingsFilterProps.getDescription()
findingCriteria
(IResolvable findingCriteria) Sets the value ofCfnFindingsFilterProps.getFindingCriteria()
findingCriteria
(CfnFindingsFilter.FindingCriteriaProperty findingCriteria) Sets the value ofCfnFindingsFilterProps.getFindingCriteria()
Sets the value ofCfnFindingsFilterProps.getName()
Sets the value ofCfnFindingsFilterProps.getPosition()
Sets the value ofCfnFindingsFilterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
findingCriteria
@Stability(Stable) public CfnFindingsFilterProps.Builder findingCriteria(IResolvable findingCriteria) Sets the value ofCfnFindingsFilterProps.getFindingCriteria()
- Parameters:
findingCriteria
- The criteria to use to filter findings. This parameter is required.- Returns:
this
-
findingCriteria
@Stability(Stable) public CfnFindingsFilterProps.Builder findingCriteria(CfnFindingsFilter.FindingCriteriaProperty findingCriteria) Sets the value ofCfnFindingsFilterProps.getFindingCriteria()
- Parameters:
findingCriteria
- The criteria to use to filter findings. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnFindingsFilterProps.getName()
- Parameters:
name
- A custom name for the findings filter. The name can contain 3-64 characters. This parameter is required. Avoid including sensitive data in the name. Users of the account might be able to see the name, depending on the actions that they're allowed to perform in Amazon Macie .- Returns:
this
-
action
Sets the value ofCfnFindingsFilterProps.getAction()
- Parameters:
action
- The action to perform on findings that match the filter criteria (FindingCriteria
). Valid values are:.ARCHIVE
- Suppress (automatically archive) the findings.NOOP
- Don't perform any action on the findings.
- Returns:
this
-
description
Sets the value ofCfnFindingsFilterProps.getDescription()
- Parameters:
description
- A custom description of the findings filter. The description can contain 1-512 characters. Avoid including sensitive data in the description. Users of the account might be able to see the description, depending on the actions that they're allowed to perform in Amazon Macie .- Returns:
this
-
position
Sets the value ofCfnFindingsFilterProps.getPosition()
- Parameters:
position
- The position of the findings filter in the list of saved filter rules on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to findings.- Returns:
this
-
tags
Sets the value ofCfnFindingsFilterProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to the findings filter. For more information, see Resource tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFindingsFilterProps>
- Returns:
- a new instance of
CfnFindingsFilterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-