Skip to content

CloudFormationClient.list_hook_results

rboto-cloudformation==0.4.0 · Service index · Types

Model summary (excerpt): Returns summaries of invoked Hooks. For more information, see View invocation summaries for CloudFormation Hooks in the CloudFormation Hooks User Guide . This operation supports the following parameter combinations: No parameters: Returns all Hook invocation summaries. TypeArn only: Returns summaries for a specific Hook. TypeArn and Status : Returns summaries for a specific Hook filtered by...

Install and imports

python -m pip install "rboto[cloudformation]==0.4.0"
from rboto import CloudFormationClient
from rboto_cloudformation.types import (
    HookStatus,
    ListHookResultsOutput,
    ListHookResultsTargetType,
)

Signature

async def list_hook_results(
    *,
    target_type: ListHookResultsTargetType | None = None,
    target_id: str | None = None,
    type_arn: str | None = None,
    status: HookStatus | None = None,
    next_token: str | None = None,
) -> ListHookResultsOutput: ...

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)
target_type No Filters results by target type. Currently, only CHANGE_SET and CLOUD_CONTROL are supported filter options. Required when TargetId is specified and cannot be used otherwise.
target_id No Filters results by the unique identifier of the target the Hook was invoked against. For change sets, this is the change set ARN. When the target is a Cloud Control API operation, this value must be the HookRequestToken returned by the Cloud Control API request. For more information on the HookRequestToken , see ProgressEvent . Required when TargetType is specified and cannot be used otherwise.
type_arn No Filters results by the ARN of the Hook. Can be used alone or in combination with Status .
status No Filters results by the status of Hook invocations. Can only be used in combination with TypeArn . Valid values are: HOOK_IN_PROGRESS : The Hook is currently running. HOOK_COMPLETE_SUCCEEDED : The Hook completed successfully. HOOK_COMPLETE_FAILED : The Hook completed but failed validation. HOOK_FAILED : The Hook encountered an error during execution.
next_token No The token for the next set of items to return. (You received this token from a previous call.)

Output

ListHookResultsOutput.

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
target_type ListHookResultsTargetTypeOutput | None Always present ListHookResultsTargetTypeOutput
target_id str | None Always present —
hook_results list[HookResultSummaryOutput] | None Always present HookResultSummaryOutput
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.

HookStatus, ListHookResultsOutput, ListHookResultsTargetType

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.list_hook_results(...) accepts the same arguments and returns AsyncIterator[ListHookResultsOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: not exposed.

No output stream.

Errors

Import from rboto_cloudformation.exceptions:

HookResultNotFoundError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model