Skip to content

CloudFormationClient.list_resource_scan_related_resources

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Lists the related resources for a list of resources from a resource scan. The response indicates whether each returned resource is already managed by CloudFormation.

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from collections.abc import Sequence
from rboto_cloudformation.types import (
    ListResourceScanRelatedResourcesOutput,
    ScannedResourceIdentifier,
)

Signature

async def list_resource_scan_related_resources(
    *,
    resource_scan_id: str,
    resources: Sequence[ScannedResourceIdentifier],
    next_token: str | None = None,
    max_results: int | None = None,
) -> ListResourceScanRelatedResourcesOutput: ...

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.
resources Yes The list of resources for which you want to get the related resources. Up to 100 resources can be provided.
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 ListResourceScanRelatedResources API action will return up to 100 results in each response. The maximum value is 100.

Output

ListResourceScanRelatedResourcesOutput.

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
related_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.

ListResourceScanRelatedResourcesOutput, ScannedResourceIdentifier

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_related_resources(...) accepts the same arguments and returns AsyncIterator[ListResourceScanRelatedResourcesOutput]. 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.

Service guide · Pinned model