Class CfnFilterProps
Properties for defining a CfnFilter
.
Inheritance
System.Object
CfnFilterProps
Implements
Namespace: Amazon.CDK.AWS.InspectorV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFilterProps : Object, ICfnFilterProps
Syntax (vb)
Public Class CfnFilterProps
Inherits Object
Implements ICfnFilterProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-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.InspectorV2;
var cfnFilterProps = new CfnFilterProps {
FilterAction = "filterAction",
FilterCriteria = new FilterCriteriaProperty {
AwsAccountId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComponentId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ComponentType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Ec2InstanceImageId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Ec2InstanceSubnetId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Ec2InstanceVpcId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
EcrImageArchitecture = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
EcrImageHash = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
EcrImagePushedAt = new [] { new DateFilterProperty {
EndInclusive = 123,
StartInclusive = 123
} },
EcrImageRegistry = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
EcrImageRepositoryName = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
EcrImageTags = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingArn = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingStatus = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FindingType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
FirstObservedAt = new [] { new DateFilterProperty {
EndInclusive = 123,
StartInclusive = 123
} },
InspectorScore = new [] { new NumberFilterProperty {
LowerInclusive = 123,
UpperInclusive = 123
} },
LastObservedAt = new [] { new DateFilterProperty {
EndInclusive = 123,
StartInclusive = 123
} },
NetworkProtocol = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
PortRange = new [] { new PortRangeFilterProperty {
BeginInclusive = 123,
EndInclusive = 123
} },
RelatedVulnerabilities = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
ResourceTags = new [] { new MapFilterProperty {
Comparison = "comparison",
// the properties below are optional
Key = "key",
Value = "value"
} },
ResourceType = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Severity = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
Title = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
UpdatedAt = new [] { new DateFilterProperty {
EndInclusive = 123,
StartInclusive = 123
} },
VendorSeverity = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
VulnerabilityId = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
VulnerabilitySource = new [] { new StringFilterProperty {
Comparison = "comparison",
Value = "value"
} },
VulnerablePackages = new [] { new PackageFilterProperty {
Architecture = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
},
Epoch = new NumberFilterProperty {
LowerInclusive = 123,
UpperInclusive = 123
},
Name = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
},
Release = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
},
SourceLayerHash = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
},
Version = new StringFilterProperty {
Comparison = "comparison",
Value = "value"
}
} }
},
Name = "name",
// the properties below are optional
Description = "description"
};
Synopsis
Constructors
CfnFilterProps() |
Properties
Description | A description of the filter. |
FilterAction | The action that is to be applied to the findings that match the filter. |
FilterCriteria | Details on the filter criteria associated with this filter. |
Name | The name of the filter. |
Constructors
CfnFilterProps()
public CfnFilterProps()
Properties
Description
A description of the filter.
public string Description { get; set; }
Property Value
System.String
Remarks
FilterAction
The action that is to be applied to the findings that match the filter.
public string FilterAction { get; set; }
Property Value
System.String
Remarks
FilterCriteria
Details on the filter criteria associated with this filter.
public object FilterCriteria { get; set; }
Property Value
System.Object
Remarks
Name
The name of the filter.
public string Name { get; set; }
Property Value
System.String