StepFunctionsClient.validate_state_machine_definition
rboto-sfn==0.4.0 · Service index · Types
Model summary (excerpt): Validates the syntax of a state machine definition specified in Amazon States Language (ASL), a JSON-based, structured language. You can validate that a state machine definition is correct without creating a state machine resource. Suggested uses for ValidateStateMachineDefinition : Integrate automated checks into your code review or Continuous Integration (CI) process to check state machine...
Install and imports
from rboto import StepFunctionsClient
from rboto_sfn.types import (
StateMachineType,
ValidateStateMachineDefinitionOutput,
ValidateStateMachineDefinitionSeverity,
)
Signature
async def validate_state_machine_definition(
*,
definition: str,
type: StateMachineType | None = None,
severity: ValidateStateMachineDefinitionSeverity | None = None,
max_results: int | None = None,
) -> ValidateStateMachineDefinitionOutput: ...
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) |
|---|---|---|
definition |
Yes | The Amazon States Language definition of the state machine. For more information, see Amazon States Language (ASL). |
type |
No | The target type of state machine for this definition. The default is STANDARD . |
severity |
No | Minimum level of diagnostics to return. ERROR returns only ERROR diagnostics, whereas WARNING returns both WARNING and ERROR diagnostics. The default is ERROR . |
max_results |
No | The maximum number of diagnostics that are returned per call. The default and maximum value is 100. Setting the value to 0 will also use the default of 100. If the number of diagnostics returned in the response exceeds maxResults , the value of the truncated field in the response will be set to true . |
Output
ValidateStateMachineDefinitionOutput.
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 |
|---|---|---|---|
result |
ValidateStateMachineDefinitionResultCodeOutput |
Always present | ValidateStateMachineDefinitionResultCodeOutput |
diagnostics |
list[ValidateStateMachineDefinitionDiagnosticOutput] |
Always present | ValidateStateMachineDefinitionDiagnosticOutput |
truncated |
bool | None |
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
StateMachineType, ValidateStateMachineDefinitionOutput, ValidateStateMachineDefinitionSeverity
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:
Other service failures use the service base error; credential, transport and timeout failures use shared errors.