@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.686Z") @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$Proxy| 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(software.constructs.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()
`AWS::GuardDuty::Filter.Rank`.
|
TagManager |
getTags()
`AWS::GuardDuty::Filter.Tags`.
|
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)
`AWS::GuardDuty::Filter.Rank`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, 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
software.constructs.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()
@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
CfnFilter.FindingCriteriaProperty value)
@Stability(value=Stable)
public void setFindingCriteria(@NotNull
IResolvable 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()
@Stability(value=Stable)
public void setRank(@NotNull
Number value)
Copyright © 2022. All rights reserved.