signal_resource
¶
signal_resource(
*,
config_overrides: Optional[CloudFormationClientConfig] = None,
stack_name: Optional[StackNameOrId] = None,
logical_resource_id: Optional[LogicalResourceId] = None,
unique_id: Optional[ResourceSignalUniqueId] = None,
status: Optional[ResourceSignalStatus] = None,
) -> None
Sends a signal to the specified resource with a success or failure status. You can use the SignalResource operation in conjunction with a creation policy or update policy. CloudFormation doesn't proceed with a stack creation or update until resources receive the required number of signals or the timeout period is exceeded. The SignalResource operation is useful in cases where you want to send signals from anywhere other than an Amazon EC2 instance.
Parameters:
-
stack_name(Optional[StackNameOrId], default:None) –The stack name or unique stack ID that includes the resource that you want to signal.
-
logical_resource_id(Optional[LogicalResourceId], default:None) –The logical ID of the resource that you want to signal. The logical ID is the name of the resource that given in the template.
-
unique_id(Optional[ResourceSignalUniqueId], default:None) –A unique ID of the signal. When you signal Amazon EC2 instances or Auto Scaling groups, specify the instance ID that you are signaling as the unique ID. If you send multiple signals to a single resource (such as signaling a wait condition), each signal requires a different unique ID.
-
status(Optional[ResourceSignalStatus], default:None) –The status of the signal, which is either success or failure. A failure signal causes CloudFormation to immediately fail the stack creation or update.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 | |