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
6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 | |