Class CfnFilter
Details about a filter.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.InspectorV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnFilter : CfnResource, IInspectable
Syntax (vb)
Public Class CfnFilter
Inherits CfnResource
Implements IInspectable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html
CloudformationResource: AWS::InspectorV2::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.InspectorV2;
var cfnFilter = new CfnFilter(this, "MyCfnFilter", 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
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
AttrArn | The Amazon Resource Number (ARN) associated with this filter. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
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
AttrArn
The Amazon Resource Number (ARN) associated with this filter.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
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
A description of the filter.
public virtual string Description { get; set; }
Property Value
System.String
FilterAction
The action that is to be applied to the findings that match the filter.
public virtual string FilterAction { get; set; }
Property Value
System.String
FilterCriteria
Details on the filter criteria associated with this filter.
public virtual object FilterCriteria { get; set; }
Property Value
System.Object
Name
The name of the filter.
public virtual string Name { get; set; }
Property Value
System.String
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>