Class CfnFilter
The AWS::GuardDuty::Filter
resource specifies a new filter defined by the provided findingCriteria
.
Inherited Members
Namespace: Amazon.CDK.AWS.GuardDuty
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFilter : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnFilter
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-guardduty-filter.html
CloudformationResource: AWS::GuardDuty::Filter
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 cfnFilter = new CfnFilter(this, "MyCfnFilter", 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
Constructors
CfnFilter(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnFilter(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnFilter(Construct, String, ICfnFilterProps) |
Properties
Action | Specifies the action that is to be applied to the findings that match the filter. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags to be added to a new filter resource. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnFilter(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnFilter(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnFilter(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnFilter(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnFilter(Construct, String, ICfnFilterProps)
public CfnFilter(Construct scope, string id, ICfnFilterProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnFilterProps
Resource properties.
Properties
Action
Specifies the action that is to be applied to the findings that match the filter.
public virtual string Action { get; set; }
Property Value
System.String
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Description
The description of the filter.
public virtual string Description { get; set; }
Property Value
System.String
DetectorId
The ID of the detector belonging to the GuardDuty account that you want to create a filter for.
public virtual string DetectorId { get; set; }
Property Value
System.String
FindingCriteria
Represents the criteria to be used in the filter for querying findings.
public virtual object FindingCriteria { get; set; }
Property Value
System.Object
Name
The name of the filter.
public virtual string Name { get; set; }
Property Value
System.String
Rank
Specifies the position of the filter in the list of current filters.
public virtual Nullable<double> Rank { get; set; }
Property Value
System.Nullable<System.Double>
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags to be added to a new filter resource.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>