update_state_machine_alias
async
¶
update_state_machine_alias(
state_machine_alias_arn: Arn,
*,
config_overrides: Optional[AsyncSFNClientConfig] = None,
description: Optional[AliasDescription] = None,
routing_configuration: Optional[RoutingConfigurationList] = None,
) -> UpdateStateMachineAliasOutput
Updates the configuration of an existing state machine alias by modifying its description or routingConfiguration.
You must specify at least one of the description or routingConfiguration parameters to update a state machine alias.
UpdateStateMachineAlias is an idempotent API. Step Functions bases the idempotency check on the stateMachineAliasArn, description, and routingConfiguration parameters. Requests with the same parameters return an idempotent response.
This operation is eventually consistent. All StartExecution requests made within a few seconds use the latest alias configuration. Executions started immediately after calling UpdateStateMachineAlias may use the previous routing configuration.
Related operations:
Parameters:
-
state_machine_alias_arn(Arn) –The Amazon Resource Name (ARN) of the state machine alias.
-
description(Optional[AliasDescription], default:None) –A description of the state machine alias.
-
routing_configuration(Optional[RoutingConfigurationList], default:None) –The routing configuration of the state machine alias.
An array of
RoutingConfigobjects that specifies up to two state machine versions that the alias starts executions for.
Raises:
-
ConflictException–Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion, PublishStateMachineVersion, or UpdateStateMachine with the
publishparameter set totrue.HTTP Status Code: 409
-
InvalidArn–The provided Amazon Resource Name (ARN) is not valid.
-
ResourceNotFound–Could not find the referenced resource.
-
StateMachineDeleting–The specified state machine is being deleted.
-
ValidationException–The input does not satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sfn/_services/async_sfn.py
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 | |