@Stability(value=Stable) public static final class CfnFilterProps.Builder extends Object implements software.amazon.jsii.Builder<CfnFilterProps>
CfnFilterProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnFilterProps.Builder |
action(String action)
Sets the value of
CfnFilterProps.getAction() |
CfnFilterProps |
build()
Builds the configured instance.
|
CfnFilterProps.Builder |
description(String description)
Sets the value of
CfnFilterProps.getDescription() |
CfnFilterProps.Builder |
detectorId(String detectorId)
Sets the value of
CfnFilterProps.getDetectorId() |
CfnFilterProps.Builder |
findingCriteria(CfnFilter.FindingCriteriaProperty findingCriteria)
Sets the value of
CfnFilterProps.getFindingCriteria() |
CfnFilterProps.Builder |
findingCriteria(IResolvable findingCriteria)
Sets the value of
CfnFilterProps.getFindingCriteria() |
CfnFilterProps.Builder |
name(String name)
Sets the value of
CfnFilterProps.getName() |
CfnFilterProps.Builder |
rank(Number rank)
Sets the value of
CfnFilterProps.getRank() |
CfnFilterProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnFilterProps.getTags() |
@Stability(value=Stable) public CfnFilterProps.Builder action(String action)
CfnFilterProps.getAction()action - Specifies the action that is to be applied to the findings that match the filter. This parameter is required.this@Stability(value=Stable) public CfnFilterProps.Builder description(String description)
CfnFilterProps.getDescription()description - The description of the filter. This parameter is required.this@Stability(value=Stable) public CfnFilterProps.Builder detectorId(String detectorId)
CfnFilterProps.getDetectorId()detectorId - The ID of the detector belonging to the GuardDuty account that you want to create a filter for. This parameter is required.this@Stability(value=Stable) public CfnFilterProps.Builder findingCriteria(IResolvable findingCriteria)
CfnFilterProps.getFindingCriteria()findingCriteria - Represents the criteria to be used in the filter for querying findings. This parameter is required.this@Stability(value=Stable) public CfnFilterProps.Builder findingCriteria(CfnFilter.FindingCriteriaProperty findingCriteria)
CfnFilterProps.getFindingCriteria()findingCriteria - Represents the criteria to be used in the filter for querying findings. This parameter is required.this@Stability(value=Stable) public CfnFilterProps.Builder name(String name)
CfnFilterProps.getName()name - The name of the filter. This parameter is required.
Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.this@Stability(value=Stable) public CfnFilterProps.Builder rank(Number rank)
CfnFilterProps.getRank()rank - Specifies the position of the filter in the list of current filters. This parameter is required.
Also specifies the order in which this filter is applied to the findings.
By default, filters may not be created in the same order as they are ranked. To ensure filters are created in the correct order, you can use the optional
DependsOnattribute with the following syntax:"DependsOn":[ "ObjectName" ]. You can find more information on using this attribute here .
this@Stability(value=Stable) public CfnFilterProps.Builder tags(List<? extends CfnTag> tags)
CfnFilterProps.getTags()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 .
this@Stability(value=Stable) public CfnFilterProps build()
build in interface software.amazon.jsii.Builder<CfnFilterProps>CfnFilterPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.