Interface CfnFilterProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFilterProps.Jsii$Proxy
CfnFilter
.
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.guardduty.*; Object criterion; CfnFilterProps cfnFilterProps = CfnFilterProps.builder() .detectorId("detectorId") .findingCriteria(FindingCriteriaProperty.builder() .criterion(criterion) .itemType(ConditionProperty.builder() .eq(List.of("eq")) .equalTo(List.of("equalTo")) .greaterThan(123) .greaterThanOrEqual(123) .gt(123) .gte(123) .lessThan(123) .lessThanOrEqual(123) .lt(123) .lte(123) .neq(List.of("neq")) .notEquals(List.of("notEquals")) .build()) .build()) .name("name") // the properties below are optional .action("action") .description("description") .rank(123) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFilterProps
static final class
An implementation forCfnFilterProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnFilterProps.Builder
builder()
default String
Specifies the action that is to be applied to the findings that match the filter.default String
The description of the filter.The detector ID associated with the GuardDuty account for which you want to create a filter.Represents the criteria to be used in the filter for querying findings.getName()
The name of the filter.default Number
getRank()
Specifies the position of the filter in the list of current filters.getTags()
The tags to be added to a new filter resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDetectorId
The detector ID associated with the GuardDuty account for which you want to create a filter.To find the
detectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- See Also:
-
getFindingCriteria
Represents the criteria to be used in the filter for querying findings.- See Also:
-
getName
The name of the filter.Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A whitespace is considered to be an invalid character.
- See Also:
-
getAction
Specifies the action that is to be applied to the findings that match the filter.- See Also:
-
getDescription
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.- See Also:
-
getRank
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" ]
.- See Also:
-
getTags
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 .
- See Also:
-
builder
- Returns:
- a
CfnFilterProps.Builder
ofCfnFilterProps
-