GetHookResult
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 AWS KMS key policy
and permissions for encrypting AWS CloudFormation Hooks results at rest in the
AWS CloudFormation Hooks User Guide.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- HookResultId
-
The unique identifier (ID) of the Hook invocation result that you want details about. You can get the ID from the ListHookResults operation.
Type: String
Length Constraints: Fixed length of 36.
Pattern:
^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$Required: No
Response Elements
The following elements are returned by the service.
- Annotations.member.N
-
A list of objects with additional information and guidance that can help you resolve a failed Hook invocation.
Type: Array of Annotation objects
- FailureMode
-
The failure mode of the invocation.
Type: String
Valid Values:
FAIL | WARN - HookResultId
-
The unique identifier of the Hook result.
Type: String
Length Constraints: Fixed length of 36.
Pattern:
^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$ - HookStatusReason
-
A message that provides additional details about the Hook invocation status.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
- InvocationPoint
-
The specific point in the provisioning process where the Hook is invoked.
Type: String
Valid Values:
PRE_PROVISION - InvokedAt
-
The timestamp when the Hook was invoked.
Type: Timestamp
- OriginalTypeName
-
The original public type name of the Hook when an alias is used.
For example, if you activate
AWS::Hooks::GuardHookwith aliasMyCompany::Custom::GuardHook, thenTypeNamewill beMyCompany::Custom::GuardHookandOriginalTypeNamewill beAWS::Hooks::GuardHook.Type: String
Length Constraints: Minimum length of 10. Maximum length of 196.
- Status
-
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.
Type: String
Valid Values:
HOOK_IN_PROGRESS | HOOK_COMPLETE_SUCCEEDED | HOOK_COMPLETE_FAILED | HOOK_FAILED -
- Target
-
Information about the target of the Hook invocation.
Type: HookTarget object
- TypeArn
-
The Amazon Resource Name (ARN) of the Hook.
Type: String
Length Constraints: Maximum length of 1024.
Pattern:
arn:aws[A-Za-z0-9-]{0,64}:cloudformation:[A-Za-z0-9-]{1,64}:([0-9]{12})?:type/hook/[A-Za-z0-9-]+/? - TypeConfigurationVersionId
-
The version identifier of the Hook configuration data that was used during invocation.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
[A-Za-z0-9-]+ - TypeName
-
The name of the Hook that was invoked.
Type: String
Length Constraints: Minimum length of 10. Maximum length of 196.
- TypeVersionId
-
The version identifier of the Hook that was invoked.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 128.
Pattern:
[A-Za-z0-9-]+
Errors
For information about the errors that are common to all actions, see Common Errors.
- HookResultNotFound
-
The specified target doesn't have any requested Hook invocations.
HTTP Status Code: 404
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: