CloudFormationClient.list_resource_scan_resources
rboto-cloudformation==0.4.0 · Service index · Types
Model summary (excerpt): Lists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation.
Install and imports
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
ListResourceScanResourcesOutput,
)
Signature
async def list_resource_scan_resources(
*,
resource_scan_id: str,
resource_identifier: str | None = None,
resource_type_prefix: str | None = None,
tag_key: str | None = None,
tag_value: str | None = None,
next_token: str | None = None,
max_results: int | None = None,
) -> ListResourceScanResourcesOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
resource_scan_id |
Yes | The Amazon Resource Name (ARN) of the resource scan. |
resource_identifier |
No | If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers). |
resource_type_prefix |
No | If specified, the returned resources will be of any of the resource types with the specified prefix. |
tag_key |
No | If specified, the returned resources will have a matching tag key. |
tag_value |
No | If specified, the returned resources will have a matching tag value. |
next_token |
No | The token for the next set of items to return. (You received this token from a previous call.) |
max_results |
No | 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. By default the ListResourceScanResources API action will return at most 100 results in each response. The maximum value is 100. |
Output
ListResourceScanResourcesOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
resources |
list[ScannedResourceOutput] | None |
Always present | ScannedResourceOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ListResourceScanResourcesOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.list_resource_scan_resources(...) accepts the same arguments and returns AsyncIterator[ListResourceScanResourcesOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: next_token. Page-size argument: max_results.
No output stream.
Errors
Import from rboto_cloudformation.exceptions:
ResourceScanInProgressError, ResourceScanNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.