list_coverage_statistics
(**kwargs)¶Lists Amazon Inspector coverage statistics for your environment.
See also: AWS API Documentation
Request Syntax
response = client.list_coverage_statistics(
filterCriteria={
'accountId': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'ec2InstanceTags': [
{
'comparison': 'EQUALS',
'key': 'string',
'value': 'string'
},
],
'ecrImageTags': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'ecrRepositoryName': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'lambdaFunctionName': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'lambdaFunctionRuntime': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'lambdaFunctionTags': [
{
'comparison': 'EQUALS',
'key': 'string',
'value': 'string'
},
],
'resourceId': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'resourceType': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'scanStatusCode': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'scanStatusReason': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
],
'scanType': [
{
'comparison': 'EQUALS'|'NOT_EQUALS',
'value': 'string'
},
]
},
groupBy='SCAN_STATUS_CODE'|'SCAN_STATUS_REASON'|'ACCOUNT_ID'|'RESOURCE_TYPE'|'ECR_REPOSITORY_NAME',
nextToken='string'
)
An object that contains details on the filters to apply to the coverage data for your environment.
An array of Amazon Web Services account IDs to return coverage statistics for.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
The Amazon EC2 instance tags to filter on.
Contains details of a coverage map filter.
The operator to compare coverage on.
The tag key associated with the coverage map filter.
The tag value associated with the coverage map filter.
The Amazon ECR image tags to filter on.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
The Amazon ECR repository name to filter on.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
Returns coverage statistics for AWS Lambda functions filtered by function names.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
Returns coverage statistics for AWS Lambda functions filtered by runtime.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
Returns coverage statistics for AWS Lambda functions filtered by tag.
Contains details of a coverage map filter.
The operator to compare coverage on.
The tag key associated with the coverage map filter.
The tag value associated with the coverage map filter.
An array of Amazon Web Services resource IDs to return coverage statistics for.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
An array of Amazon Web Services resource types to return coverage statistics for. The values can be AWS_EC2_INSTANCE
or AWS_ECR_REPOSITORY
.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
The scan status code to filter on.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
The scan status reason to filter on.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
An array of Amazon Inspector scan types to return coverage statistics for.
Contains details of a coverage string filter.
The operator to compare strings on.
The value to compare strings on.
NextToken
value returned from the previous request to continue listing results after the first page.dict
Response Syntax
{
'countsByGroup': [
{
'count': 123,
'groupKey': 'SCAN_STATUS_CODE'|'SCAN_STATUS_REASON'|'ACCOUNT_ID'|'RESOURCE_TYPE'|'ECR_REPOSITORY_NAME'
},
],
'nextToken': 'string',
'totalCounts': 123
}
Response Structure
(dict) --
countsByGroup (list) --
An array with the number for each group.
(dict) --
a structure that contains information on the count of resources within a group.
count (integer) --
The number of resources.
groupKey (string) --
The key associated with this group
nextToken (string) --
A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken
value returned from the previous request to continue listing results after the first page.
totalCounts (integer) --
The total number for all groups.
Exceptions
Inspector2.Client.exceptions.ValidationException
Inspector2.Client.exceptions.ThrottlingException
Inspector2.Client.exceptions.InternalServerException