Skip to main content

hook_results

Creates, updates, deletes, gets or lists a hook_results resource.

Overview

Namehook_results
TypeResource
Idaws.cloudformation.hook_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
line_itemsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_hook_resultselectHookResultId, regionRetrieves detailed information and remediation guidance for a Hook invocation result. If the Hook uses a KMS key to encrypt annotations, callers of the GetHookResult operation must have kms:Decrypt permissions. For more information, see KMS key policy and permissions for encrypting CloudFormation Hooks results at rest in the CloudFormation Hooks User Guide.
list_hook_resultsselectregionTargetType, TargetId, TypeArn, Status, NextTokenReturns 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 status. TargetId and TargetType: Returns summaries for a specific Hook invocation target.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
HookResultIdstringThe unique identifier (ID) of the Hook invocation result that you want details about. You can get the ID from the ListHookResults operation.
regionstringAWS region (default: us-east-1)
NextTokenstringThe token for the next set of items to return. (You received this token from a previous call.)
StatusstringFilters 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.
TargetIdstringFilters 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.
TargetTypestringFilters 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.
TypeArnstringFilters results by the ARN of the Hook. Can be used alone or in combination with Status.

SELECT examples

Retrieves detailed information and remediation guidance for a Hook invocation result. If the Hook uses a KMS key to encrypt annotations, callers of the GetHookResult operation must have kms:Decrypt permissions. For more information, see KMS key policy and permissions for encrypting CloudFormation Hooks results at rest in the CloudFormation Hooks User Guide.

SELECT
line_items
FROM aws.cloudformation.hook_results
WHERE HookResultId = '{{ HookResultId }}' -- required
AND region = '{{ region }}' -- required
;