def METHOD_NAME(job_agent_name: Optional[str] = None,
                 job_name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 server_name: Optional[str] = None,
                 step_name: Optional[str] = None,
                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetJobStepResult:
    """
    Gets a job step in a job's current version.
    :param str job_agent_name: The name of the job agent.
    :param str job_name: The name of the job.
    :param str resource_group_name: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    :param str server_name: The name of the server.
    :param str step_name: The name of the job step.
    """
    __args__ = dict()
    __args__['jobAgentName'] = job_agent_name
    __args__['jobName'] = job_name
    __args__['resourceGroupName'] = resource_group_name
    __args__['serverName'] = server_name
    __args__['stepName'] = step_name
    opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
    __ret__ = pulumi.runtime.invoke('azure-native:sql/v20221101preview:getJobStep', __args__, opts=opts, typ=GetJobStepResult).value
    return AwaitableGetJobStepResult(
        action=pulumi.get(__ret__, 'action'),
        credential=pulumi.get(__ret__, 'credential'),
        execution_options=pulumi.get(__ret__, 'execution_options'),
        id=pulumi.get(__ret__, 'id'),
        name=pulumi.get(__ret__, 'name'),
        output=pulumi.get(__ret__, 'output'),
        step_id=pulumi.get(__ret__, 'step_id'),
        target_group=pulumi.get(__ret__, 'target_group'),
        type=pulumi.get(__ret__, 'type'))