describe_events
async
¶
describe_events(
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
stack_name: Optional[StackNameOrId] = None,
change_set_name: Optional[ChangeSetNameOrId] = None,
operation_id: Optional[OperationId] = None,
filters: Optional[EventFilter] = None,
next_token: Optional[NextToken] = None,
) -> DescribeEventsOutput
Returns CloudFormation events based on flexible query criteria. Groups events by operation ID, enabling you to focus on individual stack operations during deployment.
An operation is any action performed on a stack, including stack lifecycle actions (Create, Update, Delete, Rollback), change set creation, nested stack creation, and automatic rollbacks triggered by failures. Each operation has a unique identifier (Operation ID) and represents a discrete change attempt on the stack.
Returns different types of events including:
-
Progress events - Status updates during stack operation execution.
-
Validation errors - Failures from CloudFormation Early Validations.
-
Provisioning errors - Resource creation and update failures.
-
Hook invocation errors - Failures from CloudFormation Hook during stack operations.
One of ChangeSetName, OperationId or StackName must be specified as input.
Parameters:
-
stack_name(Optional[StackNameOrId], default:None) –The name or unique stack ID for which you want to retrieve events. If you specified the name of a change set, specify the stack name or ID (ARN) of the change set you want to describe.
-
change_set_name(Optional[ChangeSetNameOrId], default:None) –The name or Amazon Resource Name (ARN) of the change set for which you want to retrieve events.
-
operation_id(Optional[OperationId], default:None) –The unique identifier of the operation for which you want to retrieve events.
-
filters(Optional[EventFilter], default:None) –Filters to apply when retrieving events.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 | |