2026/11/30 - AWS CloudFormation - 2 updated api methods
Changes AWS CloudFormation ListHookResults adds a HookCategory filter. MANAGED for results from Hooks managed by AWS, CUSTOM for all other Hooks. ListTypes adds the AWS MANAGED category to list Hooks managed by Amazon (Type HOOK, Visibility PUBLIC).
{'HookCategory': 'MANAGED | CUSTOM'}
Response {'HookResults': {'HookCategory': 'MANAGED | CUSTOM'}}
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 status.
TargetId and TargetType: Returns summaries for a specific Hook invocation target.
HookCategory only: Returns summaries for the specified category.
HookCategory, TargetId, and TargetType set to CHANGE_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.
See also: AWS API Documentation
Request Syntax
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',
HookCategory='MANAGED'|'CUSTOM'
)
string
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.
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 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.
string
Filters results by the ARN of the Hook. Can be used alone or in combination with 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.
string
The token for the next set of items to return. (You received this token from a previous call.)
string
Filters results by Hook category. Can be used alone or with a CHANGE_SET target. Can't be used with TypeArn or Status. 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.
dict
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',
'HookCategory': 'MANAGED'|'CUSTOM'
},
],
'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 HookResultSummary structures that provides the status and Hook status reason for each Hook invocation for the specified target.
(dict) --
A ListHookResults call returns a summary of a Hook invocation.
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 TargetType and TargetId filters.
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 Amazon Resource Name (ARN) of the target stack or request token of the Cloud Control API operation.
Only shown in responses when the request does not specify TargetType and TargetId filters.
HookCategory (string) --
The category of the Hook, either MANAGED or CUSTOM.
NextToken (string) --
Pagination token, null or empty if no more results.
{'Filters': {'Category': {'AWS_MANAGED'}}}
Returns summary information about all extensions, including your private resource types, modules, and Hooks as well as all public extensions from Amazon Web Services and third-party publishers.
See also: AWS API Documentation
Request Syntax
client.list_types(
Visibility='PUBLIC'|'PRIVATE',
ProvisioningType='NON_PROVISIONABLE'|'IMMUTABLE'|'FULLY_MUTABLE',
DeprecatedStatus='LIVE'|'DEPRECATED',
Type='RESOURCE'|'MODULE'|'HOOK',
Filters={
'Category': 'REGISTERED'|'ACTIVATED'|'THIRD_PARTY'|'AWS_TYPES'|'AWS_MANAGED',
'PublisherId': 'string',
'TypeNamePrefix': 'string'
},
MaxResults=123,
NextToken='string'
)
string
The scope at which the extensions are visible and usable in CloudFormation operations.
Valid values include:
PRIVATE: Extensions that are visible and usable within this account and Region. This includes:
Private extensions you have registered in this account and Region.
Public extensions that you have activated in this account and Region.
PUBLIC: Extensions that are publicly visible and available to be activated within any Amazon Web Services account. This includes extensions from Amazon Web Services and third-party publishers.
The default is PRIVATE.
string
For resource types, the provisioning behavior of the resource type. CloudFormation determines the provisioning type during registration, based on the types of handlers in the schema handler package submitted.
Valid values include:
FULLY_MUTABLE: The resource type includes an update handler to process updates to the type during stack update operations.
IMMUTABLE: The resource type doesn't include an update handler, so the type can't be updated and must instead be replaced during stack update operations.
NON_PROVISIONABLE: The resource type doesn't include create, read, and delete handlers, and therefore can't actually be provisioned.
The default is FULLY_MUTABLE.
string
The deprecation status of the extension that you want to get summary information about.
Valid values include:
LIVE: The extension is registered for use in CloudFormation operations.
DEPRECATED: The extension has been deregistered and can no longer be used in CloudFormation operations.
string
The type of extension.
dict
Filter criteria to use in determining which extensions to return.
Filters must be compatible with Visibility to return valid results. For example, specifying AWS_TYPES for Category and PRIVATE for Visibility returns an empty list of types, but specifying PUBLIC for Visibility returns the desired list.
Category (string) --
The category of extensions to return.
REGISTERED
Private extensions that have been registered for this account and Region.
ACTIVATED
Public extensions that have been activated for this account and Region.
THIRD_PARTY
Extensions available for use from publishers other than Amazon. This includes:
Private extensions registered in the account.
Public extensions from publishers other than Amazon, whether activated or not.
AWS_TYPES
Extensions available for use from Amazon.
AWS_MANAGED
Hooks managed by Amazon. Use with Type set to HOOK and Visibility set to PUBLIC.
PublisherId (string) --
The id of the publisher of the extension.
Extensions published by Amazon aren't assigned a publisher ID. Use the AWS_TYPES category to specify a list of types published by Amazon.
TypeNamePrefix (string) --
A prefix to use as a filter for results.
integer
The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.
string
The token for the next set of items to return. (You received this token from a previous call.)
dict
Response Syntax
{
'TypeSummaries': [
{
'Type': 'RESOURCE'|'MODULE'|'HOOK',
'TypeName': 'string',
'DefaultVersionId': 'string',
'TypeArn': 'string',
'LastUpdated': datetime(2015, 1, 1),
'Description': 'string',
'PublisherId': 'string',
'OriginalTypeName': 'string',
'PublicVersionNumber': 'string',
'LatestPublicVersion': 'string',
'PublisherIdentity': 'AWS_Marketplace'|'GitHub'|'Bitbucket',
'PublisherName': 'string',
'IsActivated': True|False
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
TypeSummaries (list) --
A list of TypeSummary structures that contain information about the specified extensions.
(dict) --
Contains summary information about the specified CloudFormation extension.
Type (string) --
The kind of extension.
TypeName (string) --
The name of the extension.
If you specified a TypeNameAlias when you call the ActivateType API operation in your account and Region, CloudFormation considers that alias as the type name.
DefaultVersionId (string) --
The ID of the default version of the extension. The default version is used when the extension version isn't specified.
This applies only to private extensions you have registered in your account. For public extensions, both those provided by Amazon and published by third parties, CloudFormation returns null. For more information, see RegisterType.
To set the default version of an extension, use SetTypeDefaultVersion.
TypeArn (string) --
The ARN of the extension.
LastUpdated (datetime) --
When the specified extension version was registered. This applies only to:
Private extensions you have registered in your account. For more information, see RegisterType.
Public extensions you have activated in your account with auto-update specified. For more information, see ActivateType.
For all other extension types, CloudFormation returns null.
Description (string) --
The description of the extension.
PublisherId (string) --
The ID of the extension publisher, if the extension is published by a third party. Extensions published by Amazon don't return a publisher ID.
OriginalTypeName (string) --
For public extensions that have been activated for this account and Region, the type name of the public extension.
If you specified a TypeNameAlias when enabling the extension in this account and Region, CloudFormation treats that alias as the extension's type name within the account and Region, not the type name of the public extension. For more information, see Use aliases to refer to extensions in the CloudFormation User Guide.
PublicVersionNumber (string) --
For public extensions that have been activated for this account and Region, the version of the public extension to be used for CloudFormation operations in this account and Region.
How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extension in this account and Region when a new version is released. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
LatestPublicVersion (string) --
For public extensions that have been activated for this account and Region, the latest version of the public extension that is available. For any extensions other than activated third-party extensions, CloudFormation returns null.
How you specified AutoUpdate when enabling the extension affects whether CloudFormation automatically updates the extension in this account and Region when a new version is released. For more information, see Automatically use new versions of extensions in the CloudFormation User Guide.
PublisherIdentity (string) --
The service used to verify the publisher identity.
For more information, see Publishing extensions to make them available for public use in the CloudFormation Command Line Interface (CLI) User Guide.
PublisherName (string) --
The publisher name, as defined in the public profile for that publisher in the service used to verify the publisher identity.
IsActivated (boolean) --
Whether the extension is activated for this account and Region.
This applies only to third-party public extensions. Extensions published by Amazon are activated by default.
NextToken (string) --
If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null.