describe_events
¶
describe_events(
*,
config_overrides: Optional[CloudFormationClientConfig] = 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/cloud_formation.py
2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 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 | |