Interface ICfnFilterProps
Properties for defining a CfnFilter
.
Namespace: Amazon.CDK.AWS.GuardDuty
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnFilterProps
Syntax (vb)
Public Interface ICfnFilterProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GuardDuty;
var criterion;
var cfnFilterProps = new CfnFilterProps {
FindingCriteria = new FindingCriteriaProperty {
Criterion = criterion,
ItemType = new ConditionProperty {
Eq = new [] { "eq" },
EqualTo = new [] { "equalTo" },
GreaterThan = 123,
GreaterThanOrEqual = 123,
Gt = 123,
Gte = 123,
LessThan = 123,
LessThanOrEqual = 123,
Lt = 123,
Lte = 123,
Neq = new [] { "neq" },
NotEquals = new [] { "notEquals" }
}
},
// the properties below are optional
Action = "action",
Description = "description",
DetectorId = "detectorId",
Name = "name",
Rank = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
Action | Specifies the action that is to be applied to the findings that match the filter. |
Description | The description of the filter. |
DetectorId | The ID of the detector belonging to the GuardDuty account that you want to create a filter for. |
FindingCriteria | Represents the criteria to be used in the filter for querying findings. |
Name | The name of the filter. |
Rank | Specifies the position of the filter in the list of current filters. |
Tags | The tags to be added to a new filter resource. |
Properties
Action
Specifies the action that is to be applied to the findings that match the filter.
virtual string Action { get; }
Property Value
System.String
Remarks
Description
The description of the filter.
virtual string Description { get; }
Property Value
System.String
Remarks
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.
DetectorId
The ID of the detector belonging to the GuardDuty account that you want to create a filter for.
virtual string DetectorId { get; }
Property Value
System.String
Remarks
FindingCriteria
Represents the criteria to be used in the filter for querying findings.
object FindingCriteria { get; }
Property Value
System.Object
Remarks
Name
The name of the filter.
virtual string Name { get; }
Property Value
System.String
Remarks
Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A whitespace is considered to be an invalid character.
Rank
Specifies the position of the filter in the list of current filters.
virtual Nullable<double> Rank { get; }
Property Value
System.Nullable<System.Double>
Remarks
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" ]
.