Skip to content

CloudFormation  >  Operations  >  list_resource_scans

list_resource_scans

Operation

list_resource_scans async

list_resource_scans(input: ListResourceScansInput, plugins: list[Plugin] | None = None) -> ListResourceScansOutput

List the resource scans from newest to oldest. By default it will return up to 10 resource scans.

Parameters:

Name Type Description Default
input ListResourceScansInput

An instance of ListResourceScansInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ListResourceScansOutput

An instance of ListResourceScansOutput.

Input

ListResourceScansInput dataclass

Bases: _SerdeShape

Dataclass for ListResourceScansInput structure.

Attributes

max_results class-attribute instance-attribute
max_results: int | None = ...

If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. The default value is 10. The maximum value is 100.

next_token class-attribute instance-attribute
next_token: str | None = ...

The token for the next set of items to return. (You received this token from a previous call.)

scan_type_filter class-attribute instance-attribute
scan_type_filter: str | None = ...

The scan type that you want to get summary information about. The default is FULL.

Output

ListResourceScansOutput dataclass

Bases: _SerdeShape

Dataclass for ListResourceScansOutput structure.

Attributes

next_token class-attribute instance-attribute
next_token: str | None = ...

If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScans again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.

resource_scan_summaries class-attribute instance-attribute
resource_scan_summaries: list[ResourceScanSummary] | None = ...

The list of scans returned.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.