CloudFormation / Client / list_hook_results
list_hook_results¶
- CloudFormation.Client.list_hook_results(**kwargs)¶
- 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.
- TypeArnand- Status: Returns summaries for a specific Hook filtered by status.
- TargetIdand- TargetType: Returns summaries for a specific Hook invocation target.
 - See also: AWS API Documentation - Request Syntax- response = client.list_hook_results( TargetType='CHANGE_SET'|'STACK'|'RESOURCE'|'CLOUD_CONTROL', TargetId='string', TypeArn='string', Status='HOOK_IN_PROGRESS'|'HOOK_COMPLETE_SUCCEEDED'|'HOOK_COMPLETE_FAILED'|'HOOK_FAILED', NextToken='string' ) - Parameters:
- TargetType (string) – - Filters results by target type. Currently, only - CHANGE_SETand- CLOUD_CONTROLare supported filter options.- Required when - TargetIdis specified and cannot be used otherwise.
- TargetId (string) – - 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 the- HookRequestToken, see ProgressEvent.- Required when - TargetTypeis specified and cannot be used otherwise.
- TypeArn (string) – Filters results by the ARN of the Hook. Can be used alone or in combination with - Status.
- Status (string) – - 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.
 
- NextToken (string) – A string that identifies the next page of events that you want to retrieve. 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'TargetType': 'CHANGE_SET'|'STACK'|'RESOURCE'|'CLOUD_CONTROL', 'TargetId': 'string', 'HookResults': [ { 'HookResultId': 'string', 'InvocationPoint': 'PRE_PROVISION', 'FailureMode': 'FAIL'|'WARN', 'TypeName': 'string', 'TypeVersionId': 'string', 'TypeConfigurationVersionId': 'string', 'Status': 'HOOK_IN_PROGRESS'|'HOOK_COMPLETE_SUCCEEDED'|'HOOK_COMPLETE_FAILED'|'HOOK_FAILED', 'HookStatusReason': 'string', 'InvokedAt': datetime(2015, 1, 1), 'TargetType': 'CHANGE_SET'|'STACK'|'RESOURCE'|'CLOUD_CONTROL', 'TargetId': 'string', 'TypeArn': 'string', 'HookExecutionTarget': 'string' }, ], 'NextToken': 'string' } - Response Structure- (dict) – - TargetType (string) – - The target type. 
- TargetId (string) – - The unique identifier of the Hook invocation target. 
- HookResults (list) – - A list of - HookResultSummarystructures that provides the status and Hook status reason for each Hook invocation for the specified target.- (dict) – - Describes a Hook invocation, its status, and the reason for its status. - HookResultId (string) – - The unique identifier for this Hook invocation result. 
- InvocationPoint (string) – - The specific point in the provisioning process where the Hook is invoked. 
- FailureMode (string) – - The failure mode of the invocation. 
- TypeName (string) – - The name of the Hook that was invoked. 
- TypeVersionId (string) – - The version of the Hook that was invoked. 
- TypeConfigurationVersionId (string) – - The version of the Hook configuration. 
- Status (string) – - The status of the Hook invocation. The following statuses are possible: - 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.
 
- HookStatusReason (string) – - A description of the Hook results status. For example, if the Hook result is in a failed state, this may contain additional information for the failed state. 
- InvokedAt (datetime) – - The timestamp when the Hook was invoked. - Only shown in responses when the request does not specify - TargetTypeand- TargetIdfilters.
- TargetType (string) – - The target type that the Hook was invoked against. 
- TargetId (string) – - The unique identifier of the Hook invocation target. 
- TypeArn (string) – - The ARN of the Hook that was invoked. 
- HookExecutionTarget (string) – - The ARN of the target stack or request token of the Cloud Control API operation. - Only shown in responses when the request does not specify - TargetTypeand- TargetIdfilters.
 
 
- NextToken (string) – - Pagination token, - nullor empty if no more results.
 
 
 - Exceptions- CloudFormation.Client.exceptions.HookResultNotFoundException