def METHOD_NAME(
    aws_client: botocore.client.BaseClient, target_instance_id: str, command_id: str
) -> AWSCommandResults:
    command_results = aws_client.get_command_invocation(
        CommandId=command_id, InstanceId=target_instance_id
    )
    command_status = command_results["Status"]
    logger.debug(f"Command {command_id} status: {command_status}")
    if command_status == "Success":
        aws_command_result_status = AWSCommandStatus.SUCCESS
    elif command_status == "InProgress":
        aws_command_result_status = AWSCommandStatus.IN_PROGRESS
    else:
        aws_command_result_status = AWSCommandStatus.ERROR
    return AWSCommandResults(
        target_instance_id,
        command_results["ResponseCode"],
        command_results["StandardOutputContent"],
        command_results["StandardErrorContent"],
        aws_command_result_status,
    )