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
6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 | |