StepFunctionsClient.publish_state_machine_version
rboto-sfn==0.4.0 · Service index · Types
Model summary (excerpt): Creates a version from the current revision of a state machine. Use versions to create immutable snapshots of your state machine. You can start executions from versions either directly or with an alias. To create an alias, use CreateStateMachineAlias . You can publish up to 1000 versions for each state machine. You must manually delete unused versions using the DeleteStateMachineVersion API...
Install and imports
from rboto import StepFunctionsClient
from rboto_sfn.types import (
PublishStateMachineVersionOutput,
)
Signature
async def publish_state_machine_version(
*,
state_machine_arn: str,
revision_id: str | None = None,
description: str | None = None,
) -> PublishStateMachineVersionOutput: ...
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) |
|---|---|---|
state_machine_arn |
Yes | The Amazon Resource Name (ARN) of the state machine. |
revision_id |
No | Only publish the state machine version if the current state machine's revision ID matches the specified ID. Use this option to avoid publishing a version if the state machine changed since you last updated it. If the specified revision ID doesn't match the state machine's current revision ID, the API returns ConflictException . To specify an initial revision ID for a state machine with no... |
description |
No | An optional description of the state machine version. |
Output
PublishStateMachineVersionOutput.
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 |
|---|---|---|---|
creation_date |
str |
Always present | — |
state_machine_version_arn |
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.
Related types
PublishStateMachineVersionOutput
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, ServiceQuotaExceededError, StateMachineDeletingError, StateMachineDoesNotExistError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.