signal_resource
async
¶
signal_resource(
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = 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/async_cloud_formation.py
6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 | |