def METHOD_NAME(statemachine_arn: Optional[str] = None,
                               opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStateMachineVersionsResult:
    """
    Data source for managing an AWS SFN (Step Functions) State Machine Versions.
    ## Example Usage
    ### Basic Usage
    ```python
    import pulumi
    import pulumi_aws as aws
    test = aws.sfn.get_state_machine_versions(statemachine_arn=aws_sfn_state_machine["test"]["arn"])
    ```
    :param str statemachine_arn: ARN of the State Machine.
    """
    __args__ = dict()
    __args__['statemachineArn'] = statemachine_arn
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('aws:sfn/getStateMachineVersions:getStateMachineVersions', __args__, opts=opts, typ=GetStateMachineVersionsResult).value
    return AwaitableGetStateMachineVersionsResult(
        id=pulumi.get(__ret__, 'id'),
        statemachine_arn=pulumi.get(__ret__, 'statemachine_arn'),
        statemachine_versions=pulumi.get(__ret__, 'statemachine_versions'))