@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:35.401Z") @Stability(value=Stable) public class CfnFilter extends CfnResource implements IInspectable
The AWS::GuardDuty::Filter resource specifies a new filter defined by the provided findingCriteria .
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;
CfnFilter cfnFilter = CfnFilter.Builder.create(this, "MyCfnFilter")
.action("action")
.description("description")
.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")
.rank(123)
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnFilter.Builder
A fluent builder for
CfnFilter. |
static interface |
CfnFilter.ConditionProperty
Specifies the condition to apply to a single field when filtering through findings.
|
static interface |
CfnFilter.FindingCriteriaProperty
Represents a map of finding properties that match specified conditions and values when querying findings.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| 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 |
|---|---|
|
CfnFilter(Construct scope,
String id,
CfnFilterProps props)
Create a new `AWS::GuardDuty::Filter`.
|
protected |
CfnFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFilter(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Specifies the action that is to be applied to the findings that match the filter.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
The description of the filter.
|
String |
getDetectorId()
The ID of the detector belonging to the GuardDuty account that you want to create a filter for.
|
Object |
getFindingCriteria()
Represents the criteria to be used in the filter for querying findings.
|
String |
getName()
The name of the filter.
|
Number |
getRank()
Specifies the position of the filter in the list of current filters.
|
TagManager |
getTags()
The tags to be added to a new filter resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAction(String value)
Specifies the action that is to be applied to the findings that match the filter.
|
void |
setDescription(String value)
The description of the filter.
|
void |
setDetectorId(String value)
The ID of the detector belonging to the GuardDuty account that you want to create a filter for.
|
void |
setFindingCriteria(CfnFilter.FindingCriteriaProperty value)
Represents the criteria to be used in the filter for querying findings.
|
void |
setFindingCriteria(IResolvable value)
Represents the criteria to be used in the filter for querying findings.
|
void |
setName(String value)
The name of the filter.
|
void |
setRank(Number value)
Specifies the position of the filter in the list of current filters.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnFilter(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFilter(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnFilter(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnFilterProps 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 protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
Each tag consists of a key and an optional value, both of which you define.
For more information, see Tag .
@Stability(value=Stable) @NotNull public String getAction()
@Stability(value=Stable)
public void setAction(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDescription()
@Stability(value=Stable)
public void setDescription(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDetectorId()
@Stability(value=Stable)
public void setDetectorId(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getFindingCriteria()
@Stability(value=Stable)
public void setFindingCriteria(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setFindingCriteria(@NotNull
CfnFilter.FindingCriteriaProperty value)
@Stability(value=Stable) @NotNull public String getName()
Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.
@Stability(value=Stable)
public void setName(@NotNull
String value)
Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.
@Stability(value=Stable) @NotNull public Number getRank()
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 .
@Stability(value=Stable)
public void setRank(@NotNull
Number value)
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 .
Copyright © 2022. All rights reserved.