list_hook_results
async
¶
list_hook_results(
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
target_type: Optional[ListHookResultsTargetType] = None,
target_id: Optional[HookResultId] = None,
type_arn: Optional[HookTypeArn] = None,
status: Optional[HookStatus] = None,
next_token: Optional[NextToken] = None,
hook_category: Optional[HookCategory] = None,
) -> ListHookResultsOutput
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.
-
TypeArnonly: Returns summaries for a specific Hook. -
TypeArnandStatus: Returns summaries for a specific Hook filtered by status. -
TargetIdandTargetType: Returns summaries for a specific Hook invocation target. -
HookCategoryonly: Returns summaries for the specified category. -
HookCategory,TargetId, andTargetTypeset toCHANGE_SET: Returns summaries for the specified category and change set.
A response can contain no results and a NextToken. Continue calling with NextToken until no token is returned.
Parameters:
-
target_type(Optional[ListHookResultsTargetType], default:None) –Filters results by target type. Currently, only
CHANGE_SETandCLOUD_CONTROLare supported filter options.Required when
TargetIdis specified and cannot be used otherwise. -
target_id(Optional[HookResultId], default:None) –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
HookRequestTokenreturned by the Cloud Control API request. For more information on theHookRequestToken, see ProgressEvent.Required when
TargetTypeis specified and cannot be used otherwise. -
type_arn(Optional[HookTypeArn], default:None) –Filters results by the ARN of the Hook. Can be used alone or in combination with
Status. -
status(Optional[HookStatus], default:None) –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(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
hook_category(Optional[HookCategory], default:None) –Filters results by Hook category. Can be used alone or with a
CHANGE_SETtarget. Can't be used withTypeArnorStatus. Valid values are:- MANAGED
-
Results from Hooks managed by Amazon Web Services.
- CUSTOM
-
Results from all other Hooks, including Amazon Web Services published Hooks that you activate.
Raises:
-
HookResultNotFoundException–The specified target doesn't have any requested Hook invocations.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 | |