Create Filter
inspector2_create_filter | R Documentation |
Creates a filter resource using specified filter criteria¶
Description¶
Creates a filter resource using specified filter criteria. When the
filter action is set to SUPPRESS
this action creates a suppression
rule.
Usage¶
Arguments¶
action
[required] Defines the action that is to be applied to the findings that match the filter.
description
A description of the filter.
filterCriteria
[required] Defines the criteria to be used in the filter for querying findings.
name
[required] The name of the filter. Minimum length of 3. Maximum length of 64. Valid characters include alphanumeric characters, dot (.), underscore (_), and dash (-). Spaces are not allowed.
reason
The reason for creating the filter.
tags
A list of tags for the filter.
Value¶
A list with the following syntax:
Request syntax¶
svc$create_filter(
action = "NONE"|"SUPPRESS",
description = "string",
filterCriteria = list(
awsAccountId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
codeVulnerabilityDetectorName = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
codeVulnerabilityDetectorTags = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
codeVulnerabilityFilePath = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
componentId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
componentType = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ec2InstanceImageId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ec2InstanceSubnetId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ec2InstanceVpcId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ecrImageArchitecture = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ecrImageHash = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ecrImagePushedAt = list(
list(
endInclusive = as.POSIXct(
"2015-01-01"
),
startInclusive = as.POSIXct(
"2015-01-01"
)
)
),
ecrImageRegistry = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ecrImageRepositoryName = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
ecrImageTags = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
epssScore = list(
list(
lowerInclusive = 123.0,
upperInclusive = 123.0
)
),
exploitAvailable = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
findingArn = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
findingStatus = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
findingType = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
firstObservedAt = list(
list(
endInclusive = as.POSIXct(
"2015-01-01"
),
startInclusive = as.POSIXct(
"2015-01-01"
)
)
),
fixAvailable = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
inspectorScore = list(
list(
lowerInclusive = 123.0,
upperInclusive = 123.0
)
),
lambdaFunctionExecutionRoleArn = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
lambdaFunctionLastModifiedAt = list(
list(
endInclusive = as.POSIXct(
"2015-01-01"
),
startInclusive = as.POSIXct(
"2015-01-01"
)
)
),
lambdaFunctionLayers = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
lambdaFunctionName = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
lambdaFunctionRuntime = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
lastObservedAt = list(
list(
endInclusive = as.POSIXct(
"2015-01-01"
),
startInclusive = as.POSIXct(
"2015-01-01"
)
)
),
networkProtocol = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
portRange = list(
list(
beginInclusive = 123,
endInclusive = 123
)
),
relatedVulnerabilities = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
resourceId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
resourceTags = list(
list(
comparison = "EQUALS",
key = "string",
value = "string"
)
),
resourceType = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
severity = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
title = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
updatedAt = list(
list(
endInclusive = as.POSIXct(
"2015-01-01"
),
startInclusive = as.POSIXct(
"2015-01-01"
)
)
),
vendorSeverity = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
vulnerabilityId = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
vulnerabilitySource = list(
list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
),
vulnerablePackages = list(
list(
architecture = list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
),
epoch = list(
lowerInclusive = 123.0,
upperInclusive = 123.0
),
name = list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
),
release = list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
),
sourceLambdaLayerArn = list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
),
sourceLayerHash = list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
),
version = list(
comparison = "EQUALS"|"PREFIX"|"NOT_EQUALS",
value = "string"
)
)
)
),
name = "string",
reason = "string",
tags = list(
"string"
)
)