update_state_machine_alias
¶
update_state_machine_alias(
state_machine_alias_arn: Arn,
*,
config_overrides: Optional[SFNClientConfig] = 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/sfn.py
2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 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 | |