Class CfnFilterProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnFilterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFilterProps>
- Enclosing interface:
CfnFilterProps
@Stability(Stable)
public static final class CfnFilterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFilterProps>
A builder for
CfnFilterProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnFilterProps.getAction()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnFilterProps.getDescription()
detectorId
(String detectorId) Sets the value ofCfnFilterProps.getDetectorId()
findingCriteria
(IResolvable findingCriteria) Sets the value ofCfnFilterProps.getFindingCriteria()
findingCriteria
(CfnFilter.FindingCriteriaProperty findingCriteria) Sets the value ofCfnFilterProps.getFindingCriteria()
Sets the value ofCfnFilterProps.getName()
Sets the value ofCfnFilterProps.getRank()
Sets the value ofCfnFilterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorId
Sets the value ofCfnFilterProps.getDetectorId()
- Parameters:
detectorId
- The detector ID associated with the GuardDuty account for which you want to create a filter. This parameter is required. To find thedetectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
this
-
findingCriteria
Sets the value ofCfnFilterProps.getFindingCriteria()
- Parameters:
findingCriteria
- Represents the criteria to be used in the filter for querying findings. This parameter is required.- Returns:
this
-
findingCriteria
@Stability(Stable) public CfnFilterProps.Builder findingCriteria(CfnFilter.FindingCriteriaProperty findingCriteria) Sets the value ofCfnFilterProps.getFindingCriteria()
- Parameters:
findingCriteria
- Represents the criteria to be used in the filter for querying findings. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnFilterProps.getName()
- Parameters:
name
- The name of the filter. This parameter is required. Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A whitespace is considered to be an invalid character.- Returns:
this
-
action
Sets the value ofCfnFilterProps.getAction()
- Parameters:
action
- Specifies the action that is to be applied to the findings that match the filter.- Returns:
this
-
description
Sets the value ofCfnFilterProps.getDescription()
- Parameters:
description
- The description of the filter. Valid characters include alphanumeric characters, and special characters such as hyphen, period, colon, underscore, parentheses ({ }
,[ ]
, and( )
), forward slash, horizontal tab, vertical tab, newline, form feed, return, and whitespace.- Returns:
this
-
rank
Sets the value ofCfnFilterProps.getRank()
- Parameters:
rank
- Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings. The minimum value for this property is 1 and the maximum is 100.By default, filters may not be created in the same order as they are ranked. To ensure that the filters are created in the expected order, you can use an optional attribute, DependsOn , with the following syntax:
"DependsOn":[ "ObjectName" ]
.- Returns:
this
-
tags
Sets the value ofCfnFilterProps.getTags()
- Parameters:
tags
- The tags to be added to a new filter resource. Each tag consists of a key and an optional value, both of which you define.For more information, see Tag .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFilterProps>
- Returns:
- a new instance of
CfnFilterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-