Skip to content

StepFunctionsClient.create_state_machine_alias

rboto-sfn==0.4.0 · Service index · Types

Model summary (excerpt): Creates an alias for a state machine that points to one or two versions of the same state machine. You can set your application to call StartExecution with an alias and update the version the alias uses without changing the client's code. You can also map an alias to split StartExecution requests between two versions of a state machine. To do this, add a second RoutingConfig object in the...

Install and imports

python -m pip install "rboto[sfn]==0.4.0"
from rboto import StepFunctionsClient
from collections.abc import Sequence
from rboto_sfn.types import (
    CreateStateMachineAliasOutput,
    RoutingConfigurationListItem,
)

Signature

async def create_state_machine_alias(
    *,
    name: str,
    routing_configuration: Sequence[RoutingConfigurationListItem],
    description: str | None = None,
) -> CreateStateMachineAliasOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
name Yes The name of the state machine alias. To avoid conflict with version ARNs, don't use an integer in the name of the alias.
routing_configuration Yes The routing configuration of a state machine alias. The routing configuration shifts execution traffic between two state machine versions. routingConfiguration contains an array of RoutingConfig objects that specify up to two state machine versions. Step Functions then randomly choses which version to run an execution with based on the weight assigned to each RoutingConfig .
description No A description for the state machine alias.

Output

CreateStateMachineAliasOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
state_machine_alias_arn str Always present —
creation_date str Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreateStateMachineAliasOutput, RoutingConfigurationListItem

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_sfn.exceptions:

ConflictError, InvalidArnError, InvalidNameError, ResourceNotFoundError, ServiceQuotaExceededError, StateMachineDeletingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model